mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 16:33:35 +08:00
ekf2: replace defines with enum class
This commit is contained in:
committed by
Mathieu Bresciani
parent
5332010b13
commit
2dbce4d958
@@ -883,6 +883,21 @@ private:
|
||||
* Checks are adjusted using the EKF2_REQ_* parameters
|
||||
*/
|
||||
bool runGnssChecks(const gnssSample &gps);
|
||||
|
||||
enum class GnssChecksMask : int32_t {
|
||||
kNsats = (1 << 0),
|
||||
kPdop = (1 << 1),
|
||||
kHacc = (1 << 2),
|
||||
kVacc = (1 << 3),
|
||||
kSacc = (1 << 4),
|
||||
kHdrift = (1 << 5),
|
||||
kVdrift = (1 << 6),
|
||||
kHspd = (1 << 7),
|
||||
kVspd = (1 << 8),
|
||||
kSpoofed = (1 << 9)
|
||||
};
|
||||
|
||||
bool isGnssCheckEnabled(GnssChecksMask check);
|
||||
void runOnGroundGnssChecks(const gnssSample &gnss);
|
||||
|
||||
void controlGnssHeightFusion(const gnssSample &gps_sample);
|
||||
|
||||
Reference in New Issue
Block a user