mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
Merge pull request #11288 from PX4/pr-tiltrotor_noairspeed_transition_check
tiltrotor: fix transition check when airspeed is invalid
This commit is contained in:
committed by
Daniel Agar
parent
664674c36b
commit
34717f7005
@@ -149,7 +149,7 @@ void Tiltrotor::update_vtol_state()
|
|||||||
|
|
||||||
// check if airspeed is invalid and transition by time
|
// check if airspeed is invalid and transition by time
|
||||||
transition_to_p2 |= _params->airspeed_disabled &&
|
transition_to_p2 |= _params->airspeed_disabled &&
|
||||||
_tilt_control > _params_tiltrotor.tilt_transition &&
|
_tilt_control >= _params_tiltrotor.tilt_transition &&
|
||||||
time_since_trans_start > _params->front_trans_time_openloop;
|
time_since_trans_start > _params->front_trans_time_openloop;
|
||||||
|
|
||||||
if (transition_to_p2) {
|
if (transition_to_p2) {
|
||||||
|
|||||||
Reference in New Issue
Block a user