mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-26 17:36:40 +08:00
mavlink: Safely avoid send the same vehicle_command and vehicle_command_ack back
The previous approach was checking system id and component id but it will not work in 100% of cases as external devices can send MAVLink message with the right system id but with broadcast component id.
This commit is contained in:
committed by
Lorenz Meier
parent
89a428fbfe
commit
7c268f4fa1
@@ -104,3 +104,4 @@ uint8 target_component # Component which should execute the command, 0 for all
|
||||
uint8 source_system # System sending the command
|
||||
uint8 source_component # Component sending the command
|
||||
uint8 confirmation # 0: First transmission of this command. 1-255: Confirmation transmissions (e.g. for kill command)
|
||||
uint8 from_external
|
||||
|
||||
@@ -8,3 +8,4 @@ uint32 ORB_QUEUE_LENGTH = 3
|
||||
|
||||
uint16 command
|
||||
uint8 result
|
||||
uint8 from_external
|
||||
|
||||
Reference in New Issue
Block a user