mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-10 13:53:34 +08:00
msg: introduce message versioning
This commit is contained in:
committed by
Beat Küng
parent
f9140fcd50
commit
4fe7d713d3
17
msg/versioned/ModeCompleted.msg
Normal file
17
msg/versioned/ModeCompleted.msg
Normal file
@@ -0,0 +1,17 @@
|
||||
# Mode completion result, published by an active mode.
|
||||
# The possible values of nav_state are defined in the VehicleStatus msg.
|
||||
# Note that this is not always published (e.g. when a user switches modes or on
|
||||
# failsafe activation)
|
||||
|
||||
uint32 MESSAGE_VERSION = 0
|
||||
|
||||
uint64 timestamp # time since system start (microseconds)
|
||||
|
||||
|
||||
uint8 RESULT_SUCCESS = 0
|
||||
# [1-99]: reserved
|
||||
uint8 RESULT_FAILURE_OTHER = 100 # Mode failed (generic error)
|
||||
|
||||
uint8 result # One of RESULT_*
|
||||
|
||||
uint8 nav_state # Source mode (values in VehicleStatus)
|
||||
Reference in New Issue
Block a user