mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Plane: fixed accel based launch with timer enabled
when both timer and accel set should meet both conditions
This commit is contained in:
parent
8b7c60dcd7
commit
29f4fe2398
@ -34,9 +34,8 @@ bool Plane::auto_takeoff_check(void)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check for launch acceleration or timer started. NOTE: relies on TECS 50Hz processing
|
// Check for launch acceleration if set. NOTE: relies on TECS 50Hz processing
|
||||||
if (!takeoff_state.launchTimerStarted &&
|
if (!is_zero(g.takeoff_throttle_min_accel) &&
|
||||||
!is_zero(g.takeoff_throttle_min_accel) &&
|
|
||||||
SpdHgt_Controller->get_VXdot() < g.takeoff_throttle_min_accel) {
|
SpdHgt_Controller->get_VXdot() < g.takeoff_throttle_min_accel) {
|
||||||
goto no_launch;
|
goto no_launch;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user