From 1da25db617a6e8d9b64117c4dc55693c19984295 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sun, 17 Apr 2016 17:56:39 +0200 Subject: [PATCH] Add ADSB transponder report --- msg/transponder_report.msg | 14 ++++++++++++++ src/modules/uORB/objects_common.cpp | 3 +++ 2 files changed, 17 insertions(+) create mode 100644 msg/transponder_report.msg diff --git a/msg/transponder_report.msg b/msg/transponder_report.msg new file mode 100644 index 0000000000..eac37d713f --- /dev/null +++ b/msg/transponder_report.msg @@ -0,0 +1,14 @@ +uint64 timestamp # Timestamp of this position report +uint32 ICAO_address # ICAO address +float64 lat # Latitude, expressed as degrees +float64 lon # Longitude, expressed as degrees +uint8 altitude_type # Type from ADSB_ALTITUDE_TYPE enum +float32 altitude # Altitude(ASL) in meters +float32 heading # Course over ground in radians +float32 hor_velocity # The horizontal velocity in m/s +float32 ver_velocity # The vertical velocity in m/s, positive is up +char[9] callsign # The callsign, 8+null +uint8 emitter_type # Type from ADSB_EMITTER_TYPE enum +uint8 tslc # Time since last communication in seconds +uint16 flags # Flags to indicate various statuses including valid data fields +uint16 squawk # Squawk code diff --git a/src/modules/uORB/objects_common.cpp b/src/modules/uORB/objects_common.cpp index 1f0f08a931..9c1dac3d1c 100644 --- a/src/modules/uORB/objects_common.cpp +++ b/src/modules/uORB/objects_common.cpp @@ -291,3 +291,6 @@ ORB_DEFINE(follow_target, struct follow_target_s); #include "topics/commander_state.h" ORB_DEFINE(commander_state, struct commander_state_s); + +#include "topics/transponder_report.h" +ORB_DEFINE(transponder_report, struct transponder_report_s);