evaluate transition command in vtol controller instead of vtol type, use distinct state variables instead of additional command struct

This commit is contained in:
Andreas Antener
2015-08-18 11:44:01 +02:00
committed by Simon Wilks
parent 8fc52fea22
commit 80a3c74cfc
7 changed files with 33 additions and 30 deletions
+1 -1
View File
@@ -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;