STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
fsw::calibration::anonymous_namespace{RobustCalibrationManager.cpp} Namespace Reference

Functions

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

Function Documentation

◆ is_numeric_key()

bool fsw::calibration::anonymous_namespace{RobustCalibrationManager.cpp}::is_numeric_key ( const std::string & s)

Definition at line 76 of file RobustCalibrationManager.cpp.

References is_numeric_key().

Referenced by is_numeric_key().

◆ json_mat()

std::optional< Eigen::MatrixXd > fsw::calibration::anonymous_namespace{RobustCalibrationManager.cpp}::json_mat ( const nlohmann::json & j,
int n )

Definition at line 43 of file RobustCalibrationManager.cpp.

References is_array, json_mat(), and r.

Referenced by json_mat().

◆ json_vec()

std::optional< Eigen::VectorXd > fsw::calibration::anonymous_namespace{RobustCalibrationManager.cpp}::json_vec ( const nlohmann::json & j,
int n )

Definition at line 30 of file RobustCalibrationManager.cpp.

References is_number, and json_vec().

Referenced by json_vec().

◆ monotonic_sec_now()

double fsw::calibration::anonymous_namespace{RobustCalibrationManager.cpp}::monotonic_sec_now ( )

Definition at line 23 of file RobustCalibrationManager.cpp.

References monotonic_sec_now().

Referenced by monotonic_sec_now().

◆ reconcile_frameworks_with_factory_baseline()

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.

Ox used PT1 fallback). If restored θ disagrees with the current factory cubic, re-seed so ADC→PSI tracks merged JSON/CSV.

Definition at line 98 of file RobustCalibrationManager.cpp.

References reconcile_frameworks_with_factory_baseline(), and robust_prior_max_psi_mismatch().

Referenced by reconcile_frameworks_with_factory_baseline().

◆ robust_prior_max_psi_mismatch()

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.

Definition at line 83 of file RobustCalibrationManager.cpp.

References end(), and robust_prior_max_psi_mismatch().

Referenced by reconcile_frameworks_with_factory_baseline(), and robust_prior_max_psi_mismatch().