diff options
-rw-r--r-- | pointcloud.cpp | 4 | ||||
-rw-r--r-- | pointcloud.hpp | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/pointcloud.cpp b/pointcloud.cpp index 7c92d16..d762366 100644 --- a/pointcloud.cpp +++ b/pointcloud.cpp @@ -88,8 +88,8 @@ void PointCloud::push_samples(std::pair<std::vector<complexf>, std::vector<compl Point p; // Magnitude is position - p.x = std::abs(rx[i]) * m_rxgain; - p.y = std::abs(tx[i]) * m_txgain; + p.x = std::abs(tx[i]) * m_txgain; + p.y = std::abs(rx[i]) * m_rxgain; p.z = 0.0; double arg_rx = std::arg(rx[i]); diff --git a/pointcloud.hpp b/pointcloud.hpp index b7df253..19febe5 100644 --- a/pointcloud.hpp +++ b/pointcloud.hpp @@ -54,6 +54,9 @@ class PointCloud // one that constructed this instance. void draw(void); + void set_tx_gain(double gain) { m_txgain = gain; } + void set_rx_gain(double gain) { m_rxgain = gain; } + private: std::vector<Point> generate_border(void); |