| 
    VEX V5 C++ API
    
   | 
 
Use the battery class to see information about the battery. More...
Public Member Functions | |
| battery () | |
| ~battery () | |
| uint32_t | capacity (percentUnits units=percentUnits::pct) | 
| Gets the battery capacity.  More... | |
| double | temperature (percentUnits units=percentUnits::pct) | 
| double | temperature (temperatureUnits units) | 
| Gets the battery temperature.  More... | |
| double | voltage (voltageUnits units) | 
| Gets the battery voltage.  More... | |
| double | current (currentUnits units) | 
| Gets the battery current.  More... | |
Use the battery class to see information about the battery.
      
  | 
  inline | 
      
  | 
  inline | 
| uint32_t vex::brain::battery::capacity | ( | percentUnits | units = percentUnits::pct | ) | 
Gets the battery capacity.
| units | (Optional) The type of unit that will be returned. By default, this parameter is a percentage. | 
| double vex::brain::battery::temperature | ( | percentUnits | units = percentUnits::pct | ) | 
@brief Gets the battery temperature. @return Returns the battery temperature in the units specified by the parameter.
| units | (Optional) The type of unit that will be returned. By default, this parameter is a percentage. | 
| double vex::brain::battery::temperature | ( | temperatureUnits | units | ) | 
Gets the battery temperature.
| units | The unit of temperature that will be returned. | 
| double vex::brain::battery::voltage | ( | voltageUnits | units | ) | 
Gets the battery voltage.
| units | The unit of voltage to be returned. | 
| double vex::brain::battery::current | ( | currentUnits | units | ) | 
Gets the battery current.
| units | The type of current to be returned. | 
 1.8.15