AP_Baro: Add missing const in member functions

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
Patrick José Pereira 2021-02-01 13:26:26 -03:00 committed by Andrew Tridgell
parent f6937babfa
commit 6a824b1467

View File

@ -180,7 +180,7 @@ public:
void set_baro_drift_altitude(float alt) { _alt_offset = alt; }
// get baro drift amount
float get_baro_drift_offset(void) { return _alt_offset_active; }
float get_baro_drift_offset(void) const { return _alt_offset_active; }
// simple atmospheric model
static void SimpleAtmosphere(const float alt, float &sigma, float &delta, float &theta);