SDR: Display IQ data as a plot using 'q' key

This commit is contained in:
Andreas Eversberg
2017-01-07 19:53:43 +01:00
parent fee4846c3f
commit d28467c125
9 changed files with 294 additions and 32 deletions

View File

@@ -83,6 +83,8 @@ void *sdr_open(const char __attribute__((__unused__)) *audiodev, double *tx_freq
int rc;
int c;
display_iq_init(samplerate);
if (channels < 1) {
PDEBUG(DSDR, DEBUG_ERROR, "No channel given, please fix!\n");
abort();
@@ -283,6 +285,8 @@ int sdr_read(void *inst, int16_t **samples, int num, int channels)
if (count <= 0)
return count;
display_iq(buff, count);
for (c = 0; c < channels; c++) {
rot = sdr->chan[c].rx_rot;
phase = sdr->chan[c].rx_phase;