VEX IQ C++ API
Public Member Functions | List of all members
vex::brain::battery Class Reference

Use the battery class to see information about the battery. More...

Public Member Functions

 battery ()
 
 ~battery ()
 
float voltage (voltageUnits units)
 Gets the battery voltage. More...
 

Detailed Description

Use the battery class to see information about the battery.

Constructor & Destructor Documentation

◆ battery()

vex::brain::battery::battery ( )
inline

◆ ~battery()

vex::brain::battery::~battery ( )
inline

Member Function Documentation

◆ voltage()

float vex::brain::battery::voltage ( voltageUnits  units)

Gets the battery voltage.

Returns
Returns the battery voltage in the units specified by the parameter.
Parameters
unitsThe unit of voltage to be returned.