mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 02:36:37 +08:00
Fix for transition failsafe
This commit is contained in:
@@ -421,7 +421,7 @@ MissionBlock::set_land_item(struct mission_item_s *item, bool at_current_locatio
|
|||||||
{
|
{
|
||||||
|
|
||||||
/* VTOL transition to RW before landing */
|
/* VTOL transition to RW before landing */
|
||||||
if(_navigator->get_vstatus()->is_vtol){
|
if(_navigator->get_vstatus()->is_vtol && !_navigator->get_vstatus()->is_rotary_wing){
|
||||||
struct vehicle_command_s cmd = {};
|
struct vehicle_command_s cmd = {};
|
||||||
cmd.command = NAV_CMD_DO_VTOL_TRANSITION;
|
cmd.command = NAV_CMD_DO_VTOL_TRANSITION;
|
||||||
cmd.param1 = vehicle_status_s::VEHICLE_VTOL_STATE_MC;
|
cmd.param1 = vehicle_status_s::VEHICLE_VTOL_STATE_MC;
|
||||||
|
|||||||
Reference in New Issue
Block a user