# HG changeset patch # User Mychaela Falconia # Date 1495870419 0 # Node ID d309241fcae30c8745e0acf32e35e772c9e3d9fa # Parent 1a0dbc746d573262c4df40196acdc8c5227d7491 fc-rfcal-gmagic ready to test diff -r 1a0dbc746d57 -r d309241fcae3 autocal/gmagicmain.c --- a/autocal/gmagicmain.c Sat May 27 07:23:20 2017 +0000 +++ b/autocal/gmagicmain.c Sat May 27 07:33:39 2017 +0000 @@ -64,6 +64,9 @@ main(argc, argv) char **argv; { + int pm, Gmagic; + char Gmagic_db[64]; + socket_pathname_options(argc, argv); finish_cmdline(argc, argv); connect_rvinterf_socket(); @@ -75,6 +78,9 @@ do_tms(1); do_rfpw(STD_BAND_FLAG, selected_band->rfpw_std_band); l1tm_setup_for_rxcal(); - - + pm = rx_measure(arfcn); + Gmagic = pm - RXCAL_SIGGEN_LEVEL - RXCAL_AGC_DB * 2; + halfdb_to_string(Gmagic, Gmagic_db); + printf("GMagic=%d (%s dB)\n", Gmagic, Gmagic_db); + exit(0); }