[sim] send broadcasted messages to all aircraft

Previously, the broadcasted messages was no sent to the aircraft with the same ID.
I suppose this was to not send ACINFO to himself, but this should be
filtered by datalink parser in the end.
It also solves the rc_datalink issue in sim.
This commit is contained in:
Gautier Hattenberger
2014-02-24 18:17:20 +01:00
parent b6d90e873f
commit d5354f068e
+1 -1
View File
@@ -183,7 +183,7 @@ module Make (A:Data.MISSION) (FM: FlightModel.SIG) = struct
let ac_id = Pprz.int_assoc "ac_id" vs in
match link_mode with
Pprz.Forwarded when ac_id = !my_id -> if dl_button#active then set ()
| Pprz.Broadcasted when ac_id <> !my_id -> if dl_button#active then set ()
| Pprz.Broadcasted -> if dl_button#active then set ()
| _ -> ()
let message_bind = fun name link_mode ->