aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/ascii_art_dft.hpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2017-06-02 16:25:31 -0700
committerMartin Braun <martin.braun@ettus.com>2017-06-02 16:25:31 -0700
commit644c03269c33a99c50d5d5d73ff37f5afd9759bb (patch)
tree079a2516c20407c79936884d604278d4eb3eb74a /host/examples/ascii_art_dft.hpp
parent1da86f9cf5526269f253e17416e7e501c1c3a6a7 (diff)
parent9ec36e9538b4be2c6e6e77aa551bd236ef753a10 (diff)
downloaduhd-644c03269c33a99c50d5d5d73ff37f5afd9759bb.tar.gz
uhd-644c03269c33a99c50d5d5d73ff37f5afd9759bb.tar.bz2
uhd-644c03269c33a99c50d5d5d73ff37f5afd9759bb.zip
Merge branch 'maint'
Diffstat (limited to 'host/examples/ascii_art_dft.hpp')
-rw-r--r--host/examples/ascii_art_dft.hpp10
1 files changed, 5 insertions, 5 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