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:
José Roberto de Souza
2017-08-08 21:46:30 +02:00
committed by Lorenz Meier
parent 89a428fbfe
commit 7c268f4fa1
5 changed files with 16 additions and 9 deletions
+1
View File
@@ -8,3 +8,4 @@ uint32 ORB_QUEUE_LENGTH = 3
uint16 command
uint8 result
uint8 from_external