From ca3b1478cef941cff2f200ee6bd8cf91578ce744 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sun, 1 May 2016 15:44:46 +0200 Subject: [PATCH] Add ADC report Enable building of ADC topic --- msg/adc_report.msg | 3 +++ src/modules/uORB/objects_common.cpp | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 msg/adc_report.msg diff --git a/msg/adc_report.msg b/msg/adc_report.msg new file mode 100644 index 0000000000..bfa093a202 --- /dev/null +++ b/msg/adc_report.msg @@ -0,0 +1,3 @@ +uint64 timestamp # Timestamp in microseconds since boot +int16[8] channel_id # ADC channel IDs, negative for non-existent +float32[8] channel_value # ADC channel value in volt, valid if channel ID is positive diff --git a/src/modules/uORB/objects_common.cpp b/src/modules/uORB/objects_common.cpp index 49ff962d54..a91d6ad45d 100644 --- a/src/modules/uORB/objects_common.cpp +++ b/src/modules/uORB/objects_common.cpp @@ -297,3 +297,6 @@ ORB_DEFINE(transponder_report, struct transponder_report_s); #include "topics/gps_inject_data.h" ORB_DEFINE(gps_inject_data, struct gps_inject_data_s); + +#include "topics/adc_report.h" +ORB_DEFINE(adc_report, struct adc_report_s);