public void Update(DroneStateViewModel model)
 {
     XAngle    = model.XAngle;
     YAngle    = model.YAngle;
     ZAngle    = model.ZAngle;
     Speed     = model.Speed;
     Longitude = model.Longitude;
     Latitude  = model.Latitude;
     Altitude  = model.Altitude;
 }
        public MainWindowViewModel()
        {
            SendNewDroneCommand = new RelayCommand(SendNewDroneCommandLocal, param => true);
            _DroneUpdateService = new DroneUpdateService();
            _DroneUpdateService.StatusUpdateReceivedFromDrone += _DroneUpdateService_StatusUpdateReceivedFromDrone;

            _NewDroneState     = new DroneStateViewModel();
            _DroneStateHistory = new ObservableCollection <DroneStateViewModel>();
            DroneStateViewModel a = new DroneStateViewModel();

            a.XAngle = 1;
            _DroneStateHistory.Add(a);
            SelectedDroneState = a;
            a        = new DroneStateViewModel();
            a.XAngle = 2;
            _DroneStateHistory.Add(a);

            _DroneUpdateService.StartService();
        }