mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 20:23:33 +08:00
implemented MAVLink command for VTOL transitions, pulled switch up for each type
This commit is contained in:
committed by
Simon Wilks
parent
44b5d17ad0
commit
1da703a13d
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user