/* * mavlink_orb_subscription.h * * Created on: 23.02.2014 * Author: ton */ #ifndef MAVLINK_ORB_SUBSCRIPTION_H_ #define MAVLINK_ORB_SUBSCRIPTION_H_ #include #include class MavlinkOrbSubscription { public: MavlinkOrbSubscription *next; MavlinkOrbSubscription(const struct orb_metadata *topic, size_t size); ~MavlinkOrbSubscription(); bool update(const hrt_abstime t); void *get_data(); const struct orb_metadata *get_topic(); private: const struct orb_metadata *_topic; int _fd; void *_data; hrt_abstime _last_check; }; #endif /* MAVLINK_ORB_SUBSCRIPTION_H_ */