Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change "AHRS unhealthy" message to "no EKFn cores" if no cores exist #12651

Merged
merged 2 commits into from
Oct 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libraries/AP_NavEKF2/AP_NavEKF2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1455,7 +1455,7 @@ uint32_t NavEKF2::getLastVelNorthEastReset(Vector2f &vel) const
const char *NavEKF2::prearm_failure_reason(void) const
{
if (!core) {
return nullptr;
return "no EKF2 cores";
}
for (uint8_t i = 0; i < num_cores; i++) {
const char * failure = core[i].prearm_failure_reason();
Expand Down
2 changes: 1 addition & 1 deletion libraries/AP_NavEKF3/AP_NavEKF3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1549,7 +1549,7 @@ uint32_t NavEKF3::getLastVelNorthEastReset(Vector2f &vel) const
const char *NavEKF3::prearm_failure_reason(void) const
{
if (!core) {
return nullptr;
return "no EKF3 cores";
}
for (uint8_t i = 0; i < num_cores; i++) {
const char * failure = core[primary].prearm_failure_reason();
Expand Down