Exemplo n.º 1
0
 public virtual IEnumerator <ITask> GenericSetCriticalLevelHandler(pxbattery.SetCriticalLevel setCriticalLevel)
 {
     _state.CriticalBatteryVoltage = _state.MaxVoltage * setCriticalLevel.Body.PercentCriticalBattery;
     SendNotification <pxbattery.SetCriticalLevel>(_subMgrPort, setCriticalLevel);
     setCriticalLevel.ResponsePort.Post(DefaultUpdateResponseType.Instance);
     yield break;
 }
Exemplo n.º 2
0
 public void SetCriticalLevelHandler(battery.SetCriticalLevel request)
 {
     this.batteryState.PercentCriticalBattery = request.Body.PercentCriticalBattery;
     request.ResponsePort.Post(DefaultUpdateResponseType.Instance);
     SendNotification(this.batterySubMgr, request);
 }