Skip to content

Commit

Permalink
tweak microcode data
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Oct 12, 2023
1 parent f9c77e5 commit b1287f6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions robot/robotdriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ namespace microcode {

this.running = true
this.showConfiguration = SHOW_CONFIG_COUNT
this.robot.headlightsSetColor(0, 0xff, 0)
// wake up sensors
this.ultrasonicDistance()
this.lineState()
Expand Down Expand Up @@ -299,6 +300,7 @@ namespace microcode {
this.setHeadlingSpeedColor(speed)
this.targetSpeedMode = RobotSpeedMode.Turn
this.targetSpeed = speed
this.currentSpeed = 0
}
}

Expand Down
7 changes: 6 additions & 1 deletion robot/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ microcode.elecfreaksCuteBot.start()
//microcode.keyStudioMiniSmartRobot.start()
//microcode.setMotorDrift(6)

microcode.robotDriver.motorRun(100)
// microcode...
microcode.elecfreaksCuteBot.robot.maxLineRunSpeed = 28
microcode.elecfreaksCuteBot.robot.maxLineTurnSpeed = 26

/*
microcode.robotDriver.motorRun(100)
let i = 0
basic.forever(() => {
const lines = microcode.robotDriver.currentLineState
Expand All @@ -21,3 +25,4 @@ basic.forever(() => {
else
microcode.robotDriver.motorRun(100)
})
*/

0 comments on commit b1287f6

Please sign in to comment.