mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-07 00:00:35 +08:00
update mavlink submodule to latest
- update MAV_TYPE VTOL usage for current mavlink
This commit is contained in:
committed by
Lorenz Meier
parent
a5bd65b923
commit
98623f69a3
@@ -114,7 +114,7 @@ void Simulator::actuator_controls_from_outputs(mavlink_hil_actuator_controls_t *
|
||||
|
||||
switch (_system_type) {
|
||||
case MAV_TYPE_AIRSHIP:
|
||||
case MAV_TYPE_VTOL_DUOROTOR:
|
||||
case MAV_TYPE_VTOL_TAILSITTER_DUOROTOR:
|
||||
case MAV_TYPE_COAXIAL:
|
||||
pos_thrust_motors_count = 2;
|
||||
is_fixed_wing = false;
|
||||
@@ -126,13 +126,13 @@ void Simulator::actuator_controls_from_outputs(mavlink_hil_actuator_controls_t *
|
||||
break;
|
||||
|
||||
case MAV_TYPE_QUADROTOR:
|
||||
case MAV_TYPE_VTOL_QUADROTOR:
|
||||
case MAV_TYPE_VTOL_TAILSITTER_QUADROTOR:
|
||||
case MAV_TYPE_VTOL_TILTROTOR:
|
||||
pos_thrust_motors_count = 4;
|
||||
is_fixed_wing = false;
|
||||
break;
|
||||
|
||||
case MAV_TYPE_VTOL_RESERVED2:
|
||||
case MAV_TYPE_VTOL_FIXEDROTOR:
|
||||
pos_thrust_motors_count = 5;
|
||||
is_fixed_wing = false;
|
||||
break;
|
||||
@@ -142,7 +142,7 @@ void Simulator::actuator_controls_from_outputs(mavlink_hil_actuator_controls_t *
|
||||
is_fixed_wing = false;
|
||||
break;
|
||||
|
||||
case MAV_TYPE_VTOL_RESERVED3:
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user