From dbff8eaf055f8437f3db33c5f18f9fda3285d087 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 19 May 2020 11:56:42 -0700 Subject: 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. --- host/include/uhd/cal/pwr_cal.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host/include') 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& gain_power_map, - const double max_power, const double min_power, + const double max_power, const double freq, const boost::optional temperature = boost::none) = 0; -- cgit v1.2.3