mirror of
https://github.com/nqrduck/LimeDriver.git
synced 2024-11-22 10:02:25 +00:00
Removed commented out antenna selection code
The outdated and unused code related to antenna selection has been purged. This cleanup simplifies `run_experiment` by removing the comments that printed available antenna names and selected an antenna port. The removal avoids confusion and potential maintenance issues associated with deprecated sections of code. Future antenna selection implementations should be designed with a more current context of the project.
This commit is contained in:
parent
2c7731e1d2
commit
74c6bd6904
1 changed files with 0 additions and 14 deletions
|
@ -834,20 +834,6 @@ int run_experiment(LimeConfig_t LimeCfg,
|
||||||
if (LMS_Open(&device, list[0].c_str(), NULL))
|
if (LMS_Open(&device, list[0].c_str(), NULL))
|
||||||
error();
|
error();
|
||||||
|
|
||||||
/*
|
|
||||||
//print available antennae names
|
|
||||||
//select antenna port
|
|
||||||
lms_name_t antenna_list[10]; //large enough list for antenna names.
|
|
||||||
//Alternatively, NULL can be passed to LMS_GetAntennaList() to obtain
|
|
||||||
number of antennae if ((n = LMS_GetAntennaList(device, LMS_CH_RX, 0,
|
|
||||||
antenna_list)) < 0) error();
|
|
||||||
|
|
||||||
// get and print antenna index and name
|
|
||||||
if ((n = LMS_GetAntenna(device, LMS_CH_RX, 0)) < 0) error();
|
|
||||||
cout << "Automatically selected RX LNA: " << n << ": " <<
|
|
||||||
antenna_list[n] << endl;
|
|
||||||
*/
|
|
||||||
|
|
||||||
// Get number of channels
|
// Get number of channels
|
||||||
int num_rx_channels, num_tx_channels;
|
int num_rx_channels, num_tx_channels;
|
||||||
if ((num_rx_channels = LMS_GetNumChannels(device, LMS_CH_RX)) < 0)
|
if ((num_rx_channels = LMS_GetNumChannels(device, LMS_CH_RX)) < 0)
|
||||||
|
|
Loading…
Reference in a new issue