Meisei: Use all occurrences of f_ref in frame

pull/45/head
Rolf Meeser 2022-07-02 11:28:52 +02:00
rodzic 40675e4322
commit 4b4d8c0693
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -883,10 +883,13 @@ int main(int argc, char **argv) {
// freq
if (counter % 64 == 15) { freq = 400e3+(*fcfg)*100.0; gpx.fq = freq; }
//PTU: Save reference frequency
//PTU: Save reference frequency (sent in both even and odd frames)
if (counter % 4 == 0) {
gpx.f_ref = bits2val(subframe_bits+HEADLEN+0*46+17, 16);
}
if (counter % 4 == 3) {
gpx.f_ref = bits2val(subframe_bits+HEADLEN+3*46, 16);
}
}
if (counter % 2 == 0) {