Change level threshold to -6dB

pull/8/head
erikkaashoek 5 years ago
parent cafe2b7a47
commit e82e61d9eb

@ -2308,12 +2308,12 @@ sweep_again: // stay in sweep loop when output mo
} else if (setting.measurement == M_PASS_BAND && markers[0].index > 10) { // ----------------Pass band measurement } else if (setting.measurement == M_PASS_BAND && markers[0].index > 10) { // ----------------Pass band measurement
int t = markers[0].index; int t = markers[0].index;
float v = actual_t[t]; float v = actual_t[t];
while (t > 0 && actual_t[t] > v - 3.0) // Find left -3dB point while (t > 0 && actual_t[t] > v - 6.0) // Find left -3dB point
t --; t --;
if (t > 0) if (t > 0)
markers[1].index = t; markers[1].index = t;
t = markers[0].index; t = markers[0].index;
while (t < setting._sweep_points - 1 && actual_t[t] > v - 3.0) // find right -3dB point while (t < setting._sweep_points - 1 && actual_t[t] > v - 6.0) // find right -3dB point
t ++; t ++;
if (t < setting._sweep_points - 1 ) if (t < setting._sweep_points - 1 )
markers[2].index = t; markers[2].index = t;

Loading…
Cancel
Save

Powered by TurnKey Linux.