Agora  1.2.0
Agora project
radio_calibrate_digital.cc File Reference

Implementation file for the digital (baseband) calibration functions such as sample offset and reciprocity calibration. More...

#include <chrono>
#include "comms-lib.h"
#include "datatype_conversion.h"
#include "logger.h"
#include "matplotlibcpp.h"
#include "radio_lib.h"
#include "simd_types.h"
Include dependency graph for radio_calibrate_digital.cc:

Functions

static std::vector< int > GetRadioOffsets (size_t num_channels, size_t num_radios, size_t offset_check_channel, const std::vector< int > &offsets)
 
static void CheckSnr (size_t offset, const std::vector< std::vector< std::complex< int16_t >>> &check_buff, const Config *cfg)
 

Variables

static constexpr size_t kMaxArraySampleOffset = 10
 
static constexpr bool kReciprocalCalibPlot = false
 
static constexpr bool kPrintCalibrationMats = false
 
static constexpr bool kVerboseCalibration = false
 
static constexpr size_t kRefChannel = 0
 
static constexpr float kMaxSampleRxTimeSec = 1.0f
 
static constexpr size_t kDownlinkMaxDiffOffset = 4
 

Detailed Description

Implementation file for the digital (baseband) calibration functions such as sample offset and reciprocity calibration.

Function Documentation

◆ CheckSnr()

static void CheckSnr ( size_t  offset,
const std::vector< std::vector< std::complex< int16_t >>> &  check_buff,
const Config cfg 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetRadioOffsets()

static std::vector<int> GetRadioOffsets ( size_t  num_channels,
size_t  num_radios,
size_t  offset_check_channel,
const std::vector< int > &  offsets 
)
static
Here is the caller graph for this function:

Variable Documentation

◆ kDownlinkMaxDiffOffset

constexpr size_t kDownlinkMaxDiffOffset = 4
staticconstexpr

◆ kMaxArraySampleOffset

constexpr size_t kMaxArraySampleOffset = 10
staticconstexpr

◆ kMaxSampleRxTimeSec

constexpr float kMaxSampleRxTimeSec = 1.0f
staticconstexpr

◆ kPrintCalibrationMats

constexpr bool kPrintCalibrationMats = false
staticconstexpr

◆ kReciprocalCalibPlot

constexpr bool kReciprocalCalibPlot = false
staticconstexpr

◆ kRefChannel

constexpr size_t kRefChannel = 0
staticconstexpr

◆ kVerboseCalibration

constexpr bool kVerboseCalibration = false
staticconstexpr