fix(detect_and_avoid): enforce SIMULATED flag in fake_traffic()

This commit is contained in:
Anil Kircaliali authored and Matthias Grob committed 2026-07-21 06:15:58 +02:00
1 parent de3a1121f6
commit 1772e24b5f
1 file changed
+1 -1
@@ -445,7 +445,7 @@ void DetectAndAvoid::fake_traffic(const SyntheticTrafficReport &report)
tr.callsign[sizeof(tr.callsign) - 1] = 0;
tr.emitter_type = report.emitter_type;
tr.tslc = 2; // seconds since last communication
tr.flags = report.flags;
tr.flags = report.flags | transponder_report_s::PX4_ADSB_FLAGS_SIMULATED;
tr.squawk = 6667;
#ifndef BOARD_HAS_NO_UUID