Beispiel #1
0
        public virtual IEnumerator <ITask> GenericReliableSubscribeHandler(pxanalogsensor.ReliableSubscribe 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());
            }
        }
Beispiel #2
0
        public virtual IEnumerator <ITask> ReliableSubscribeHandler(pxanalogsensor.ReliableSubscribe 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);
            }
        }
Beispiel #3
0
 public IEnumerator <ITask> ReliableSubscribeHandler(analog.ReliableSubscribe 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);
     }
                      ));
 }
 public virtual IEnumerator <ITask> ReliableSubscribeHandler(pxanalogsensor.ReliableSubscribe subscribe)
 {
     yield break;
 }
 public virtual IEnumerator <ITask> AnalogReliableSubscribeHandler(pxanalogsensor.ReliableSubscribe subscribe)
 {
     base.SubscribeHelper(_genericSubMgrPort, subscribe.Body, subscribe.ResponsePort);
     yield break;
 }