mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-29 05:30:36 +08:00
MulticopterLanddetector: adjust minimum throttle if climb-reate is not enabled
This commit is contained in:
committed by
Lorenz Meier
parent
e408870857
commit
f30bf215db
@@ -324,7 +324,7 @@ bool MulticopterLandDetector::_has_minimal_thrust()
|
||||
float sys_min_throttle = _params.minThrottle + (_params.hoverThrottle - _params.minThrottle) * _params.throttleRange;
|
||||
|
||||
// Determine the system min throttle based on flight mode
|
||||
if (!_control_mode.flag_control_altitude_enabled) {
|
||||
if (!_control_mode.flag_control_climb_rate_enabled) {
|
||||
sys_min_throttle = (_params.minManThrottle + 0.01f);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user