mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 20:33:34 +08:00
evaluate transition command in vtol controller instead of vtol type, use distinct state variables instead of additional command struct
This commit is contained in:
committed by
Simon Wilks
parent
8fc52fea22
commit
80a3c74cfc
@@ -158,7 +158,7 @@ void Tiltrotor::update_vtol_state()
|
||||
* forward completely. For the backtransition the motors simply rotate back.
|
||||
*/
|
||||
|
||||
if (!is_fixed_wing_requested()) {
|
||||
if (!_attc->is_fixed_wing_requested()) {
|
||||
|
||||
// plane is in multicopter mode
|
||||
switch(_vtol_schedule.flight_mode) {
|
||||
|
||||
Reference in New Issue
Block a user