|
|
|
@ -48,7 +48,7 @@
@@ -48,7 +48,7 @@
|
|
|
|
|
class MavlinkOrbSubscription |
|
|
|
|
{ |
|
|
|
|
public: |
|
|
|
|
MavlinkOrbSubscription *next; |
|
|
|
|
MavlinkOrbSubscription *next; /*< pointer to next subscription in list */ |
|
|
|
|
|
|
|
|
|
MavlinkOrbSubscription(const orb_id_t topic); |
|
|
|
|
~MavlinkOrbSubscription(); |
|
|
|
@ -59,18 +59,19 @@ public:
@@ -59,18 +59,19 @@ public:
|
|
|
|
|
* Check if the topic has been published. |
|
|
|
|
* |
|
|
|
|
* This call will return true if the topic was ever published. |
|
|
|
|
* @param true if the topic has been published at least once. |
|
|
|
|
* @return true if the topic has been published at least once. |
|
|
|
|
*/ |
|
|
|
|
bool is_published(); |
|
|
|
|
void *get_data(); |
|
|
|
|
const orb_id_t get_topic(); |
|
|
|
|
|
|
|
|
|
private: |
|
|
|
|
const orb_id_t _topic; |
|
|
|
|
int _fd; |
|
|
|
|
bool _published; |
|
|
|
|
void *_data; |
|
|
|
|
hrt_abstime _last_check; |
|
|
|
|
const orb_id_t _topic; /*< topic metadata */ |
|
|
|
|
int _fd; /*< subscription handle */ |
|
|
|
|
bool _published; /*< topic was ever published */ |
|
|
|
|
void *_data; /*< pointer to data buffer */ |
|
|
|
|
hrt_abstime _last_check; /*< time of last check */ |
|
|
|
|
bool _updated; /*< updated on last check */ |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|