adjust range to a minimum of 1 this would result in a 500hz AFC range; add some debug messages;

usb-support
Bryan Biedenkapp 3 years ago
parent 762a3d576e
commit c03985d564

@ -635,6 +635,9 @@ void IO::setRFAdjust(int8_t dmrDiscBWAdj, int8_t p25DiscBWAdj, int8_t nxdnDiscBW
m_dmrPostBWAdj = dmrPostBWAdj;
m_p25PostBWAdj = p25PostBWAdj;
m_nxdnPostBWAdj = nxdnPostBWADJ;
DEBUG4("IO::setRFAdjust(): setting RF adjustment, discBW", dmrDiscBWAdj, p25DiscBWAdj, nxdnDiscBWAdj);
DEBUG4("IO::setRFAdjust(): setting RF adjustment, postBW", dmrPostBWAdj, p25PostBWAdj, nxdnPostBWADJ);
}
/// <summary>
@ -650,6 +653,8 @@ void IO::setAFCParams(bool afcEnable, uint8_t afcKI, uint8_t afcKP, uint8_t afcR
m_afcKI = afcKI;
m_afcKP = afcKP;
m_afcRange = afcRange;
DEBUG5("IO::setAFCParams(): setting AFC params", afcEnable, afcKI, afcKP, afcRange);
}
/// <summary>

@ -1358,7 +1358,7 @@ uint8_t SerialPort::setRFParams(const uint8_t* data, uint8_t length)
io.setAFCParams(afcEnable, afcKI, afcKP, afcRange);
} else {
io.setAFCParams(false, 11, 4, 2);
io.setAFCParams(false, 11, 4, 1);
}
gainMode = (ADF_GAIN_MODE)data[14U];

Loading…
Cancel
Save

Powered by TurnKey Linux.