TCXO offset calibration

This commit is contained in:
Jan Käberich 2021-05-01 18:34:53 +02:00
parent 4f4b2db549
commit 938f444c73
19 changed files with 319 additions and 34 deletions

View file

@ -235,7 +235,7 @@ void HW::SetIdle() {
HW::AmplitudeSettings HW::GetAmplitudeSettings(int16_t cdbm, uint64_t freq, bool applyCorrections, bool port2) {
if (applyCorrections) {
auto correction = AmplitudeCal::SourceCorrection(freq);
auto correction = Cal::SourceCorrection(freq);
if (port2) {
cdbm += correction.port2;
} else {
@ -336,6 +336,10 @@ void HW::Ref::set(Protocol::ReferenceSettings s) {
ref = s;
}
bool HW::Ref::usingExternal() {
return extRefInUse;
}
void HW::Ref::update() {
if(extOutFreq != ref.ExtRefOuputFreq) {
extOutFreq = ref.ExtRefOuputFreq;