-
Notifications
You must be signed in to change notification settings - Fork 0
MiP_Gesture
Manages MiP's gesture detection subsystem and event queue.
Signature: void enable()
Summary: Enables gesture detection mode on MiP.
Details:
Uses verified mode switching (sends mode command + read-back confirmation with automatic retry on failure).
Signature: void disable()
Summary: Disables gesture detection mode.
Details:
Uses verified mode switching (sends disable command + read-back confirmation with automatic retry on failure).
Signature: bool isEnabled()
Summary: Checks whether gesture detection mode is currently active on MiP.
Returns: true if gesture mode is enabled (mode equals MIP_GESTURE), false otherwise.
Signature: uint8_t availableEvents()
Summary: Returns the number of unread gesture events currently in the queue.
Details:
Processes any pending serial data first to ensure the internal queue is up to date.
Returns: uint8_t Number of available gesture events in the queue.
Signature: MiPGesture readEvent()
Summary: Reads the next available gesture event from the queue.
Details:
Processes pending serial data first. Pops the oldest gesture event from the queue. Returns MIP_GESTURE_INVALID and sets last error to MIP_ERROR_NO_EVENT if the queue is empty.
Returns: MiPGesture The gesture event direction code, or MIP_GESTURE_INVALID if none available.
Signature: bool areGestureAndRadarModesDisabled()
Summary: Checks whether both gesture detection and radar tracking modes are disabled.
Returns: true if both modes are off (in MIP_GESTURE_RADAR_DISABLED state), false otherwise.
🔗 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