aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2020-05-19 11:56:42 -0700
committerAaron Rossetto <aaron.rossetto@ni.com>2020-05-26 12:58:10 -0500
commitdbff8eaf055f8437f3db33c5f18f9fda3285d087 (patch)
treec554a17f88efddc8a271d0083a599b49902016c0 /host/include
parent4cd86bbf2ad9db0a3fd64252f9ba2d569d48144e (diff)
downloaduhd-dbff8eaf055f8437f3db33c5f18f9fda3285d087.tar.gz
uhd-dbff8eaf055f8437f3db33c5f18f9fda3285d087.tar.bz2
uhd-dbff8eaf055f8437f3db33c5f18f9fda3285d087.zip
cal: Minor fixes in power container, add unit test
- min_power and max_power arguments were swapped. They were always called correctly, so this is more of a documentation fix. - Add a unit test for the case where power values are not regular, which is the normal case with real data.
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/cal/pwr_cal.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/include/uhd/cal/pwr_cal.hpp b/host/include/uhd/cal/pwr_cal.hpp
index b30c6dfc2..58606abb8 100644
--- a/host/include/uhd/cal/pwr_cal.hpp
+++ b/host/include/uhd/cal/pwr_cal.hpp
@@ -53,8 +53,8 @@ public:
*
* \param gain_power_map A mapping gain -> power (dB -> dBm) for all
* measured gain points for this frequency.
- * \param max_power The maximum available power for this frequency.
* \param min_power The minimum available power for this frequency.
+ * \param max_power The maximum available power for this frequency.
* \param freq The frequency at which this power level was measured
* \param temperature The temperature at which this power level was measured,
* in Celsius. This parameter is optional, the return
@@ -62,8 +62,8 @@ public:
* is provided here.
*/
virtual void add_power_table(const std::map<double, double>& gain_power_map,
- const double max_power,
const double min_power,
+ const double max_power,
const double freq,
const boost::optional<int> temperature = boost::none) = 0;