This repository has been archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 510
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #159 from priseborough/pr-ekf2MagBugFix
EKF: Fix critical bugs in mag fusion and yaw reset
- Loading branch information
Showing
5 changed files
with
157 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,7 @@ | |
* @author Paul Riseborough <[email protected]> | ||
* | ||
*/ | ||
#include "../ecl.h" | ||
#include "ekf.h" | ||
#include "mathlib.h" | ||
|
||
|
@@ -92,9 +93,10 @@ void Ekf::fuseAirspeed() | |
SK_TAS[0] = 1.0f / _airspeed_innov_var_temp; | ||
_fault_status.flags.bad_airspeed = false; | ||
|
||
} else { // Reset the estimator | ||
} else { // Reset the estimator covarinace matrix | ||
_fault_status.flags.bad_airspeed = true; | ||
initialiseCovariance(); | ||
ECL_ERR("EKF airspeed fusion numerical error - covariance reset"); | ||
return; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.