implemented MAVLink command for VTOL transitions, pulled switch up for each type

This commit is contained in:
Andreas Antener
2015-08-18 11:44:01 +02:00
committed by Simon Wilks
parent 44b5d17ad0
commit 1da703a13d
10 changed files with 58 additions and 5 deletions
+2 -2
View File
@@ -58,9 +58,9 @@ Tailsitter::~Tailsitter()
void Tailsitter::update_vtol_state()
{
// simply switch between the two modes
if (_manual_control_sp->aux1 < 0.0f) {
if (!is_fixed_wing_requested()) {
_vtol_mode = ROTARY_WING;
} else if (_manual_control_sp->aux1 > 0.0f) {
} else {
_vtol_mode = FIXED_WING;
}
}