mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-24 15:40:31 +08:00
Use mode_request for RC mode switching
This commit is contained in:
@@ -109,6 +109,7 @@ set(msg_files
|
||||
mavlink_log.msg
|
||||
mission.msg
|
||||
mission_result.msg
|
||||
mode_request.msg
|
||||
mount_orientation.msg
|
||||
multirotor_motor_limits.msg
|
||||
navigator_mission_item.msg
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
uint64 timestamp # time since system start (microseconds)
|
||||
|
||||
uint8 mode # what mode is requested according to commander_state.MAIN_STATE_
|
||||
|
||||
uint8 source # how the request was triggered
|
||||
uint8 SOURCE_RC_MODE_SLOT = 0
|
||||
uint8 SOURCE_RC_SWITCH = 1
|
||||
Reference in New Issue
Block a user