mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-07 01:04:19 +08:00
Fix temperature clipping for temperature calibration. Fixes #6412
This commit is contained in:
@@ -262,8 +262,6 @@ bool TemperatureCompensation::calc_thermal_offsets_1D(SensorCalData1D &coef, flo
|
||||
|
||||
}
|
||||
|
||||
delta_temp = measured_temp - coef.ref_temp;
|
||||
|
||||
// calulate the offset
|
||||
offset = coef.x0 + coef.x1 * delta_temp;
|
||||
delta_temp *= delta_temp;
|
||||
|
||||
Reference in New Issue
Block a user