Motion Master
Loading...
Searching...
No Matches
calibration_history.h File Reference
#include <array>
#include <chrono>
#include <cstddef>
#include <cstdint>
#include <nlohmann/json.hpp>
#include <optional>
#include <string>
#include <vector>
#include "util.h"
Include dependency graph for calibration_history.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  calibration_history::TrackAdjustments
 The adjustment values of one track, one element per iteration. More...
struct  calibration_history::ResidualOffsetError
 The residual offset errors of both tracks after the analysis, in LSB. More...
struct  calibration_history::Quality
 The quality of a run, taken from the validation iteration. More...
struct  calibration_history::Outcome
 How a run ended. More...
struct  calibration_history::AmplitudeControlGain
 The raw values of the registers that hold ACGAIN and AFGAIN. More...
struct  calibration_history::RunRecord
struct  calibration_history::UpdatedFile
 The content of a file after a run was added. More...

Namespaces

namespace  calibration_history

Functions

std::string calibration_history::fileName (uint8_t encoderOrdinal)
std::optional< int > calibration_history::qualityPercentage (const std::vector< int64_t > &curve, int64_t maxPermissiblePhaseError)
std::string calibration_history::verdict (double lowerPhaseMargin, double upperPhaseMargin)
bool calibration_history::isHealthMonitoringActive (uint8_t cfgew)
std::string calibration_history::encoderTypeName (CirculoEncoderType type)
 The name of a Circulo encoder type, for example CIRCULO_7_INNER.
std::string calibration_history::utcTimestamp (std::chrono::system_clock::time_point time)
 The time in UTC, for example 2026-11-04T10:15:00Z.
UpdatedFile calibration_history::prependRun (const std::optional< std::string > &existingContent, const RunRecord &run)

Variables

constexpr int calibration_history::kFileVersion = 1
 The version of the file format.
constexpr size_t calibration_history::kMaxRuns = 10
 The number of runs a file keeps. Older runs are dropped.
constexpr std::array< uint8_t, 33 > calibration_history::kKeyConfigurationRegisterAddresses