aboutsummaryrefslogtreecommitdiff
path: root/src/modules/uORB
diff options
context:
space:
mode:
authorJohan Jansen <jnsn.johan@gmail.com>2015-01-06 11:39:22 +0100
committerJohan Jansen <jnsn.johan@gmail.com>2015-01-15 14:37:50 +0100
commitd0af62783d1b18da6a15cb2da63e7ea88f5c398a (patch)
treea90a884b42cde5a4d440d87ddd10fd4e8d1ed44c /src/modules/uORB
parente62bd37e73139c77f0d60cd91fe3443ed23df074 (diff)
downloadpx4-firmware-d0af62783d1b18da6a15cb2da63e7ea88f5c398a.tar.gz
px4-firmware-d0af62783d1b18da6a15cb2da63e7ea88f5c398a.tar.bz2
px4-firmware-d0af62783d1b18da6a15cb2da63e7ea88f5c398a.zip
uORB: Added vehicle_landed uORB topic
Diffstat (limited to 'src/modules/uORB')
-rw-r--r--src/modules/uORB/objects_common.cpp3
-rw-r--r--src/modules/uORB/topics/vehicle_land_detected.h23
2 files changed, 26 insertions, 0 deletions
diff --git a/src/modules/uORB/objects_common.cpp b/src/modules/uORB/objects_common.cpp
index 293412455..78fdf4de7 100644
--- a/src/modules/uORB/objects_common.cpp
+++ b/src/modules/uORB/objects_common.cpp
@@ -83,6 +83,9 @@ ORB_DEFINE(sensor_combined, struct sensor_combined_s);
#include "topics/vehicle_gps_position.h"
ORB_DEFINE(vehicle_gps_position, struct vehicle_gps_position_s);
+#include "topics/vehicle_land_detected.h"
+ORB_DEFINE(vehicle_land_detected, struct vehicle_land_detected_s);
+
#include "topics/satellite_info.h"
ORB_DEFINE(satellite_info, struct satellite_info_s);
diff --git a/src/modules/uORB/topics/vehicle_land_detected.h b/src/modules/uORB/topics/vehicle_land_detected.h
new file mode 100644
index 000000000..0de29498d
--- /dev/null
+++ b/src/modules/uORB/topics/vehicle_land_detected.h
@@ -0,0 +1,23 @@
+#ifndef __TOPIC_VEHICLE_LANDED_H__
+#define __TOPIC_VEHICLE_LANDED_H__
+
+#include "../uORB.h"
+
+/**
+ * @addtogroup topics
+ * @{
+ */
+
+struct vehicle_land_detected_s {
+ uint64_t timestamp; /**< timestamp of the setpoint */
+ bool landed; /**< true if vehicle is currently landed on the ground*/
+};
+
+/**
+ * @}
+ */
+
+/* register this as object request broker structure */
+ORB_DECLARE(vehicle_land_detected);
+
+#endif //__TOPIC_VEHICLE_LANDED_H__