-
Notifications
You must be signed in to change notification settings - Fork 0
MiP_Radar
Manages MiP's radar system.
Signature: constexpr uint8_t MIP_CMD_GET_GESTURE_RADAR_MODE
MiP protocol command bytes used by the radar 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_SET_GESTURE_RADAR_MODE
Signature: constexpr uint8_t MIP_CMD_GET_RADAR_RESPONSE
Signature: MiP_Radar(MiP &mip)
Constructs the radar manager.
Parameters:
| Parameter | Description |
|---|---|
mip |
A reference to the main MiP object to access core services. |
Signature: void clear()
Signature: void enable()
Enables radar tracking mode on the MiP.
Details:
Uses verified mode switching (command + read-back confirmation with retry).
Signature: void disable()
Disables radar tracking mode.
Details:
Uses verified mode switching (command + read-back confirmation with retry).
Signature: bool isEnabled()
Checks whether radar tracking mode is currently active.
Returns: true if radar mode is enabled.
Signature: MiPRadar read()
Reads the most recent radar tracking data.
Details:
Uses cached value from the latest OOB status event. Processes pending serial data first.
Returns: Current radar value or MIP_RADAR_INVALID if no data received yet.
Signature: void processEvent(uint8_t radarCode)
Handles an incoming radar OOB event from the transport layer.
Details:
Called by MiP::dispatchEvent() when a MIP_CMD_GET_RADAR_RESPONSE notification is received. Updates the cached distance and marks the radar data as valid.
Parameters:
| Parameter | Description |
|---|---|
radarCode |
Raw distance code from the MiP (MIP_RADAR_NONE .. MIP_RADAR_0CM_10CM). |
🔗 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