mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-07 09:13:32 +08:00
temperature_compensation: use const for reference
This commit is contained in:
@@ -285,7 +285,7 @@ bool TemperatureCompensation::calc_thermal_offsets_1D(SensorCalData1D &coef, flo
|
||||
|
||||
}
|
||||
|
||||
bool TemperatureCompensation::calc_thermal_offsets_3D(SensorCalData3D &coef, float measured_temp, float offset[])
|
||||
bool TemperatureCompensation::calc_thermal_offsets_3D(const SensorCalData3D &coef, float measured_temp, float offset[])
|
||||
{
|
||||
bool ret = true;
|
||||
|
||||
|
||||
@@ -243,7 +243,7 @@ private:
|
||||
Boolean true if the measured temperature is inside the valid range for the compensation
|
||||
|
||||
*/
|
||||
bool calc_thermal_offsets_3D(SensorCalData3D &coef, float measured_temp, float offset[]);
|
||||
bool calc_thermal_offsets_3D(const SensorCalData3D &coef, float measured_temp, float offset[]);
|
||||
|
||||
|
||||
Parameters _parameters;
|
||||
|
||||
Reference in New Issue
Block a user