diff options
author | natetemple <nate.temple@ettus.com> | 2017-05-15 14:40:51 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-05-20 22:02:04 -0700 |
commit | 4152b42fbc9f30c981131106c49cd6a25701be97 (patch) | |
tree | 1b83d5d8b84769fe25dbfcde5a581fb0747e09f6 /host | |
parent | 6f87cca4e8d98b5544a89d25d9eddce5ba85d393 (diff) | |
download | uhd-4152b42fbc9f30c981131106c49cd6a25701be97.tar.gz uhd-4152b42fbc9f30c981131106c49cd6a25701be97.tar.bz2 uhd-4152b42fbc9f30c981131106c49cd6a25701be97.zip |
Examples: Fix ascii typos
Diffstat (limited to 'host')
-rw-r--r-- | host/examples/ascii_art_dft.hpp | 10 | ||||
-rw-r--r-- | host/examples/rx_ascii_art_dft.cpp | 6 | ||||
-rw-r--r-- | host/examples/twinrx_freq_hopping.cpp | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/host/examples/ascii_art_dft.hpp b/host/examples/ascii_art_dft.hpp index ee2267c2d..0754279be 100644 --- a/host/examples/ascii_art_dft.hpp +++ b/host/examples/ascii_art_dft.hpp @@ -11,7 +11,7 @@ #include <complex> #include <stdexcept> -namespace acsii_art_dft{ +namespace ascii_art_dft{ //! Type produced by the log power DFT function typedef std::vector<float> log_pwr_dft_type; @@ -148,7 +148,7 @@ namespace {/*anon*/ /*********************************************************************** * Implementation code **********************************************************************/ -namespace acsii_art_dft{ +namespace ascii_art_dft{ //! skip constants for amplitude and frequency labels static const size_t albl_skip = 5, flbl_skip = 20; @@ -298,10 +298,10 @@ int main(void){ samples[i] += 0.5*std::sin(i*3.14/2) + 0.7; } - acsii_art_dft::log_pwr_dft_type dft; - dft = acsii_art_dft::log_pwr_dft(&samples.front(), samples.size()); + ascii_art_dft::log_pwr_dft_type dft; + dft = ascii_art_dft::log_pwr_dft(&samples.front(), samples.size()); - printw("%s", acsii_art_dft::dft_to_plot( + printw("%s", ascii_art_dft::dft_to_plot( dft, COLS, LINES, 12.5e4, 2.45e9, 60, 0 diff --git a/host/examples/rx_ascii_art_dft.cpp b/host/examples/rx_ascii_art_dft.cpp index c73e57459..55b4eeebe 100644 --- a/host/examples/rx_ascii_art_dft.cpp +++ b/host/examples/rx_ascii_art_dft.cpp @@ -169,10 +169,10 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ next_refresh = boost::get_system_time() + boost::posix_time::microseconds(long(1e6/frame_rate)); //calculate the dft and create the ascii art frame - acsii_art_dft::log_pwr_dft_type lpdft( - acsii_art_dft::log_pwr_dft(&buff.front(), num_rx_samps) + ascii_art_dft::log_pwr_dft_type lpdft( + ascii_art_dft::log_pwr_dft(&buff.front(), num_rx_samps) ); - std::string frame = acsii_art_dft::dft_to_plot( + std::string frame = ascii_art_dft::dft_to_plot( lpdft, COLS, LINES, usrp->get_rx_rate(), usrp->get_rx_freq(), diff --git a/host/examples/twinrx_freq_hopping.cpp b/host/examples/twinrx_freq_hopping.cpp index 6d7018912..878129d92 100644 --- a/host/examples/twinrx_freq_hopping.cpp +++ b/host/examples/twinrx_freq_hopping.cpp @@ -101,7 +101,7 @@ static void write_fft_to_file(const std::string &fft_path) { std::cout << "Calculating FFTs (this may take a while)... " << std::flush; std::ofstream ofile(fft_path.c_str(), std::ios::binary); BOOST_FOREACH(const recv_buff_t &buff, buffs) { - std::vector<float> fft = acsii_art_dft::log_pwr_dft(&buff.front(), buff.size()); + std::vector<float> fft = ascii_art_dft::log_pwr_dft(&buff.front(), buff.size()); ofile.write((char*)&fft[0], (sizeof(float)*fft.size())); } ofile.close(); |