Skip to content

Commit

Permalink
removing unused feature
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Oct 13, 2023
1 parent f410bda commit 103fc68
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions robot/robotdriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -116,7 +112,6 @@ namespace microcode {

private backgroundWork() {
while (this.running) {
this.checkAlive()
this.updateTone()
this.updateLineState()
this.updateSpeed()
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 103fc68

Please sign in to comment.