mirror of https://github.com/drowe67/librtlsdr.git
Rx Frame label
parent
d0de9c53a2
commit
92ff2a9e8c
|
@ -393,7 +393,7 @@ static void rtlsdr_callback(unsigned char *buf, uint32_t len, void *ctx)
|
|||
float S,N;
|
||||
freedv_get_fsk_S_and_N(freedv, &S, &N);
|
||||
fprintf(stderr, "%lu ", (unsigned long)time(NULL));
|
||||
fprintf(stderr, "Sloc: %8.4f Nloc: %8.4f snrloc: %2.2f ", S, N, 10*log10(S/N));
|
||||
fprintf(stderr, "Rx Frame Sloc: %8.4f Nloc: %8.4f snrloc: %2.2f ", S, N, 10*log10(S/N));
|
||||
memcpy(&S, &bytes_out[2], sizeof(float));
|
||||
memcpy(&N, &bytes_out[6], sizeof(float));
|
||||
if ((S>0) && (N>0))
|
||||
|
|
Loading…
Reference in New Issue