Use mode_request for RC mode switching

This commit is contained in:
Matthias Grob
2021-10-19 15:06:17 +02:00
parent f8e4846851
commit 052e29267d
7 changed files with 44 additions and 158 deletions
+1
View File
@@ -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
+7
View File
@@ -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