mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-12-03 15:00:47 +08:00
fix(detect_and_avoid): enforce SIMULATED flag in fake_traffic()
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user