Commit graph

7 commits

Author SHA1 Message Date
Samuel O'Brien
919a147afc python: Add bindings for C++ CHDR Parser
This commit adds pybind11 glue code for the userland chdr parsing code
introduced in the uhd::utils::chdr namespace. Additionally, it moves
some pybind11 adapter code to a common pybind_adaptors.hpp file which
originally existed in the cal_python.hpp file.

This commit also adds unit tests for the python bindings using a
captured wireshark trace which is located in rfnoc_packets_*.py and some
handwritten packets in hardcoded_packets.py

Signed-off-by: Samuel O'Brien <sam.obrien@ni.com>
2020-07-16 09:59:25 -05:00
Lars Amsel
953b64ad06 uhd: cal: Fix function binding in Python cal data container class 2020-06-11 10:12:42 -05:00
Martin Braun
dbff8eaf05 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.
2020-05-26 12:58:10 -05:00
Martin Braun
1a19bc653e cal: Add pwr_cal container
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.
2020-04-17 07:58:19 -05:00
Martin Braun
d9f4d540ef uhd: math: Add interpolation.hpp
- Moves linear_interp from cal to utils
- Moves the interp_mode enum class to interpolation.hpp
- Adds three interpolation methods for maps: at_interpolate_1d(),
  at_nearest(), at_lin_interp()
- Adds unit tests
2020-04-07 07:24:19 -05:00
Martin Braun
3fe5ccf700 uhd: cal: Add iq_cal calibration data container class
This class can be used to store calibration coefficients for the X300
DC offset and IQ imbalance calibration.

Note: This also modifies Doxyfile.in to not document files generated by
flatc.
2020-04-02 11:55:17 -05:00
Martin Braun
f13615ec14 uhd: cal: Add database class
This class contains methods to store and retrieve data from the local
calibration database. Note that in this case, the "database" is just a
bunch of files on the local filesystem.
2020-03-26 07:46:03 -05:00