public QuadControlWindow(MainWindow mainWindow)
        {
            isPreparing = true;

            InitializeComponent();

            quadDataProcessing = new QuadDataProcessing(mainWindow, this);
            sliderSpeed.Value = quadDataProcessing.Speed;

            btnStillCalibration.Click += BtnStillCalibration_Click;

            startRecord = false;

            isPreparing = false;
        }
Ejemplo n.º 2
0
        public QuadDataProcessing(MainWindow mainWindow, QuadControlWindow quadControlWindow)
        {
            this.mainWindow = mainWindow;
            this.quadControlWindow = quadControlWindow;

            for (int i = 0; i < 3; ++i)
            {
                smooth[i] = new MovingAverageDataSmoothing(45);
                calibrateData[i] = new List<double>();
            }

            StillData = new int[] { DEFAULT_STILL_X, DEFAULT_STILL_Y, DEFAULT_STILL_Z };
            Speed = 0.03f;
            timeCounter = 0;

            startQuadcopter = false;
        }