Commit 7c5c10c9 authored by Thomas Telkamp's avatar Thomas Telkamp
Browse files

convert tabs to spaces

parent 9371cb8c
......@@ -465,23 +465,23 @@ int UHD_SAFE_MAIN(int argc, char* argv[])
channel_nums.push_back(std::stoi(channel_strings[ch]));
}
std::vector<size_t> gains;
if (vm.count("gain")) {
std::vector<std::string> gain_strings;
boost::split(gain_strings, gain_list, boost::is_any_of("\"',"));
for (size_t ch = 0; ch < gain_strings.size(); ch++) {
gains.push_back(std::stoi(gain_strings[ch]));
}
}
std::vector<std::string> antennas;
if (vm.count("ant")) {
std::vector<std::string> ant_strings;
boost::split(ant_strings, ant_list, boost::is_any_of("\"',"));
for (size_t ch = 0; ch < ant_strings.size(); ch++) {
antennas.push_back(ant_strings[ch]);
}
}
std::vector<size_t> gains;
if (vm.count("gain")) {
std::vector<std::string> gain_strings;
boost::split(gain_strings, gain_list, boost::is_any_of("\"',"));
for (size_t ch = 0; ch < gain_strings.size(); ch++) {
gains.push_back(std::stoi(gain_strings[ch]));
}
}
std::vector<std::string> antennas;
if (vm.count("ant")) {
std::vector<std::string> ant_strings;
boost::split(ant_strings, ant_list, boost::is_any_of("\"',"));
for (size_t ch = 0; ch < ant_strings.size(); ch++) {
antennas.push_back(ant_strings[ch]);
}
}
for (size_t ch = 0; ch < channel_nums.size(); ch++) {
size_t channel = channel_nums[ch];
......@@ -511,13 +511,13 @@ int UHD_SAFE_MAIN(int argc, char* argv[])
// set the rf gain(s)
if (gains.size()) {
size_t gain = (gains.size() > channel) ? gains[ch] : gains[0];
std::cout << boost::format("Setting RX Gain: %f dB...") % gain << std::endl;
usrp->set_rx_gain(gain, channel);
std::cout << boost::format("Actual RX Gain: %f dB...")
% usrp->get_rx_gain(channel)
<< std::endl
<< std::endl;
size_t gain = (gains.size() > channel) ? gains[ch] : gains[0];
std::cout << boost::format("Setting RX Gain: %f dB...") % gain << std::endl;
usrp->set_rx_gain(gain, channel);
std::cout << boost::format("Actual RX Gain: %f dB...")
% usrp->get_rx_gain(channel)
<< std::endl
<< std::endl;
}
// set the IF filter bandwidth
......@@ -534,13 +534,13 @@ int UHD_SAFE_MAIN(int argc, char* argv[])
// set the antenna(s)
if (antennas.size()) {
std::string ant = (antennas.size() > channel) ? antennas[ch] : antennas[0];
std::cout << boost::format("Setting Antenna: %s") % ant << std::endl;
usrp->set_rx_antenna(ant, channel);
std::cout << boost::format("Actual Antenna: %s")
% usrp->get_rx_antenna(channel)
<< std::endl
<< std::endl;
std::string ant = (antennas.size() > channel) ? antennas[ch] : antennas[0];
std::cout << boost::format("Setting Antenna: %s") % ant << std::endl;
usrp->set_rx_antenna(ant, channel);
std::cout << boost::format("Actual Antenna: %s")
% usrp->get_rx_antenna(channel)
<< std::endl
<< std::endl;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment