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

getActualPosition

Returns the current position of the stepper motor between 0 and getStepsPerRevolution()-1. eg if the stepper motor has 200 steps per revolution then it will be a number between 0 and 199.
Syntax
StepperMotor. getActualPosition()
Where StepperMotor is the name you have given to the device in Project Designer.
Parameters
None
Returns
uint16_t
See Also
getStepsPerRevolution

 

 

Valid XHTML 1.0 Transitional