create Generator
Create a dynamic generator for encoder tick conversions based on a motor. This will try to automatically determine the number of encoder ticks per revolution, if this is not provided, use the other constructor.
Return
The encoder tick generator.
Parameters
The motor.
The gear reduction (input speed / output speed). If not provided, the reduction will be 1.
The diameter of the wheel. If not provided, distance conversions will not be available.
Create a dynamic generator for encoder tick conversions based on a motor.
Return
The encoder tick generator.
Parameters
The motor.
The number of encoder ticks per revolution.
The gear reduction (input speed / output speed). If not provided, the reduction will be 1.
The diameter of the wheel. If not provided, distance conversions will not be available.