mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Baro: make get_altitude_difference const
This commit is contained in:
parent
b619c3956c
commit
e9fbea9497
@ -132,7 +132,7 @@ void AP_Baro::update_calibration()
|
||||
|
||||
// return altitude difference in meters between current pressure and a
|
||||
// given base_pressure in Pascal
|
||||
float AP_Baro::get_altitude_difference(float base_pressure, float pressure)
|
||||
float AP_Baro::get_altitude_difference(float base_pressure, float pressure) const
|
||||
{
|
||||
float ret;
|
||||
#if HAL_CPU_CLASS <= HAL_CPU_CLASS_16
|
||||
|
@ -43,7 +43,7 @@ public:
|
||||
|
||||
// get altitude difference in meters relative given a base
|
||||
// pressure in Pascal
|
||||
float get_altitude_difference(float base_pressure, float pressure);
|
||||
float get_altitude_difference(float base_pressure, float pressure) const;
|
||||
|
||||
// get scale factor required to convert equivalent to true airspeed
|
||||
float get_EAS2TAS(void);
|
||||
|
Loading…
Reference in New Issue
Block a user