VEX2 Battery and Power Control
From ROBOTC API Guide
|
Main → CORTEX → Functions and Variables → Battery and Power Control |
|
| |||||||
nAvgBatteryLevel
| int nAvgBatteryLevel | |
| (int) The average battery level in millivolts. (A value of 9458 represent 9.458 volts.) It's the average of 20 recent samples and smoothes out sudden voltage transients. | |
|
nImmediateBatteryLevel
| int nImmediateBatteryLevel | |
| (int) The last sampled battery level in millivolts. (A value of 9458 represent 9.458 volts.) | |
|