mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 22:35:23 +03:00
implemented using one of RC inputs as ADC channel for power meter.
added MSP_ACC_TRIM stuff for android GUI. git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@231 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
This commit is contained in:
parent
e59f639951
commit
23acf529d7
14 changed files with 3007 additions and 2936 deletions
2
src/mw.c
2
src/mw.c
|
@ -147,7 +147,7 @@ void annexCode(void)
|
|||
|
||||
if (feature(FEATURE_VBAT)) {
|
||||
if (!(++vbatTimer % VBATFREQ)) {
|
||||
vbatRawArray[(ind++) % 8] = adcGetBattery();
|
||||
vbatRawArray[(ind++) % 8] = adcGetChannel(ADC_BATTERY);
|
||||
for (i = 0; i < 8; i++)
|
||||
vbatRaw += vbatRawArray[i];
|
||||
vbat = batteryAdcToVoltage(vbatRaw / 8);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue