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.

Public Members & Functions

MiP_Position

Signature: MiP_Position(MiP &mip)

Constructs the position manager.

Parameters:

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

read

Signature: MiPPosition read()

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()

Checks if the MiP is lying on its back.

Returns: true if on its back.


isFaceDown

Signature: bool isFaceDown()

Checks if the MiP is face down.

Returns: true if face down.


isUpright

Signature: bool isUpright()

Checks if the MiP is upright.

Returns: true if upright.


isPickedUp

Signature: bool isPickedUp()

Checks if the MiP has been picked up.

Returns: true if picked up.


isHandStanding

Signature: bool isHandStanding()

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

Returns: true if hand-standing.


isFaceDownOnTray

Signature: bool isFaceDownOnTray()

Checks if the MiP is face down on its tray.

Returns: true if face down on tray.


isOnBackWithKickstand

Signature: bool isOnBackWithKickstand()

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

Returns: true if on back with kickstand.


Clone this wiki locally