Skip to content

Commit

Permalink
Plane: bugfix: never reset auto_state.sink_rate
Browse files Browse the repository at this point in the history
  • Loading branch information
magicrub committed May 24, 2020
1 parent 63b5711 commit 0a5021f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ArduPlane/commands_logic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ bool Plane::start_command(const AP_Mission::Mission_Command& cmd)

// special handling for nav vs non-nav commands
if (AP_Mission::is_nav_cmd(cmd)) {
// set land_complete to false to stop us zeroing the throttle
auto_state.sink_rate = 0;

// set takeoff_complete to true so we don't add extra elevator
// except in a takeoff
auto_state.takeoff_complete = true;
Expand Down

0 comments on commit 0a5021f

Please sign in to comment.