]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Corrected HermesLite2 gain behaviour
authorc vw <dl1ycf@darc.de>
Wed, 26 May 2021 14:36:20 +0000 (16:36 +0200)
committerc vw <dl1ycf@darc.de>
Wed, 26 May 2021 14:36:20 +0000 (16:36 +0200)
hpsdrsim.c

index 083bc22b4f89f66f98b73172a8d5027dc35a3cb0..e925efa174a1af9abe1990ff27f73e6d2accac1d 100644 (file)
@@ -1095,9 +1095,10 @@ void process_ep2(uint8_t *frame)
             // for a combined attenuator/preamplifier with the AD9866 chip.
             // The value is between 0 and 60 and formally correspondes to
             // to an RX gain of -12 to +48 dB. However, we set here that
-             // a value of +16 (that is, 28 on the 0-60 scale) corresponds to
+             // a value of +14 (that is, 26 on the 0-60 scale) corresponds to
              // "zero attenuation"
-            chk_data(37 -(frame[4] & 0x3F) , rx_att[0], "RX1 HL ATT/GAIN");
+            // This means that the nominal value of "RX gain calibration" is 14.
+            chk_data(26 -(frame[4] & 0x3F) , rx_att[0], "RX1 HL ATT/GAIN");
            } else {
              chk_data((frame[4] & 0x1F) >> 0, rx_att[0], "RX1 ATT");
              chk_data((frame[4] & 0x20) >> 5, rx1_attE, "RX1 ATT enable");