Skip to content
Snippets Groups Projects
Commit 8c9f27bb authored by Roman's avatar Roman Committed by Lorenz Meier
Browse files

land detector (mc): takeoff throttle should be the same for all manual,

altitude controlled modes

Signed-off-by: default avatarRoman <bapstroman@gmail.com>
parent ccfecd4a
No related branches found
No related tags found
No related merge requests found
......@@ -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. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment