From: c vw Date: Wed, 26 May 2021 14:36:20 +0000 (+0200) Subject: Corrected HermesLite2 gain behaviour X-Git-Url: https://git.rkrishnan.org/listings/vdrive/index.php?a=commitdiff_plain;h=83335723f0a4353d8387a5080e67617e52be6ab0;p=pihpsdr.git Corrected HermesLite2 gain behaviour --- diff --git a/hpsdrsim.c b/hpsdrsim.c index 083bc22..e925efa 100644 --- a/hpsdrsim.c +++ b/hpsdrsim.c @@ -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");