diff --git a/robot/robotdriver.ts b/robot/robotdriver.ts index 0bf0c511..a58b4328 100644 --- a/robot/robotdriver.ts +++ b/robot/robotdriver.ts @@ -40,11 +40,7 @@ namespace microcode { private stopToneMillis: number = 0 lineAssist = false - - debug = true - safe = false runDrift = 0 - lineDrift = 10 constructor(robot: robots.Robot) { this.robot = robot @@ -116,7 +112,6 @@ namespace microcode { private backgroundWork() { while (this.running) { - this.checkAlive() this.updateTone() this.updateLineState() this.updateSpeed() @@ -352,12 +347,6 @@ namespace microcode { this.robot.headlightsSetColor(red, green, blue) } - checkAlive() { - if (!this.safe) return - if (control.millis() - this.lastCommandTime > ROBOT_TIMEOUT) - this.stop() - } - stop() { this.setHeadlingSpeedColor(0) this.robot.motorRun(0, 0)