From b117ed808afdd858cbbd6bef79bc2144561ec24d Mon Sep 17 00:00:00 2001 From: c vw Date: Sun, 2 May 2021 12:35:24 +0200 Subject: [PATCH] Added comments on the use of the "zero level" values for forward and backward voltage --- transmitter.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/transmitter.c b/transmitter.c index 6232926..0ad0b0a 100644 --- a/transmitter.c +++ b/transmitter.c @@ -520,7 +520,7 @@ static gboolean update_display(gpointer data) { case DEVICE_ORION2: constant1=5.0; constant2=0.08; - fwd_cal_offset=18; + fwd_cal_offset=18; // On Anan-7000 I measured 36 break; case DEVICE_HERMES_LITE: case DEVICE_HERMES_LITE2: @@ -539,6 +539,7 @@ static gboolean update_display(gpointer data) { fwd_power=ex_power; } fwd_power=fwd_power-fwd_cal_offset; + // should be applied to rev_power as well v1=((double)fwd_power/4095.0)*constant1; tx->fwd=(v1*v1)/constant2; @@ -596,6 +597,7 @@ static gboolean update_display(gpointer data) { fwd_power=exciter_power; } fwd_power=fwd_power-fwd_cal_offset; + // should be applied to rev_power as well v1=((double)fwd_power/4095.0)*constant1; tx->fwd=(v1*v1)/constant2; -- 2.45.2