|
Avionics
Core avionics package for CURE flight computers
|
Simple ADC-based battery voltage helper. More...
#include <PowerManagement.h>

Public Member Functions | |
| BatteryVoltage (uint8_t adcPin, float conversionFactor) | |
| float | readVoltage () |
| Sample the ADC and convert to battery voltage. | |
| bool | isAlive () |
| Check whether voltage exceeds a minimal threshold. | |
Simple ADC-based battery voltage helper.
Definition at line 12 of file PowerManagement.h.
|
inline |
Definition at line 14 of file PowerManagement.h.
|
inline |
Check whether voltage exceeds a minimal threshold.
Definition at line 41 of file PowerManagement.h.
|
inline |
Sample the ADC and convert to battery voltage.
Definition at line 22 of file PowerManagement.h.