Skip to content

Commit

Permalink
temp: debug ci
Browse files Browse the repository at this point in the history
  • Loading branch information
asimopunov committed Apr 17, 2024
1 parent fb99835 commit 1d94dae
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/lib/adsb/AdsbConflict.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,16 @@ void AdsbConflict::get_traffic_state()

if (old_conflict && _conflict_detected) {
old_conflict_warning_expired = (hrt_elapsed_time(&_traffic_buffer.timestamp[traffic_index]) > CONFLICT_WARNING_TIMEOUT);
PX4_INFO("Old conflict detected and warning expired");
}

printf("Timestamp: %llu \n",
_traffic_buffer.timestamp[traffic_index]);
printf("Time now: %llu \n", hrt_absolute_time());
printf("Time since timestamp: %llu \n",
hrt_elapsed_time(&_traffic_buffer.timestamp[traffic_index]));
printf("Old Conflict warning expired: %d \n", old_conflict_warning_expired);
printf("--------------------\n");

if (new_traffic && _conflict_detected && !_traffic_buffer_full) {
add_icao_address_from_conflict_list(_transponder_report.icao_address);
_traffic_state = TRAFFIC_STATE::ADD_CONFLICT;
Expand Down

0 comments on commit 1d94dae

Please sign in to comment.