public ApplicationController(ShellViewModel shellViewModel,
                              MainMonitoringController mainMonitoringController,
                              NetworkAccessThreadController networkAccessThreadController,
                              StatusBarController statusBarController,
                              AttitudeMonitoringController attitudeMonitoringController,
                              AltitudeMonitoringController altitudeMonitoringController,
                              NavigationMonitoringController navigationMonitoringController,
                              IDataFetchService dataFetchService,
                              IDataUpdateService dataUpdateService,
                              IGuiUpdateService guiUpdateService,
                              IGeneralService generalService,
                              ISettingsService settingsService,
                              IShellService shellService)
 {
     this.shellViewModel                 = shellViewModel;
     this.mainMonitoringController       = mainMonitoringController;
     this.networkAccessThreadController  = networkAccessThreadController;
     this.attitudeMonitoringController   = attitudeMonitoringController;
     this.altitudeMonitoringController   = altitudeMonitoringController;
     this.navigationMonitoringController = navigationMonitoringController;
     this.statusBarController            = statusBarController;
     this.dataFetchService               = dataFetchService;
     this.dataUpdateService              = dataUpdateService;
     this.generalService                 = generalService;
     this.settingsService                = settingsService;
     this.shellService                 = shellService;
     this.guiUpdateService             = guiUpdateService;
     dataUpdateService.ResetDataEvent += Reset;
     ChangeTabCommand = new DelegateCommand(ChangeTab_Command);
 }
Example #2
0
        public NavigationMonitoringController(NavigationMonitoringViewModel navigationMonitoringViewModel,
                                              IShellService shellService,
                                              IDataUpdateService dataUpdateService,
                                              ISettingsService settingsService,
                                              IGuiUpdateService guiUpdateService)
        {
            this.navigationMonitoringViewModel = navigationMonitoringViewModel;
            this.shellService                  = shellService;
            this.dataUpdateService             = dataUpdateService;
            this.settingsService               = settingsService;
            this.guiUpdateService              = guiUpdateService;
            shellService.PropertyChanged      += ShellService_PropertyChanged;
            dataUpdateService.DataUpdateEvent += DataUpdateEventHandler;
            TabChangeCommand = new DelegateCommand(TabChange_Command);

            navXEstBuffer  = new List <LogPoint>();
            navXMeasBuffer = new List <LogPoint>();
            navXRefBuffer  = new List <LogPoint>();
            navYEstBuffer  = new List <LogPoint>();
            navYMeasBuffer = new List <LogPoint>();
            navYRefBuffer  = new List <LogPoint>();
            posBuffersFull = false;

            navXVelBuffer  = new List <LogPoint>();
            navYVelBuffer  = new List <LogPoint>();
            velBuffersFull = false;

            navTrackingEstBuffer  = new List <PosistionPoint>();
            navTrackingMeasBuffer = new List <PosistionPoint>();
            navTrackingRefBuffer  = new List <PosistionPoint>();

            GearedValues <PosistionPoint> estpoints  = new GearedValues <PosistionPoint>().WithQuality(Quality.Medium);
            GearedValues <PosistionPoint> measpoints = new GearedValues <PosistionPoint>().WithQuality(Quality.Medium);
            GearedValues <PosistionPoint> refpoints  = new GearedValues <PosistionPoint>().WithQuality(Quality.Medium);

            for (int i = 0; i < settingsService.TrackingTimeFrame * 1000; i++)
            {
                estpoints.Add(new PosistionPoint(0, 0));
                measpoints.Add(new PosistionPoint(0, 0));
                refpoints.Add(new PosistionPoint(0, 0));
            }
            navigationMonitoringViewModel.NavTrackingEstPoints  = estpoints;
            navigationMonitoringViewModel.NavTrackingMeasPoints = measpoints;
            navigationMonitoringViewModel.NavTrackingRefPoints  = refpoints;

            currentIndex = 0;

            posUpdating      = false;
            velUpdating      = false;
            trackingUpdating = false;

            coorLast      = true;
            framePosCount = 0;
            frameVelCount = 0;
        }
Example #3
0
        public AttitudeMonitoringController(AttitudeMonitoringViewModel attitudeMonitoringViewModel,
                                            IShellService shellService,
                                            IDataUpdateService dataUpdateService,
                                            ISettingsService settingsService,
                                            IGuiUpdateService guiUpdateService)
        {
            this.attitudeMonitoringViewModel = attitudeMonitoringViewModel;
            this.shellService                  = shellService;
            this.dataUpdateService             = dataUpdateService;
            this.settingsService               = settingsService;
            this.guiUpdateService              = guiUpdateService;
            dataUpdateService.DataUpdateEvent += DataUpdateEventHandler;
            shellService.PropertyChanged      += ShellService_PropertyChanged;

            TabChangeCommand = new DelegateCommand(TabChange_Command);

            attRollEstBuffer   = new List <LogPoint>();
            attRollMeasBuffer  = new List <LogPoint>();
            attRollRefBuffer   = new List <LogPoint>();
            attPitchEstBuffer  = new List <LogPoint>();
            attPitchMeasBuffer = new List <LogPoint>();
            attPitchRefBuffer  = new List <LogPoint>();
            attYawEstBuffer    = new List <LogPoint>();
            attYawMeasBuffer   = new List <LogPoint>();
            attYawRefBuffer    = new List <LogPoint>();
            attRotBuffersfull  = false;

            attVelXBuffer     = new List <LogPoint>();
            attVelYBuffer     = new List <LogPoint>();
            attVelZBuffer     = new List <LogPoint>();
            attVelBuffersFull = false;

            motorFLBuffer     = new List <LogPoint>();
            motorFRBuffer     = new List <LogPoint>();
            motorBLBuffer     = new List <LogPoint>();
            motorBRBuffer     = new List <LogPoint>();
            attMotBuffersFull = false;

            rotLast     = true;
            rotUpdating = false;
            velUpdating = false;
            motUpdating = false;

            frameRotCount = 0;
            frameVelCount = 0;
            frameMotCount = 0;
        }