Skip to content

Commit

Permalink
set the transponder_report message of uavs with no icao address to be…
Browse files Browse the repository at this point in the history
… their mav id
  • Loading branch information
96moustafa authored and dagar committed Dec 11, 2021
1 parent 167edcc commit 6318906
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/mavlink/mavlink_receiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2569,6 +2569,7 @@ MavlinkReceiver::handle_message_utm_global_position(mavlink_message_t *msg)
transponder_report_s t{};
t.timestamp = hrt_absolute_time();
mav_array_memcpy(t.uas_id, utm_pos.uas_id, PX4_GUID_BYTE_LENGTH);
t.icao_address = msg->sysid;
t.lat = utm_pos.lat * 1e-7;
t.lon = utm_pos.lon * 1e-7;
t.altitude = utm_pos.alt / 1000.0f;
Expand Down

0 comments on commit 6318906

Please sign in to comment.