Prepare for SDR: Add bandwidth and deviation info to sender instance

This commit is contained in:
Andreas Eversberg
2017-01-06 12:22:51 +01:00
parent 9ff8c3bb25
commit c5cf88ce57
10 changed files with 35 additions and 9 deletions

View File

@@ -42,6 +42,7 @@ extern int voice_deviation;
#define PI M_PI
#define BANDWIDTH 5500.0 /* maximum bandwidth */
#define FSK_DEVIATION 10000
#define COMPANDOR_0DB 30000
#define BITRATE 5280.0 /* bits per second */
@@ -88,6 +89,10 @@ int dsp_init_sender(cnetz_t *cnetz, int measure_speed, double clock_speed[2], do
PDEBUG_CHAN(DDSP, DEBUG_DEBUG, "Init FSK for 'Sender'.\n");
/* set deviation and modulation parameters */
cnetz->sender.bandwidth = BANDWIDTH;
cnetz->sender.sample_deviation = 2500.0 / (double)FSK_DEVIATION;
if (measure_speed) {
cnetz->measure_speed = measure_speed;
cant_recover = 1;