MulticopterLanddetector: adjust minimum throttle if climb-reate is not enabled

This commit is contained in:
Dennis Mannhart
2018-05-24 08:54:45 +02:00
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);
}