mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-08-18 06:37:59 +08:00
Wire up FAILURE_UNIT_SYSTEM_TRAFFIC_AVOIDANCE (107) for the MAVLink-based traffic avoidance path: - OFF suppresses and STUCK freezes the incoming transponder_report, applied both at the MAVLink ADS-B ingestion (handle_message_adsb_vehicle) and at the navigator consumer (check_traffic), so it works for real ADS-B over MAVLink, simulated ADS-B and the fake_traffic command. - OFF additionally marks the ADS-B/FLARM heartbeat unhealthy so the traffic avoidance system health check fails, using a message-less process() overload. - Add the unit to the capability catalogue (OK/OFF/STUCK), the failure console command, the RC-switch unit selector and the docs. The matching MAVLink FAILURE_UNIT enum entry lives in the mavlink submodule (common.xml) and is handled by a separate PR; the uORB mirrors in VehicleCommand.msg and FailureInjection.msg are included here.