mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-06 12:31:35 +08:00
mavlink: major rewrite, prepare for dynamic mavlink streams configuration, WIP
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* mavlink_orb_subscription.h
|
||||
*
|
||||
* Created on: 23.02.2014
|
||||
* Author: ton
|
||||
*/
|
||||
|
||||
#ifndef MAVLINK_ORB_SUBSCRIPTION_H_
|
||||
#define MAVLINK_ORB_SUBSCRIPTION_H_
|
||||
|
||||
#include <systemlib/uthash/utlist.h>
|
||||
#include <drivers/drv_hrt.h>
|
||||
|
||||
class MavlinkOrbSubscription {
|
||||
public:
|
||||
MavlinkOrbSubscription(const struct orb_metadata *meta, size_t size);
|
||||
~MavlinkOrbSubscription();
|
||||
|
||||
int set_interval(const unsigned int interval);
|
||||
int update(const hrt_abstime t);
|
||||
|
||||
const struct orb_metadata *meta;
|
||||
int fd;
|
||||
void *data;
|
||||
hrt_abstime last_update;
|
||||
unsigned int interval;
|
||||
MavlinkOrbSubscription *next;
|
||||
};
|
||||
|
||||
|
||||
#endif /* MAVLINK_ORB_SUBSCRIPTION_H_ */
|
||||
Reference in New Issue
Block a user