MCPcopy Create free account
hub / github.com/SlimeVR/SlimeVR-Tracker-ESP / loadConfig

Method loadConfig

src/motionprocessing/GyroTemperatureCalibrator.cpp:205–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205bool GyroTemperatureCalibrator::loadConfig(float newSensitivity) {
206 bool ok = configuration.loadTemperatureCalibration(sensorId, config);
207 if (ok) {
208 config.rescaleSamples(newSensitivity);
209 if (config.fullyCalibrated()) {
210 configSaved = true;
211 }
212 } else {
213 m_Logger.warn(
214 "No temperature calibration data found for sensor %d, ignoring...",
215 sensorId
216 );
217 // m_Logger.info("Temperature calibration is advised");
218 m_Logger.info(
219 "Temperature calibration is a work-in-progress feature; any changes to its "
220 "parameters or updates will render the saved temperature curve invalid and "
221 "unloadable."
222 );
223 }
224 return configSaved;
225}
226
227bool GyroTemperatureCalibrator::saveConfig() {
228 if (configuration.saveTemperatureCalibration(sensorId, config)) {

Callers

nothing calls this directly

Calls 5

rescaleSamplesMethod · 0.80
fullyCalibratedMethod · 0.80
warnMethod · 0.80
infoMethod · 0.80

Tested by

no test coverage detected