mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-26 17:16:36 +08:00
temperature_calibration: use a define for error code -110
This commit is contained in:
@@ -108,7 +108,7 @@ int TemperatureCalibrationGyro::update_sensor_instance(PerSensorData &data, int
|
||||
if (hrt_absolute_time() > 10E6) {
|
||||
// If intial temperature exceeds maximum declare an error condition and exit
|
||||
if (data.sensor_sample_filt[3] > _max_start_temperature) {
|
||||
return -110;
|
||||
return -TC_ERROR_INITIAL_TEMP_TOO_HIGH;
|
||||
|
||||
} else {
|
||||
data.cold_soaked = true;
|
||||
|
||||
Reference in New Issue
Block a user