public void mapPausedNotification(NetMQMessage m) { //Same but with paused TakeOffButton.state = TakeOffButton.TakeOffButtonEnum.StopScan; state = MapperState.PAUSED; TakeOffButton.changedState = true; }
public void SetTranslation(TranslationDetailModel p_translation) { if (p_translation == null) { isEditMode = false; p_translation = new MES_2.Modules.SystemModule.Translation.TranslationDetailModel(); EntityAll = new ObservableCollection <EntityModel>(EntitiesRepository.Instance.Retrieve()); _stateAll = new List <StateModel>(StatesRepository.Instance.Retrieve()); } else { _stateAll = new List <StateModel>(StatesRepository.Instance.RetrieveByEntityId(p_translation.ENT_Entity.ID_ENT)); Entity = new EntityModel(); Entity = MapperEntity.MapENTToMapperEntity(p_translation.ENT_Entity); StateFrom = new StateModel(); StateFrom = MapperState.MapSTAToState(p_translation.STATE_FROM); StateTo = new StateModel(); StateTo = MapperState.MapSTAToState(p_translation.STATE_TO); } EdditingTranslation = p_translation; if (Translation != null) { Translation.ErrorsChanged -= RaiseCanExecuteChanged; } Translation = new TranslationFullEditable(); Translation.ErrorsChanged += RaiseCanExecuteChanged; CopyTranslation(EdditingTranslation, Translation); }
public void mapStartedNotification(NetMQMessage m) { //This is to put on scanning the tablet that didn't press the button TakeOffButton.state = TakeOffButton.TakeOffButtonEnum.Scanning; state = MapperState.START; TakeOffButton.changedState = true; }
public void mapDoneNotification(NetMQMessage m) { //When a tablet sents a done mapping, one will enter the idle and the other ones will go //to DONE to save the metadata and mission if (PointCloud.done == true) { PointCloud.done = false; state = MapperState.IDLE; } else { state = MapperState.DONE; } PlanSelectionManager.askedForMaps = true; PlaceModel.pointCloudAskedForMetadata = false; TakeOffButton.changedState = true; }
public void Advance(string word) { _words.Add(word); if (_current.ContainsCommand(word)) { State = MapperState.Accepted; Command = _current.GetCommand(word); } else if (_current.ContainsChild(word)) { _current = _current.GetChild(word); State = MapperState.Pending; } else { State = MapperState.Rejected; } }
public void mapIdleNotification(NetMQMessage m) { state = MapperState.IDLE; TakeOffButton.changedState = true; }
//Every state corresponds to the drone state when it's on mapping public void mapReadyNotification(NetMQMessage m) { state = MapperState.READY; TakeOffButton.changedState = true; }