-
Notifications
You must be signed in to change notification settings - Fork 0
MiP_Odometer
github-actions[bot] edited this page Aug 11, 2026
·
9 revisions
Manages MiP's odometer tracking and distance measurement.
Signature: float read()
Summary: Reads MiP's total distance travelled.
Details:
Queries MiP's wheel encoder ticks and converts the result to centimeters (at 48.5 ticks per centimeter). Performs a verified read with automatic retries on error.
Returns: float Accumulated distance in centimeters. Returns 0.0f on communication failure.
Signature: void reset()
Summary: Resets the odometer distance counter back to zero.
Details:
Sends the reset command to MiP to zero out internal wheel tick registers.
- MiP
- MiPChestLED
- MiPClapSettings
- MiPDebug
- MiPHardwareInfo
- MiPHeadLEDs
- MiPIRDongleCode
- MiPSoftwareVersion
- MiPStatus
- MiP_Battery
- MiP_ChestLED
- MiP_Clap
- MiP_EEPROM
- MiP_Gesture
- MiP_HeadLEDs
- MiP_Infrared
- MiP_Mode
- MiP_Motion
- MiP_Odometer
- MiP_Position
- MiP_Radar
- MiP_Serial
- MiP_Shake
- MiP_Sound
- MiP_Version
- MiP_Weight
- MiP_WiFi