FreeCalypso > hg > fc-rfcal-tools
comparison autocal/txlevels.c @ 115:1e49bb52b07e
fc-rfcal-txband: set calchan indices in the levels table
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Tue, 13 Feb 2018 05:17:13 +0000 |
| parents | 7ad0495991ed |
| children | 4c3f4231a021 |
comparison
equal
deleted
inserted
replaced
| 114:ae8da516681c | 115:1e49bb52b07e |
|---|---|
| 56 plidx = plnum - txcal_band->start_plnum; | 56 plidx = plnum - txcal_band->start_plnum; |
| 57 target = tx_levels[plidx].target; | 57 target = tx_levels[plidx].target; |
| 58 apc = find_apc_for_target(target, &tx_levels[plidx].slope); | 58 apc = find_apc_for_target(target, &tx_levels[plidx].slope); |
| 59 tx_levels[plidx].apc = apc; | 59 tx_levels[plidx].apc = apc; |
| 60 do_txpw(TX_APC_DAC, apc); | 60 do_txpw(TX_APC_DAC, apc); |
| 61 do_txpw(TX_CHAN_CAL_TABLE, | |
| 62 txcal_band->calchan_selections[plidx]); | |
| 61 usleep(20000); | 63 usleep(20000); |
| 62 meas = tx_power_meas(); | 64 meas = tx_power_meas(); |
| 63 if (isnan(meas)) | 65 if (isnan(meas)) |
| 64 nanflag = 1; | 66 nanflag = 1; |
| 65 error = meas - target; | 67 error = meas - target; |
