mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 01:53:34 +08:00
Merge branch 'release_v1.0.0' of github.com:PX4/Firmware
This commit is contained in:
@@ -1417,7 +1417,11 @@ MulticopterPositionControl::task_main()
|
||||
/* control throttle directly if no climb rate controller is active */
|
||||
if (!_control_mode.flag_control_climb_rate_enabled) {
|
||||
_att_sp.thrust = math::min(_manual.z, _params.thr_max);
|
||||
_att_sp.thrust = math::max(_att_sp.thrust, _params.thr_min);
|
||||
|
||||
/* enforce minimum throttle if not landed */
|
||||
if (!_vehicle_status.condition_landed) {
|
||||
_att_sp.thrust = math::max(_att_sp.thrust, _params.thr_min);
|
||||
}
|
||||
}
|
||||
|
||||
/* construct attitude setpoint rotation matrix */
|
||||
|
||||
Reference in New Issue
Block a user