-
Notifications
You must be signed in to change notification settings - Fork 0
Weight
Tiogaplanet edited this page Jul 15, 2026
·
3 revisions
It can be a touchy subject - ask for MiP's weight.
int8_t readWeight()
Read MiP's current estimate of how much weight it is carrying.
None
A signed integer representing how much it is tilted to keep its center of mass directly over the wheels. A positive value if it is front heavy and a negative value if it is back heavy.
- MiP's weight updates may be lost if you are spending too much time sending output back to a serial monitor. See Limitations section above.
void loop() {
static int8_t lastWeight = -128;
int8_t currentWeight = mip.readWeight();
if (currentWeight != lastWeight) {
Serial1.print(F("Weight = "));
Serial1.println(currentWeight);
lastWeight = currentWeight;
}
}🔗 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