Esempio n. 1
0
        public IEnumerator <ITask> GetHandler(bumper.Get get)
        {
            if (_bumperConfigState.Status == LegoNxtBumperStatus.Uninitialized)
            {
                throw new InvalidOperationException("LEGO NXT Bumper service is not initialized");
            }

            get.ResponsePort.Post(_bumperConfigState.ContactSensorArrayState);
            yield break;
        }
Esempio n. 2
0
 public IEnumerator <ITask> GetHandler(pxContactSensor.Get get)
 {
     get.ResponsePort.Post(_state);
     yield break;
 }
Esempio n. 3
0
 public virtual IEnumerator <ITask> GetHandler(bumper.Get get)
 {
     get.ResponsePort.Post(_state);
     yield break;
 }
 public virtual IEnumerator <ITask> GetContatSensorHandler(contactsensor.Get get)
 {
     get.ResponsePort.Post(SyncGenericContactState());
     yield break;
 }
 public virtual IEnumerator <ITask> GenericGetHandler(bumper.Get get)
 {
     get.ResponsePort.Post(_contactSensorArrayState);
     yield break;
 }