-
Notifications
You must be signed in to change notification settings - Fork 0
MiP_Odometer
github-actions[bot] edited this page Aug 10, 2026
·
9 revisions
Manages MiP's odometer monitoring.
Signature: MiP_Odometer(MiP &mip)
Summary: Constructs the odometer manager.
Parameters:
| Parameter | Description |
|---|---|
mip |
A reference to the main MiP object to access core services. |
Signature: float read()
Summary: Reads the total distance travelled by the MiP.
Details:
Performs a verified read with automatic retries on error.
Returns: Distance in centimeters. Returns 0.0 on failure.
Signature: void reset()
Summary: Resets the odometer distance to zero.
Signature: constexpr uint8_t MIP_CMD_READ_ODOMETER
Summary: MiP protocol command bytes used by the odometer subsystem.
Details:
These values are placed in the first byte of requests sent to the MiP (and appear in the corresponding responses). See the official MiP BLE Protocol for the complete list.
Signature: constexpr uint8_t MIP_CMD_RESET_ODOMETER
- 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