]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
User watt meter calibration both for fwd and rev power.
authorc vw <dl1ycf@darc.de>
Wed, 26 Feb 2020 11:18:18 +0000 (12:18 +0100)
committerc vw <dl1ycf@darc.de>
Wed, 26 Feb 2020 11:18:18 +0000 (12:18 +0100)
transmitter.c

index c732f4e4e88ed306d53076a3dc829bf5ab072089..f709b84acb15aaa8ca92d53cea223d6c08c30e3e 100644 (file)
@@ -563,11 +563,12 @@ static gboolean update_display(gpointer data) {
     }
 
     double fwd=compute_power(transmitter->fwd);
+    double rev=compute_power(transmitter->rev);
 
-//g_print("transmitter: meter_update: fwd:%f->%f rev:%f ex_fwd=%d alex_fwd=%d alex_rev=%d\n",transmitter->fwd,fwd,transmitter->rev,exciter_power,alex_forward_power,alex_reverse_power);
+//g_print("transmitter: meter_update: fwd:%f->%f rev:%f->%f ex_fwd=%d alex_fwd=%d alex_rev=%d\n",transmitter->fwd,fwd,transmitter->rev,rev,exciter_power,alex_forward_power,alex_reverse_power);
 
     if(!duplex) {
-      meter_update(active_receiver,POWER,/*transmitter->*/fwd,transmitter->rev,transmitter->exciter,transmitter->alc);
+      meter_update(active_receiver,POWER,/*transmitter->*/fwd,/*transmitter->*/rev,transmitter->exciter,transmitter->alc);
     }
 
     return TRUE; // keep going