Fix issue with currentSpeed having to go through driver.
This commit is contained in:
parent
6a9c5eb60e
commit
ea472f9e12
|
@ -14,7 +14,7 @@ Cylon.robot
|
|||
every 0.05.seconds(), ->
|
||||
speed += increment
|
||||
my.motor.speed(speed)
|
||||
console.log("current speed => #{ my.motor.driver.currentSpeed }")
|
||||
console.log("current speed => #{ my.motor.currentSpeed() }")
|
||||
increment = -increment if (speed is 0) or (speed is 255)
|
||||
|
||||
.start()
|
||||
|
|
Loading…
Reference in New Issue