mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 12:43:33 +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
@@ -58,7 +58,7 @@ Tailsitter::~Tailsitter()
|
||||
void Tailsitter::update_vtol_state()
|
||||
{
|
||||
// simply switch between the two modes
|
||||
if (!is_fixed_wing_requested()) {
|
||||
if (!_attc->is_fixed_wing_requested()) {
|
||||
_vtol_mode = ROTARY_WING;
|
||||
} else {
|
||||
_vtol_mode = FIXED_WING;
|
||||
|
||||
Reference in New Issue
Block a user