|
|
|
@ -377,7 +377,8 @@ void Plane::stabilize()
@@ -377,7 +377,8 @@ void Plane::stabilize()
|
|
|
|
|
} |
|
|
|
|
float speed_scaler = get_speed_scaler(); |
|
|
|
|
|
|
|
|
|
if (quadplane.in_tailsitter_vtol_transition()) { |
|
|
|
|
uint32_t now = AP_HAL::millis(); |
|
|
|
|
if (quadplane.in_tailsitter_vtol_transition(now)) { |
|
|
|
|
/*
|
|
|
|
|
during transition to vtol in a tailsitter try to raise the |
|
|
|
|
nose rapidly while keeping the wings level |
|
|
|
@ -386,7 +387,6 @@ void Plane::stabilize()
@@ -386,7 +387,6 @@ void Plane::stabilize()
|
|
|
|
|
nav_roll_cd = 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
uint32_t now = AP_HAL::millis(); |
|
|
|
|
if (now - last_stabilize_ms > 2000) { |
|
|
|
|
// if we haven't run the rate controllers for 2 seconds then
|
|
|
|
|
// reset the integrators
|
|
|
|
@ -411,7 +411,7 @@ void Plane::stabilize()
@@ -411,7 +411,7 @@ void Plane::stabilize()
|
|
|
|
|
control_mode == &mode_qrtl || |
|
|
|
|
control_mode == &mode_qacro || |
|
|
|
|
control_mode == &mode_qautotune) && |
|
|
|
|
!quadplane.in_tailsitter_vtol_transition()) { |
|
|
|
|
!quadplane.in_tailsitter_vtol_transition(now)) { |
|
|
|
|
quadplane.control_run(); |
|
|
|
|
} else { |
|
|
|
|
if (g.stick_mixing == STICK_MIXING_FBW && control_mode != &mode_stabilize) { |
|
|
|
|