From 103fc6899d5bb4fba543be277039c00925b8cc9a Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Fri, 13 Oct 2023 11:29:27 -0700 Subject: [PATCH] removing unused feature --- robot/robotdriver.ts | 11 ----------- 1 file changed, 11 deletions(-) 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)