Beispiel #1
0
        public JoystickThread(FormIkarusMain main)
        {
            InitEmisoraUSB();

            formIkarusMain = main;

            TrimAil  = 0;
            TrimEle  = 0;
            TrimTail = 0;


            if (wfly.IsOpen())
            {
                terminate = false;
                timer     = new System.Threading.Timer(TimerTask, this, 1000, 1000 / 20);
                pan       = 0;
                tilt      = 0;
                flaps     = 0;
            }
            else if (singleton.Idioma == 0)
            {
                MessageBox.Show("No se puede abrir dispositivo Uplink");
            }
            else
            {
                MessageBox.Show("Cannot open Uplink device");
            }
        }
Beispiel #2
0
        public JoystickThread(FormIkarusMain main)
        {
            InitEmisoraUSB();

            formIkarusMain = main;

            TrimAil = 0;
            TrimEle = 0;
            TrimTail = 0;

            
            if (wfly.IsOpen())
            {
                terminate = false;
                timer = new System.Threading.Timer(TimerTask, this, 1000, 1000 / 20);
                pan = 0;
                tilt = 0;
                flaps = 0;
            }
            else if (singleton.Idioma == 0)
            {
                MessageBox.Show("No se puede abrir dispositivo Uplink");
            }
            else
            {
                MessageBox.Show("Cannot open Uplink device");
            }
        }