Re #3371: Horus batery voltage adjusted based on measurements with a precise volt-meter

This commit is contained in:
Damjan Adamic
2016-03-23 19:49:35 +01:00
parent c5a5fa2430
commit d831d1428c
+1 -1
View File
@@ -270,5 +270,5 @@ void checkTrainerSettings()
uint16_t getBatteryVoltage()
{
int32_t instant_vbat = anaIn(TX_VOLTAGE); // using filtered ADC value on purpose
return (uint16_t)((instant_vbat * (1000 + g_eeGeneral.txVoltageCalibration) ) / 1637);
return (uint16_t)((instant_vbat * (1000 + g_eeGeneral.txVoltageCalibration) ) / 1629);
}