Skip to content

Commit

Permalink
land_detector: manual land detection stick throshold less strict
Browse files Browse the repository at this point in the history
Even for well calibrated RC sticks 5% stick movement is a too small margin for the end user that might not land because of this.
15% is still clearly restricting the stick far down.
  • Loading branch information
MaEtUgR authored and LorenzMeier committed Feb 22, 2017
1 parent cbc54c9 commit 3183cbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/land_detector/MulticopterLandDetector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ bool MulticopterLandDetector::_get_ground_contact_state()
// Check if user commands throttle and if so, report no ground contact based on
// the user intent to take off (even if the system might physically still have
// ground contact at this point).
const bool manual_control_idle = (_has_manual_control_present() && _manual.z < 0.05f);
const bool manual_control_idle = (_has_manual_control_present() && _manual.z < 0.15f);
const bool manual_control_idle_or_auto = manual_control_idle || !_control_mode.flag_control_manual_enabled;

// Widen acceptance thresholds for landed state right after arming
Expand Down

0 comments on commit 3183cbd

Please sign in to comment.