コード例 #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
ファイル: roomba.cs プロジェクト: K-4U/ese_project4y5
 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
ファイル: roomba.cs プロジェクト: K-4U/ese_project4y5
 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
ファイル: roomba.cs プロジェクト: K-4U/ese_project4y5
 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
ファイル: roomba.cs プロジェクト: K-4U/ese_project4y5
 public void power()
 {
     //Powers down the Roomba
     this.currentMode = eRoombaModes.Passive;
     log("Powering down", TAG);
 }