Пример #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            ToSingleton();
            me.ToRegistry();
            
            EmisoraUSB wfly = new EmisoraUSB();
            if (wfly.IsOpen())
            {
                wfly.SaveToFlash();
                wfly.Close();
            }

            if (me.Idioma == (int)Singleton.Idiomas.Spanish)
                MessageBox.Show("Configuración Actualizada");
            else
                MessageBox.Show("Config Updated");
            //this.Close();
        }
Пример #2
0
        void InitEmisoraUSB()
        {
            /*
            if (singleton.planeState != null)
            {
                _modem_lon = singleton.planeState.homeLon;
                _modem_lat = singleton.planeState.homeLat;
            }
            else
            {
                _modem_lon = -6.0f;
                _modem_lat = 37.5f;
            }
            */

            _modem_lon = singleton.HomeLon;
            _modem_lat = singleton.HomeLat;
            _modem_alt = singleton.HomeAlt+100;

            wfly = new EmisoraUSB();
            if (wfly.IsOpen())
            {
                //fijamos que canal se modifica
                ConfigurarCanales(wfly);      
                
                wfly.SetLowBattery(singleton.uplinkValarm);
                wfly.SaveToFlash();
             }
        }