mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 00:23:33 +08:00
commander/manual_control: use msg enum for params
Instead of using a private enum class we should define the enum in the vehicle_command message and then use it consistently.
This commit is contained in:
committed by
Matthias Grob
parent
f1b1068824
commit
b3a5072de5
@@ -150,6 +150,16 @@ uint8 FAILURE_TYPE_SLOW = 5
|
||||
uint8 FAILURE_TYPE_DELAYED = 6
|
||||
uint8 FAILURE_TYPE_INTERMITTENT = 7
|
||||
|
||||
# used as param1 in ARM_DISARM command
|
||||
int8 ARM_DISARM_ARMING_ACTION_TOGGLE = -1
|
||||
int8 ARM_DISARM_ARMING_ACTION_DISARM = 0
|
||||
int8 ARM_DISARM_ARMING_ACTION_ARM = 1
|
||||
|
||||
# used as param3 in ARM_DISARM command
|
||||
int8 ARM_DISARM_ARMING_ORIGIN_GESTURE = 1
|
||||
int8 ARM_DISARM_ARMING_ORIGIN_SWITCH = 2
|
||||
int8 ARM_DISARM_ARMING_ORIGIN_BUTTON = 3
|
||||
|
||||
uint8 ORB_QUEUE_LENGTH = 8
|
||||
|
||||
float32 param1 # Parameter 1, as defined by MAVLink uint16 VEHICLE_CMD enum.
|
||||
|
||||
Reference in New Issue
Block a user