comparison autocal/rxband.c @ 60:81e8f7e99d89

fc-rfcal-rxband: upload of GMagic to DUT implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 27 May 2017 23:35:06 +0000
parents 46c72323182a
children 0bf853d1b68e
comparison
equal deleted inserted replaced
59:c87067884da7 60:81e8f7e99d89
128 printf("Calibrating GMagic\n"); 128 printf("Calibrating GMagic\n");
129 pm = rx_measure(rxcal_band->main_arfcn); 129 pm = rx_measure(rxcal_band->main_arfcn);
130 Gmagic = pm - RXCAL_SIGGEN_LEVEL - RXCAL_AGC_DB * 2; 130 Gmagic = pm - RXCAL_SIGGEN_LEVEL - RXCAL_AGC_DB * 2;
131 halfdb_to_string(Gmagic, Gmagic_db); 131 halfdb_to_string(Gmagic, Gmagic_db);
132 printf("GMagic=%d (%s dB)\n", Gmagic, Gmagic_db); 132 printf("GMagic=%d (%s dB)\n", Gmagic, Gmagic_db);
133 upload_gmagic(Gmagic);
133 return(0); 134 return(0);
134 } 135 }