示例#1
0
 public void start()
 {
     if (this.currentMode == eRoombaModes.Off)
     {
         Console.Beep();
     }
     this.currentMode = eRoombaModes.Passive;
     log("Switching mode to passive", TAG);
     this.setSensorValue(35, roombaModeNr());
 }
示例#2
0
 public void max()
 {
     if (this.checkMode(eRoombaModes.Full, eRoombaModes.Safe, eRoombaModes.Passive))
     {
         log("Starting max clean mode", TAG);
         this.currentMode = eRoombaModes.Passive;
     }
     else
     {
         throw new notInCorrectMode();
     }
 }
示例#3
0
 public void full()
 {
     if (this.currentMode != eRoombaModes.Off)
     {
         this.currentMode = eRoombaModes.Full;
         log("Switching mode to full", TAG);
         this.setSensorValue(35, roombaModeNr());
     }
     else
     {
         throw new notInCorrectMode();
     }
 }
示例#4
0
 public void power()
 {
     //Powers down the Roomba
     this.currentMode = eRoombaModes.Passive;
     log("Powering down", TAG);
 }
示例#5
0
 public void start()
 {
     if (this.currentMode == eRoombaModes.Off) {
         Console.Beep();
     }
     this.currentMode = eRoombaModes.Passive;
     log("Switching mode to passive", TAG);
     this.setSensorValue(35, roombaModeNr());
 }
示例#6
0
 public void spot()
 {
     if (this.checkMode(eRoombaModes.Full, eRoombaModes.Safe, eRoombaModes.Passive)) {
         log("Starting spot mode", TAG);
         this.currentMode = eRoombaModes.Passive;
     } else {
         throw new notInCorrectMode();
     }
 }
示例#7
0
 public void safe()
 {
     if (this.currentMode != eRoombaModes.Off) {
         this.currentMode = eRoombaModes.Safe;
         log("Switching mode to safe", TAG);
         this.setSensorValue(35, roombaModeNr());
     } else {
         throw new notInCorrectMode();
     }
 }
示例#8
0
 public void power()
 {
     //Powers down the Roomba
     this.currentMode = eRoombaModes.Passive;
     log("Powering down", TAG);
 }