Browse Source

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 <silvan@auterion.com>
main
Silvan Fuhrer 3 years ago committed by Daniel Agar
parent
commit
4dbe6f0a1c
  1. 6
      src/modules/simulator/simulator_mavlink.cpp

6
src/modules/simulator/simulator_mavlink.cpp

@ -148,12 +148,6 @@ void Simulator::actuator_controls_from_outputs(mavlink_hil_actuator_controls_t * @@ -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;

Loading…
Cancel
Save