Skip to content

Commit c50296f

Browse files
committed
core: fix ArduPilot flight mode handling for VTOL
1 parent 7ff6189 commit c50296f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/mavsdk/core/flight_mode.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ to_flight_mode_from_custom_mode(Autopilot autopilot, MAV_TYPE mav_type, uint32_t
1717
case MAV_TYPE::MAV_TYPE_GROUND_ROVER:
1818
return to_flight_mode_from_ardupilot_rover_mode(custom_mode);
1919
case MAV_TYPE::MAV_TYPE_FIXED_WING:
20+
case MAV_TYPE::MAV_TYPE_VTOL_FIXEDROTOR:
21+
case MAV_TYPE::MAV_TYPE_VTOL_TAILSITTER:
22+
case MAV_TYPE::MAV_TYPE_VTOL_TAILSITTER_DUOROTOR:
23+
case MAV_TYPE::MAV_TYPE_VTOL_TAILSITTER_QUADROTOR:
24+
case MAV_TYPE::MAV_TYPE_VTOL_TILTROTOR:
25+
case MAV_TYPE::MAV_TYPE_VTOL_TILTWING:
2026
return to_flight_mode_from_ardupilot_plane_mode(custom_mode);
2127
default:
2228
return to_flight_mode_from_ardupilot_copter_mode(custom_mode);

0 commit comments

Comments
 (0)