Measure mean signal level in the converters.

Rearrange the meaning of the measured power level to be consistent
with the signal level.
This commit is contained in:
Oliver Jowett 2016-11-12 14:07:58 +00:00
parent 8182dc9a8f
commit cc47718a2d
5 changed files with 79 additions and 37 deletions

View file

@ -27,7 +27,8 @@ typedef void (*iq_convert_fn)(void *iq_data,
uint16_t *mag_data,
unsigned nsamples,
struct converter_state *state,
double *out_power);
double *out_mean_level,
double *out_mean_power);
iq_convert_fn init_converter(input_format_t format,
double sample_rate,