mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-05 15:30:08 +08:00
[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:
@@ -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 ->
|
||||
|
||||
Reference in New Issue
Block a user