-
Notifications
You must be signed in to change notification settings - Fork 0
Odometer
Tiogaplanet edited this page Jul 15, 2026
·
4 revisions
The odometer tracks the distance MiP has traveled.
float readDistanceTravelled()
Read the current MiP odometer tally.
None
The distance traveled (in centimeters) since the last reset.
- MiP's odometer is similar to that in a car. It maintains the total tally of the distance traveled, even across power cycles.
- The resetDistanceTravelled() function can be used to reset the odometer.
float cm = mip.readDistanceTravelled();
Serial1.print(F("MiP has travelled "));
Serial1.print(cm);
Serial1.println(F(" cm since the last reset."));void resetDistanceTravelled()
Reset MiP's odometer. The current odometer distance measurement is available by calling the readDistanceTravelled() function.
None
Nothing
- MiP's odometer doesn't automatically reset during a power cycle.
- You should call this function if you want to manually reset it.
float cm = mip.readDistanceTravelled();
Serial1.print(F("MiP has traveled "));
Serial1.print(cm);
Serial1.println(F(" cm since the last reset."));
mip.resetDistanceTravelled();🔗 Quick Links: Main Repository • Report an Issue • Wiki Home
An open-source API for the WowWee MiP Robot. Licensed under Apache-2.0.
- 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