Skip to content

Commit

Permalink
Plane: In transition use TRIM_THROTTLE when TKOFF_THR_MIN==0
Browse files Browse the repository at this point in the history
  • Loading branch information
Georacer committed Aug 26, 2024
1 parent 1145442 commit 7e36beb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ArduPlane/Parameters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ const AP_Param::Info Plane::var_info[] = {
// @Range: 0 100
// @Increment: 1
// @User: Standard
ASCALAR(takeoff_throttle_min, "TKOFF_THR_MIN", 60),
ASCALAR(takeoff_throttle_min, "TKOFF_THR_MIN", 0),

// @Param: TKOFF_OPTIONS
// @DisplayName: Takeoff options
Expand Down
2 changes: 2 additions & 0 deletions ArduPlane/servos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,8 @@ float Plane::apply_throttle_limits(float throttle_in)
) {
if (aparm.takeoff_throttle_min.get() != 0) {
min_throttle = MAX(min_throttle, aparm.takeoff_throttle_min.get());
} else {
min_throttle = MAX(min_throttle, aparm.throttle_cruise.get());
}
}
}
Expand Down

0 comments on commit 7e36beb

Please sign in to comment.