Encoder Ticks
object EncoderTicks
Utility class for converting between SI units and encoder ticks.
Author
Lucas Bubner, 2024
Since
3.0.0
Types
Functions
Link copied to clipboard
fun createGenerator(motor: DcMotor, reduction: Double = 1.0, wheelDiameter: Measure<Distance>? = null): EncoderTicks.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.
fun createGenerator(motor: DcMotor, ticksPerRevolution: Number, reduction: Double = 1.0, wheelDiameter: Measure<Distance>? = null): EncoderTicks.Generator
Create a dynamic generator for encoder tick conversions based on a motor.
Link copied to clipboard
Link copied to clipboard