AP_Baro_KellerLD : add SensorMode enum and _p_mode property

This adds SensorMode enum and _p_mode property which is used to set _p_mode_offset

Co-Authored-By: Josh Henderson <69225461+hendjoshsr71@users.noreply.github.com>
Co-Authored-By: ES-Alexander <25898329+ES-Alexander@users.noreply.github.com>
This commit is contained in:
Shiv Tyagi 2021-10-19 22:11:02 +05:30 committed by Andrew Tridgell
parent dd00fd720d
commit ef5b43ca95

View File

@ -64,7 +64,16 @@ private:
} _accum; } _accum;
uint8_t _instance; uint8_t _instance;
enum class SensorMode {
PR_MODE = 0, // Vented gauge
PA_MODE = 1, // Sealed gauge
PAA_MODE = 2, // Absolute
UNDEFINED = 3,
};
// to store sensor mode
SensorMode _p_mode;
// Model-specific offset/calibration values stored in device ROM // Model-specific offset/calibration values stored in device ROM
// pressure offset used in pressure calculation // pressure offset used in pressure calculation
float _p_mode_offset; float _p_mode_offset;