WebbotLib AVR library
WebbotLib It just does it
  C++ documentation  C documentation

step

Tell the motor to move by the specified number of steps and then stop.
Syntax
StepperMotor. step(steps)
Where StepperMotor is the name you have given to the device in Project Designer.
Parameters
TypeNameDescription
'steps'
The number of steps you want to move by. +ve numbers will rotate one way and -ve numbers the other.
Returns
None
Note
A positive number will make the motor turn clockwise, and a negative number will make the motor turn anti-clockwise.
The motor will accelerate in the required direction and then slow down as it approaches the goal.
See Also
getStepsRemaining

 

 

Valid XHTML 1.0 Transitional