From 70b11d037d1365941f275b1228f2613ad5ba195d Mon Sep 17 00:00:00 2001 From: "bsongis@gmail.com" Date: Sun, 12 May 2013 21:25:22 +0000 Subject: [PATCH] [Taranis] VBatt += 0.2v because of the diode --- src/opentx.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/opentx.cpp b/src/opentx.cpp index c94927dff..2050becac 100644 --- a/src/opentx.cpp +++ b/src/opentx.cpp @@ -3664,6 +3664,7 @@ void perMain() int32_t instant_vbat = anaIn(TX_VOLTAGE); instant_vbat = ( instant_vbat + instant_vbat*(g_eeGeneral.vBatCalib)/128 ) * 4191; instant_vbat /= 55296; + instant_vbat += 2; // because of the diode #elif defined(PCBGRUVIN9X) uint16_t instant_vbat = anaIn(TX_VOLTAGE); instant_vbat = ((uint32_t)instant_vbat*1112 + (int32_t)instant_vbat*g_eeGeneral.vBatCalib + (BandGap<<2)) / (BandGap<<3);