Fixup: SDR: Show IQ data with three colors

Use correct threshold values to display colors
This commit is contained in:
Andreas Eversberg
2017-09-01 18:37:42 +02:00
parent ea7cbb8675
commit 064d95f37e

View File

@@ -184,10 +184,12 @@ void display_iq(float *samples, int length)
/* overdrive: /* overdrive:
* 2 = close to -1..1 or above * 2 = close to -1..1 or above
* 1 = close to -0.5..0.5 or above * 1 = close to -0.5..0.5 or above
* Note: L is square of vector length,
* so we compare with square values.
*/ */
if (L > 0.9) if (L > 0.9 * 0.9)
overdrive[y/2][x] = 2; overdrive[y/2][x] = 2;
else if (L > 0.45 && overdrive[y/2][x] < 1) else if (L > 0.45 * 0.45 && overdrive[y/2][x] < 1)
overdrive[y/2][x] = 1; overdrive[y/2][x] = 1;
} }
if (iq_on == 1) if (iq_on == 1)