mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 02:21:36 +08:00
ekf2: refactor gps vel/pos fusion control logic
This commit is contained in:
committed by
Mathieu Bresciani
parent
9afc390552
commit
689ab12845
@@ -661,6 +661,9 @@ private:
|
||||
bool fuseVerticalPosition(const Vector3f &innov, const Vector2f &innov_gate, const Vector3f &obs_var,
|
||||
Vector3f &innov_var, Vector2f &test_ratio);
|
||||
|
||||
void fuseGpsVelPos();
|
||||
bool isVelStateAlignedWithObs() const;
|
||||
|
||||
// calculate optical flow body angular rate compensation
|
||||
// returns false if bias corrected body rate data is unavailable
|
||||
bool calcOptFlowBodyRateComp();
|
||||
@@ -804,6 +807,9 @@ private:
|
||||
void controlGpsFusion();
|
||||
void controlGpsYawFusion(bool gps_checks_passing, bool gps_checks_failing);
|
||||
|
||||
bool hasHorizontalAidingTimedOut() const;
|
||||
bool isRecentTakeoff() const;
|
||||
|
||||
// control fusion of magnetometer observations
|
||||
void controlMagFusion();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user