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.
sbg
José Roberto de Souza8 years agocommitted byLorenz Meier
@ -104,3 +104,4 @@ uint8 target_component # Component which should execute the command, 0 for all
@@ -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)