56bbcde299
* removed logging * removing more logging * always use step for single/multiple motors * refactored schedule * account for accel ramp up and down * added default acc/decel * rounding speed/angle * remove hack * use acceleration time in run too * handle missing case * adding notes on motors * adding sample * fixed ramp simulation * clear defaults * some docs, more later * adding basic examples * remove debug msg * clean json * added move schedule * docs * basic docs
1.0 KiB
1.0 KiB
Schedule
Schedules an acceleration, constant and deceleration phase at a given speed.
motors.largeA.schedule(50, 100, 500, 100)
The speed setting is a percentage of the motor's full speed. Full speed is the speed that the motor runs when the brick supplies maximum output voltage to the port.
Parameters
- speed: a number that is the percentage of full speed. A negative value runs the motor in the reverse direction.
- acceleration: the number of movement units to rotate for while accelerating.
- value: the number of movement units to rotate for.
- deceleration: the number of movement units to rotate for while decelerating.
- unit: the movement unit of rotation. This can be
milliseconds
,seconds
,degrees
, orrotations
. If the number for value is0
, this parameter isn't used.