Fix ADSB heading angle obtained from driver by removing +pi. Adjusted downstream accordingly

This commit is contained in:
QiTao Weng
2025-06-13 15:28:25 +02:00
committed by Silvan Fuhrer
parent 310cbbedb1
commit 75e4047f2a
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -180,7 +180,7 @@ bool AdsbConflict::handle_traffic_conflict()
case TRAFFIC_STATE::ADD_CONFLICT:
case TRAFFIC_STATE::REMIND_CONFLICT: {
take_action = send_traffic_warning((int)(math::degrees(_transponder_report.heading) + 180.f),
take_action = send_traffic_warning((int)math::degrees(_transponder_report.heading),
(int)fabsf(_crosstrack_error.distance), _transponder_report.flags,
_transponder_report.callsign,
_transponder_report.icao_address,