Exemplo n.º 1
0
 public Macro(Roomba_Poller macroFor)
 {
     this.CurrentRoomba = macroFor;
     this.WaitTimer = new RoombaSCI.Timer();
     this.WaitTimer.Tick += new EventHandler(OnTimedEvent);
     this.WaitTimer.Period = 1;
 }
Exemplo n.º 2
0
        private void CheckMode(Roomba_Poller roomba_Poller)
        {
            switch (roomba_Poller.Current_Mode)
            {
                case SCI_Mode.Off:
                    this.OFF(false);
                    break;

                case SCI_Mode.Safe:
                    this.SAFE(false);
                    break;

                case SCI_Mode.Full:
                    this.FULL(false);
                    break;

                case SCI_Mode.Passive:
                    this.PASSIVE(false);
                    break;
            }
        }