From d0af62783d1b18da6a15cb2da63e7ea88f5c398a Mon Sep 17 00:00:00 2001 From: Johan Jansen Date: Tue, 6 Jan 2015 11:39:22 +0100 Subject: uORB: Added vehicle_landed uORB topic --- src/modules/uORB/topics/vehicle_land_detected.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/modules/uORB/topics/vehicle_land_detected.h (limited to 'src/modules/uORB/topics') 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__ -- cgit v1.2.3