Odometry

class Odometry(hardwareMap: HardwareMap, name: String, ticksPerRev: Double, wheelDiameterCM: Double)

Represents an Odometry system for a single encoder.

Constructors

Link copied to clipboard
constructor(hardwareMap: HardwareMap, name: String, ticksPerRev: Double, wheelDiameterCM: Double)

Properties

Link copied to clipboard

Gets the current position of the encoder in ticks.

Functions

Link copied to clipboard
fun reset()

Resets the odometry hardware and internal state.

Link copied to clipboard

Calculates the distance traveled based on ticks.