Skip to content

Commit

Permalink
Plane: reset TECS integrator to cruise throttle on thr min override
Browse files Browse the repository at this point in the history
when raising the throttle in fwd transition with TKOFF_THR_MIN setup
TECS to use cruise throttle when we finish the transition
  • Loading branch information
tridge committed Aug 16, 2024
1 parent 23b50ce commit 6b2edea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ArduPlane/servos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,7 @@ float Plane::apply_throttle_limits(float throttle_in)
const auto tmin_thr = aparm.takeoff_throttle_min;
if (tmin_thr > throttle_in) {
throttle_in = MAX(throttle_in, tmin_thr);
plane.TECS_controller.reset_throttle_I_cruise();
}
}

Expand Down

0 comments on commit 6b2edea

Please sign in to comment.