Skip to content

Commit

Permalink
AP_ExternalAHRS: check for origin in pre-arm check
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge authored and peterbarker committed Feb 27, 2024
1 parent 192d9f6 commit 0aee2a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions libraries/AP_ExternalAHRS/AP_ExternalAHRS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,10 @@ bool AP_ExternalAHRS::pre_arm_check(char *failure_msg, uint8_t failure_msg_len)
return false;
}

if (!state.have_origin) {
hal.util->snprintf(failure_msg, failure_msg_len, "ExternalAHRS: No origin");
return false;
}
return backend->pre_arm_check(failure_msg, failure_msg_len);
}

Expand Down

0 comments on commit 0aee2a4

Please sign in to comment.