updated ui added new features

This commit is contained in:
zach
2025-12-27 15:32:32 -07:00
parent 02ca7801ea
commit a2cfae3a22
589 changed files with 181780 additions and 569 deletions
+32
View File
@@ -0,0 +1,32 @@
/*---------------------------------------------------------------------------*\
FILE........: tesno_est.c
AUTHORS.....: David Rowe
DATE CREATED: Mar 2021
Test for C port of Es/No estimator.
\*---------------------------------------------------------------------------*/
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "ofdm_internal.h"
int main(int argc, char *argv[]) {
FILE *fin = fopen(argv[1], "rb");
assert(fin != NULL);
size_t nsym = atoi(argv[2]);
assert(nsym >= 0);
complex float rx_sym[nsym];
size_t nread = fread(rx_sym, sizeof(complex float), nsym, fin);
assert(nread == nsym);
fclose(fin);
float EsNodB = ofdm_esno_est_calc(rx_sym, nsym);
printf("%f\n", EsNodB);
return 0;
}