NMT: Calculate quality of sync sequence and drop in case of bad quality

This eliminates chance of findig a sync sequence in noise or speech
This commit is contained in:
Andreas Eversberg
2016-04-24 07:12:21 +02:00
parent c0cd74ac85
commit 5062628e52
2 changed files with 34 additions and 10 deletions

View File

@@ -108,8 +108,8 @@ typedef struct nmt {
int fsk_filter_mute; /* mute count down after sync */
char fsk_filter_frame[141]; /* receive frame (one extra byte to terminate string) */
int fsk_filter_count; /* next bit to receive */
double fsk_filter_levelsum; /* sum of 140 level infos */
double fsk_filter_qualitysum; /* sum of 140 quality infos */
double fsk_filter_level[256]; /* level infos */
double fsk_filter_quality[256];/* quality infos */
int16_t *super_filter_spl; /* array with sample buffer for supervisory detection */
int super_filter_pos; /* current sample position in filter_spl */
double super_phaseshift256[4]; /* how much the phase of sine wave changes per sample */