VEX2 Battery and Power Control
| Line 2: | Line 2: | ||
<br /> | <br /> | ||
| − | + | {{tl|1|1}} | |
| − | { | + | <br /> |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
== nAvgBatteryLevel == | == nAvgBatteryLevel == | ||
Revision as of 09:06, 30 April 2012
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.) | |
|