public void start() { if (this.currentMode == eRoombaModes.Off) { Console.Beep(); } this.currentMode = eRoombaModes.Passive; log("Switching mode to passive", TAG); this.setSensorValue(35, roombaModeNr()); }
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(); } }
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(); } }
public void power() { //Powers down the Roomba this.currentMode = eRoombaModes.Passive; log("Powering down", TAG); }
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(); } }
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(); } }