Skip to content

Commit

Permalink
Plane: Enable quadplane dead reckoning navigation to start earlier
Browse files Browse the repository at this point in the history
This reduces EKF errors during transition fromVTOL to FW flight when operating without a GPS fix.
  • Loading branch information
priseborough authored and peterbarker committed Aug 21, 2024
1 parent cdfd89b commit 18bbfae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ArduPlane/ArduPlane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,11 @@ void Plane::update_fly_forward(void)
return;
}

if (quadplane.in_transition()) {
ahrs.set_fly_forward(true);
return;
}

if (quadplane.in_vtol_mode() ||
quadplane.in_assisted_flight()) {
ahrs.set_fly_forward(false);
Expand Down

0 comments on commit 18bbfae

Please sign in to comment.