STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
RobustCalibrationManager.cpp File Reference
#include "calibration/RobustCalibrationManager.hpp"
#include <Eigen/Dense>
#include <algorithm>
#include <cctype>
#include <chrono>
#include <cmath>
#include <cstdlib>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <nlohmann/json.hpp>
#include <optional>
#include <sstream>
#include <vector>
Include dependency graph for RobustCalibrationManager.cpp:

Go to the source code of this file.

Namespaces

namespace  fsw
 Motorized ball valve position: raw ADC counts -> % open.
namespace  fsw::calibration
 Output smoothing for calibrated PT pressure, per sensor uid (ESP32 and LabJack T7 alike).
namespace  fsw::calibration::anonymous_namespace{RobustCalibrationManager.cpp}

Functions

double fsw::calibration::anonymous_namespace{RobustCalibrationManager.cpp}::monotonic_sec_now ()
std::optional< Eigen::VectorXd > fsw::calibration::anonymous_namespace{RobustCalibrationManager.cpp}::json_vec (const nlohmann::json &j, int n)
std::optional< Eigen::MatrixXd > fsw::calibration::anonymous_namespace{RobustCalibrationManager.cpp}::json_mat (const nlohmann::json &j, int n)
bool fsw::calibration::anonymous_namespace{RobustCalibrationManager.cpp}::is_numeric_key (const std::string &s)
double fsw::calibration::anonymous_namespace{RobustCalibrationManager.cpp}::robust_prior_max_psi_mismatch ()
 Saved θ that drifts far from the factory cubic is usually bad priors — drop them.
void fsw::calibration::anonymous_namespace{RobustCalibrationManager.cpp}::reconcile_frameworks_with_factory_baseline (std::map< uint16_t, SensorState > &states)
 After loading adjustments.json, θ may still match an old factory seed (e.g.