Exemple #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());
 }
Exemple #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();
     }
 }
Exemple #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();
     }
 }
Exemple #4
0
 public void power()
 {
     //Powers down the Roomba
     this.currentMode = eRoombaModes.Passive;
     log("Powering down", TAG);
 }
Exemple #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());
 }
Exemple #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();
     }
 }
Exemple #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();
     }
 }
Exemple #8
0
 public void power()
 {
     //Powers down the Roomba
     this.currentMode = eRoombaModes.Passive;
     log("Powering down", TAG);
 }