mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 10:03:35 +08:00
adsb: warnings fixes & remove UTM_GLOBAL_POSITION (#21663)
- warn about full traffic conflict buffer at 1/60hz. - add conflict expiry for buffer. - use only events for buffer full warning. mavlink_log_critical no longer needed. - use icao address for conflict warnings id, stop using uas_id. UTM_GLOBAL_POSITION assumed deprecated. - stop spamming when buffer is full - fix warning wording if buffer is full. - remove UTM_GLOBAL_POSITION Fixes failing unit test: * [adsbTest] Reduce conflict timestamps - not enough time has passed in ci - failed ci output - (passes locally with make tests TESTFILTER=AdsbConflict) - Timestamp: 6000000000 - Time now: 457720038 - Time since timestamp: 0 - Old Conflict warning expired: 0 - -------------------- - adsb_conflict._traffic_state 0 - ../../src/lib/adsb/AdsbConflictTest.cpp:244: Failure - Value of: adsb_conflict._traffic_state == TRAFFIC_STATE::REMIND_CONFLICT - Actual: false - Expected: true
This commit is contained in:
@@ -150,7 +150,6 @@
|
||||
# include "streams/SCALED_PRESSURE3.hpp"
|
||||
# include "streams/UAVIONIX_ADSB_OUT_CFG.hpp"
|
||||
# include "streams/UAVIONIX_ADSB_OUT_DYNAMIC.hpp"
|
||||
# include "streams/UTM_GLOBAL_POSITION.hpp"
|
||||
#endif // !CONSTRAINED_FLASH
|
||||
|
||||
// ensure PX4 rotation enum and MAV_SENSOR_ROTATION align
|
||||
@@ -419,9 +418,6 @@ static const StreamListItem streams_list[] = {
|
||||
#if defined(ADSB_VEHICLE_HPP)
|
||||
create_stream_list_item<MavlinkStreamADSBVehicle>(),
|
||||
#endif // ADSB_VEHICLE_HPP
|
||||
#if defined(UTM_GLOBAL_POSITION_HPP)
|
||||
create_stream_list_item<MavlinkStreamUTMGlobalPosition>(),
|
||||
#endif // UTM_GLOBAL_POSITION_HPP
|
||||
#if defined(COLLISION_HPP)
|
||||
create_stream_list_item<MavlinkStreamCollision>(),
|
||||
#endif // COLLISION_HPP
|
||||
|
||||
Reference in New Issue
Block a user