Home
last modified time | relevance | path

Searched refs:mag_cal_ (Results 1 – 4 of 4) sorted by relevance

/device/google/contexthub/firmware/os/algos/calibration/online_calibration/magnetometer/mag_diverse_cal/
Dmag_diverse_cal.cc31 initMagCal(&mag_cal_, &mag_cal_parameters, &diversity_parameters); in Initialize()
41 &mag_cal_, NanoToMicroseconds(sample.timestamp_nanos), in SetMeasurement()
57 magCalGetBias(&mag_cal_, &cal_data_.offset[0], &cal_data_.offset[1], in SetMeasurement()
83 magCalReset(&mag_cal_); // Resets the magnetometer's offset vector. in SetInitialCalibration()
84 magCalAddBias(&mag_cal_, input_cal_data.offset[0], input_cal_data.offset[1], in SetInitialCalibration()
Dmag_diverse_cal.h75 const MagCal& get_mag_cal() const { return mag_cal_; } in get_mag_cal()
79 MagCal mag_cal_;
/device/google/contexthub/firmware/os/algos/calibration/nano_calibration/
Dnano_calibration.cc108 mag_cal_ = mag_cal; in Initialize()
111 LoadAshCalibration(CHRE_SENSOR_TYPE_GEOMAGNETIC_FIELD, mag_cal_, in Initialize()
115 mag_cal_ = nullptr; in Initialize()
239 if (mag_cal_ != nullptr) { in ProcessSample()
240 const CalibrationTypeFlags new_cal_flags = mag_cal_->SetMeasurement(sample); in ProcessSample()
244 mag_cal_->GetSensorCalibration(), in ProcessSample()
246 PrintCalibration(mag_cal_->GetSensorCalibration(), mag_cal_update_flags_, in ProcessSample()
Dnano_calibration.h149 OnlineCalibrationThreeAxis *mag_cal_ = nullptr; variable