removing tacho (#382)

This commit is contained in:
Peli de Halleux
2018-03-28 09:04:28 -07:00
committed by GitHub
parent f1ea113fc0
commit 8536126e23
4 changed files with 2 additions and 66 deletions

View File

@ -17,11 +17,11 @@ let tachoCount = 0;
motors.largeA.reset()
motors.largeA.run(50)
pause(10000)
tachoCount = motors.largeA.tacho()
tachoCount = motors.largeA.angle()
motors.largeA.clearCounts()
motors.largeA.run(50)
pause(10000)
if (tachoCount == motors.largeA.tacho()) {
if (tachoCount == motors.largeA.angle()) {
brick.showString("Motor turns equal.", 1)
} else {
brick.showString("Motor turns NOT equal.", 1)