コード例 #1
0
        public virtual IEnumerator <ITask> GenericSubscribeHandler(pxanalogsensor.Subscribe subscribe)
        {
            yield return((Choice)base.SubscribeHelper(_genericSubMgrPort, subscribe.Body, subscribe.ResponsePort));

            if (_state.Heading.TimeStamp != DateTime.MinValue)
            {
                SendNotificationToTarget <pxanalogsensor.Replace>(subscribe.Body.Subscriber, _genericSubMgrPort, SyncGenericState());
            }
        }
コード例 #2
0
        public virtual IEnumerator <ITask> SubscribeHandler(pxanalogsensor.Subscribe subscribe)
        {
            yield return((Choice)base.SubscribeHelper(_subMgrPort, subscribe.Body, subscribe.ResponsePort));

            if (_state.Heading.TimeStamp != DateTime.MinValue)
            {
                SendNotificationToTarget <CompassSensorUpdate>(subscribe.Body.Subscriber, _subMgrPort, _state.Heading);
            }
        }
コード例 #3
0
 public IEnumerator <ITask> SubscribeHandler(analog.Subscribe subscribe)
 {
     yield return(Arbiter.Choice(
                      SubscribeHelper(_subMgrPort, subscribe.Body, subscribe.ResponsePort),
                      delegate(SuccessResult success)
     {
         SendNotification <analog.Replace>(_subMgrPort, subscribe.Body.Subscriber, new analog.Replace(_state));
     },
                      delegate(Exception fault)
     {
         LogError(fault);
     }
                      ));
 }
コード例 #4
0
 public virtual IEnumerator <ITask> SubscribeHandler(pxanalogsensor.Subscribe subscribe)
 {
     SubscribeHelper(_submgrPort, subscribe.Body, subscribe.ResponsePort);
     yield break;
 }
コード例 #5
0
 public virtual IEnumerator <ITask> AnalogSubscribeHandler(pxanalogsensor.Subscribe subscribe)
 {
     base.SubscribeHelper(_genericSubMgrPort, subscribe.Body, subscribe.ResponsePort);
     yield break;
 }