Skip to content

Commit

Permalink
Plane bs
Browse files Browse the repository at this point in the history
  • Loading branch information
WickedShell committed Oct 30, 2024
1 parent f11c79a commit a2a74b4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ArduPlane/navigation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,9 @@ void Plane::calc_airspeed_errors()

} else if (flight_stage == AP_FixedWing::FlightStage::LAND) {
// Landing airspeed target
target_airspeed_cm = landing.get_target_airspeed_cm();
// we pass in the current flight speed to allow for handling a do_change_speed that sets up
// landing patterns
target_airspeed_cm = landing.get_target_airspeed_cm(mode_auto_target_airspeed_cm());
} else if (control_mode == &mode_guided && new_airspeed_cm > 0) { //DO_CHANGE_SPEED overrides onboard guided speed commands, user would have re-enter guided mode to revert
target_airspeed_cm = new_airspeed_cm;
} else if (control_mode == &mode_auto) {
Expand Down Expand Up @@ -451,4 +453,4 @@ bool Plane::reached_loiter_target(void)
}
#endif
return nav_controller->reached_loiter_target();
}
}

0 comments on commit a2a74b4

Please sign in to comment.