aboutsummaryrefslogtreecommitdiffstats
path: root/fpga
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2020-05-15 15:25:21 -0700
committerAaron Rossetto <aaron.rossetto@ni.com>2020-05-19 13:25:20 -0500
commita847aea736d5f20387b7a658abfb0bf360750351 (patch)
tree48ae75359fb462ebc801833a04bbb26cb3deb4e4 /fpga
parent2d7676e8cf2cc4fb59e59185864c8804ca77e15b (diff)
downloaduhd-a847aea736d5f20387b7a658abfb0bf360750351.tar.gz
uhd-a847aea736d5f20387b7a658abfb0bf360750351.tar.bz2
uhd-a847aea736d5f20387b7a658abfb0bf360750351.zip
lib: pwr_cal: Fix power indexing
The pwr_cal::get_gain() method previously held the incorrect assumption that power values per frequency would be equidistant, i.e., be at the same indices as the gain values. Due to the frequency-dependent nature of the hardware, this is not a valid assumption (if that were the case, frequency-dependent calibration would be unnecessary). This changes get_gain() to not rely on that assumption. Note that it requires doing some more rounding: The bilinear interpolation method uses requires coordinates to be on a rectangular grid. This snaps the power values onto a single coordinate.
Diffstat (limited to 'fpga')
0 files changed, 0 insertions, 0 deletions