Skip to content

MiP_Battery

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

Class MiP_Battery

Manages MiP's battery monitoring.

Public Members & Functions

MiP_Battery

Signature: MiP_Battery(MiP &mip)

Constructs the battery manager.

Parameters:

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

readVoltage

Signature: float readVoltage()

Reads the current battery voltage of the MiP robot.

Details:

Reads the most recent cached value of MiP's battery voltage.

Returns: Battery voltage, typically 4.0V (low) to 6.4V (full).


Clone this wiki locally