From 4dbe6f0a1cc92d907aa734c383b7c2f1d595f89c Mon Sep 17 00:00:00 2001 From: Silvan Fuhrer Date: Wed, 18 May 2022 14:14:09 +0200 Subject: [PATCH] simulator_mavlink: fix MAV_TYPE_VTOL_TAILSITTER case This type (23) doesn't specify a motor number, so it can't be properly handled. There are duo (19) and quad (20) tailsitter types that still work in simulation. Signed-off-by: Silvan Fuhrer --- src/modules/simulator/simulator_mavlink.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/modules/simulator/simulator_mavlink.cpp b/src/modules/simulator/simulator_mavlink.cpp index f78a7db9b7..09b8925092 100644 --- a/src/modules/simulator/simulator_mavlink.cpp +++ b/src/modules/simulator/simulator_mavlink.cpp @@ -148,12 +148,6 @@ void Simulator::actuator_controls_from_outputs(mavlink_hil_actuator_controls_t * is_fixed_wing = false; break; - case MAV_TYPE_VTOL_TAILSITTER: - // this is the tricopter VTOL / quad plane with 3 motors and 2 servos - pos_thrust_motors_count = 3; - is_fixed_wing = false; - break; - case MAV_TYPE_OCTOROTOR: pos_thrust_motors_count = 8; is_fixed_wing = false;