mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
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:
parent
dd00fd720d
commit
ef5b43ca95
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user