From cb803a9affb2e6172eed6ffeac9d1d3d02fd8c6b Mon Sep 17 00:00:00 2001 From: ES-Alexander Date: Tue, 13 Jul 2021 17:01:39 +1000 Subject: [PATCH] Enable offset based on P-mode --- libraries/AP_Baro/AP_Baro_KellerLD.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libraries/AP_Baro/AP_Baro_KellerLD.h b/libraries/AP_Baro/AP_Baro_KellerLD.h index c14a75856d..64ba86fa70 100644 --- a/libraries/AP_Baro/AP_Baro_KellerLD.h +++ b/libraries/AP_Baro/AP_Baro_KellerLD.h @@ -64,9 +64,11 @@ private: } _accum; uint8_t _instance; - - // measurement range parameters used in pressure calculation - // varies based on model, stored in ROM on device + + // Model-specific offset/calibration values stored in device ROM + // pressure offset used in pressure calculation + float _p_mode_offset; + // measurement range parameters used in pressure calculation float _p_min; float _p_max; };