mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-06 13:18:52 +08:00
land detector (mc): takeoff throttle should be the same for all manual,
altitude controlled modes Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
@@ -260,7 +260,7 @@ bool MulticopterLandDetector::_get_landed_state()
|
||||
float MulticopterLandDetector::_get_takeoff_throttle()
|
||||
{
|
||||
/* Position mode */
|
||||
if (_control_mode.flag_control_manual_enabled && _control_mode.flag_control_position_enabled) {
|
||||
if (_control_mode.flag_control_manual_enabled && _control_mode.flag_control_altitude_enabled) {
|
||||
/* Should be above 0.5 because below that we do not gain altitude and won't take off.
|
||||
* Also it should be quite high such that we don't accidentally take off when using
|
||||
* a spring loaded throttle and have a useful vertical speed to start with. */
|
||||
|
||||
Reference in New Issue
Block a user