diff options
| author | Josh Blum <josh@joshknows.com> | 2011-03-15 12:30:20 -0700 | 
|---|---|---|
| committer | Josh Blum <josh@joshknows.com> | 2011-03-15 12:30:20 -0700 | 
| commit | 232a398f9df97c00a7a62657118ec49f5d174583 (patch) | |
| tree | 07bb363426361c4c0d9d1efccac5a4176ea97dac /host | |
| parent | b3d6f86d38f8e7d9d06f8c057614fd034b78ef86 (diff) | |
| download | uhd-232a398f9df97c00a7a62657118ec49f5d174583.tar.gz uhd-232a398f9df97c00a7a62657118ec49f5d174583.tar.bz2 uhd-232a398f9df97c00a7a62657118ec49f5d174583.zip | |
uhd: added missing set_tx_antenna() in tx waveforms
Diffstat (limited to 'host')
| -rw-r--r-- | host/examples/tx_waveforms.cpp | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/host/examples/tx_waveforms.cpp b/host/examples/tx_waveforms.cpp index 9c45e918b..5b3a1b70c 100644 --- a/host/examples/tx_waveforms.cpp +++ b/host/examples/tx_waveforms.cpp @@ -137,6 +137,9 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){          std::cout << boost::format("Actual TX Bandwidth: %f MHz...") % usrp->get_tx_bandwidth() << std::endl << std::endl;      } +    //set the antenna +    if (vm.count("ant")) usrp->set_tx_antenna(ant); +      //for the const wave, set the wave freq for small samples per period      if (wave_freq == 0 and wave_type == "CONST"){          wave_freq = usrp->get_tx_rate()/2; | 
