FreeCalypso > hg > fc-rfcal-tools
comparison autocal/txlevels.c @ 84:a2d4cab0a592
fc-rfcal-txband: works after a couple of bugfixes
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 15 Jul 2017 23:57:56 +0000 |
parents | 45ef4a06edfc |
children | b0618796d28d |
comparison
equal
deleted
inserted
replaced
83:45ef4a06edfc | 84:a2d4cab0a592 |
---|---|
45 do_rfe(RX_TX_TCH); | 45 do_rfe(RX_TX_TCH); |
46 | 46 |
47 for (plnum = txcal_band->start_plnum; plnum <= txcal_band->end_plnum; | 47 for (plnum = txcal_band->start_plnum; plnum <= txcal_band->end_plnum; |
48 plnum++) { | 48 plnum++) { |
49 do_txpw(TX_PWR_LEVEL, plnum); | 49 do_txpw(TX_PWR_LEVEL, plnum); |
50 plidx = plnum = txcal_band->start_plnum; | 50 plidx = plnum - txcal_band->start_plnum; |
51 target = tx_levels[plidx].target; | 51 target = tx_levels[plidx].target; |
52 apc = find_apc_for_target(target, &tx_levels[plidx].slope); | 52 apc = find_apc_for_target(target, &tx_levels[plidx].slope); |
53 tx_levels[plidx].apc = apc; | 53 tx_levels[plidx].apc = apc; |
54 do_txpw(TX_APC_DAC, apc); | 54 do_txpw(TX_APC_DAC, apc); |
55 usleep(20000); | 55 usleep(20000); |