diff options
author | Martin Braun <martin.braun@ettus.com> | 2020-05-15 15:25:21 -0700 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-05-19 13:25:20 -0500 |
commit | a847aea736d5f20387b7a658abfb0bf360750351 (patch) | |
tree | 48ae75359fb462ebc801833a04bbb26cb3deb4e4 /CODING.md | |
parent | 2d7676e8cf2cc4fb59e59185864c8804ca77e15b (diff) | |
download | uhd-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 'CODING.md')
0 files changed, 0 insertions, 0 deletions