Skip to content

Commit

Permalink
[ins] fix ekf2 status flag when using external vision positionning (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
gautierhattenberger committed Nov 25, 2023
1 parent 68ddea1 commit 8d01b02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sw/airborne/modules/ins/ins_ekf2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ static void send_filter_status(struct transport_tx *trans, struct link_device *d
uint8_t mde = 0;

// Check the alignment and if GPS is fused
if (control_mode.flags.tilt_align && control_mode.flags.yaw_align && control_mode.flags.gps) {
if (control_mode.flags.tilt_align && control_mode.flags.yaw_align && (control_mode.flags.gps || control_mode.flags.ev_pos)) {
mde = 3;
} else if (control_mode.flags.tilt_align && control_mode.flags.yaw_align) {
mde = 4;
Expand Down

0 comments on commit 8d01b02

Please sign in to comment.