Re #3371: Horus batery voltage adjusted based on measurements with a precise volt-meter
This commit is contained in:
@@ -270,5 +270,5 @@ void checkTrainerSettings()
|
|||||||
uint16_t getBatteryVoltage()
|
uint16_t getBatteryVoltage()
|
||||||
{
|
{
|
||||||
int32_t instant_vbat = anaIn(TX_VOLTAGE); // using filtered ADC value on purpose
|
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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user