mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-07 06:30:34 +08:00
VTOL: instantly do VTOL mode changes if landed and disarmed
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
committed by
Daniel Agar
parent
d6ffdc09b8
commit
1617997dde
@@ -159,7 +159,8 @@ void Standard::update_vtol_state()
|
||||
float x_vel = vel(0);
|
||||
|
||||
if (time_since_trans_start > _params->back_trans_duration ||
|
||||
(_local_pos->v_xy_valid && x_vel <= _params->mpc_xy_cruise)) {
|
||||
(_local_pos->v_xy_valid && x_vel <= _params->mpc_xy_cruise) ||
|
||||
can_transition_on_ground()) {
|
||||
_vtol_schedule.flight_mode = vtol_mode::MC_MODE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user