Skip to content

MiP_Position

github-actions[bot] edited this page Aug 10, 2026 · 9 revisions

Class MiP_Position

Manages reporitng of MiP's position.

Table of Contents


Constructors & Destructors

MiP_Position

Signature: MiP_Position(MiP &mip)

Summary: Constructs the position manager.

Parameters:

Parameter Description
mip A reference to the main MiP object to access core services.

Public Functions

read

Signature: MiPPosition read()

Summary: Reads the current physical position or orientation of the MiP.

Details:

Uses cached status data (updated automatically from OOB events). No new serial request is sent to the robot.

Returns: Current position as a MiPPosition enum value.


isOnBack

Signature: bool isOnBack()

Summary: Checks if the MiP is lying on its back.

Returns: true if on its back.


isFaceDown

Signature: bool isFaceDown()

Summary: Checks if the MiP is face down.

Returns: true if face down.


isUpright

Signature: bool isUpright()

Summary: Checks if the MiP is upright.

Returns: true if upright.


isPickedUp

Signature: bool isPickedUp()

Summary: Checks if the MiP has been picked up.

Returns: true if picked up.


isHandStanding

Signature: bool isHandStanding()

Summary: Checks if the MiP is in a hand-standing position.

Returns: true if hand-standing.


isFaceDownOnTray

Signature: bool isFaceDownOnTray()

Summary: Checks if the MiP is face down on its tray.

Returns: true if face down on tray.


isOnBackWithKickstand

Signature: bool isOnBackWithKickstand()

Summary: Checks if the MiP is on its back with the kickstand deployed.

Returns: true if on back with kickstand.


Clone this wiki locally