Skip to content

Commit

Permalink
acars: report post sync signal level
Browse files Browse the repository at this point in the history
This measures signal level averaged mostly over the PRESYNC key, which
should typically be the "loudest" part.
  • Loading branch information
f00b4r0 committed Sep 9, 2024
1 parent e101abb commit b3f275b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acars.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ void decodeAcars(channel_t *ch)
}
gettimeofday(&(ch->blk->tv), NULL);
ch->Acarsstate = TXT;
ch->blk->lvl = 10 * log10(ch->MskLvl);
ch->blk->chn = ch->chn;
ch->blk->txtlen = 0;
ch->blk->err = 0;
Expand Down Expand Up @@ -387,7 +388,6 @@ void decodeAcars(channel_t *ch)
vprerr("#%d didn't get DEL: %x\n", ch->chn+1, r); // ignored

putmsg_lbl:
ch->blk->lvl = 10 * log10(ch->MskLvl);

vprerr("put message #%d\n", ch->chn + 1);

Expand Down

0 comments on commit b3f275b

Please sign in to comment.