public MainWindow()
        {
            InitializeComponent();
            _helicopter = new HelicopterControl<S107HeliCommand>(new IguanaIrInterop());
            _helicopter.Command.YawTrim = 250;

            KeyDown += MainWindow_KeyDown;
        }
Ejemplo n.º 2
0
 public Helicopter(int yawTrim = 0)
 {
     IrInterop.SetChannels(new byte[] { 1, 3 });
     _helicopter = new HelicopterControl<S107HeliCommand>(IrInterop);
     _helicopter.Command.YawTrim = yawTrim;
 }
 public HelicopterWorker()
 {
     _helicopter = new HelicopterControl<S107HeliCommand>(IrInterop);
 }