mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
mc_pos_control: takeoff threshold to 0.65
This commit is contained in:
parent
7229ec2a37
commit
44a71d90f5
@ -2964,10 +2964,8 @@ bool MulticopterPositionControl::manual_wants_takeoff()
|
||||
{
|
||||
const bool has_manual_control_present = _control_mode.flag_control_manual_enabled && _manual.timestamp > 0;
|
||||
|
||||
// If the throttle stick is well above 50%, so above 62.5% (50% + 0.15 * 50%) we trigger manual takeoff.
|
||||
const bool manual_wants_takeoff = (has_manual_control_present && _manual.z > 0.15f);
|
||||
|
||||
return manual_wants_takeoff;
|
||||
// Manual takeoff is triggered if the throttle stick is above 65%.
|
||||
return (has_manual_control_present && _manual.z > 0.65f);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user