aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/cal/pwr_cal.cpp
Commit message (Collapse)AuthorAgeFilesLines
* lib: pwr_cal: Fix power indexingMartin Braun2020-05-191-16/+28
| | | | | | | | | | | | | 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.
* cal: Add pwr_cal containerMartin Braun2020-04-171-0/+347
This is a cal container for all types of power cal (RX or TX) that rely on a single, overall gain value. Includes Python API.