|
|
|
|
@ -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
|
|
|
|
|
int t = markers[0].index;
|
|
|
|
|
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 --;
|
|
|
|
|
if (t > 0)
|
|
|
|
|
markers[1].index = t;
|
|
|
|
|
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 ++;
|
|
|
|
|
if (t < setting._sweep_points - 1 )
|
|
|
|
|
markers[2].index = t;
|
|
|
|
|
|