-
Notifications
You must be signed in to change notification settings - Fork 0
MiP_Odometer
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 its internal wheel tick registers.
Signature: constexpr uint8_t MIP_CMD_READ_ODOMETER
Summary: MiP protocol command byte to read the accumulated wheel tick odometer count.
Signature: constexpr uint8_t MIP_CMD_RESET_ODOMETER
Summary: MiP protocol command byte to reset the odometer wheel tick counter to zero.
- 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