41 #ifndef MAVLINK_STREAM_H_ 42 #define MAVLINK_STREAM_H_ 82 virtual const char *get_name()
const = 0;
83 virtual uint16_t get_id() = 0;
132 bool _first_message_sent{
false};
virtual void update_data()
Function to collect/update data for the streams at a high rate independant of actual stream rate...
Definition: mavlink_stream.h:128
An intrusive linked list.
void reset_last_sent()
Reset the time of last sent to 0.
Definition: mavlink_stream.h:114
int get_interval()
Get the interval.
Definition: mavlink_stream.h:76
Definition: mavlink_stream.h:50
void set_interval(const int interval)
Get the interval.
Definition: mavlink_stream.h:69
int _interval
if set to negative value = unlimited rate
Definition: mavlink_stream.h:118
High-resolution timer with callouts and timekeeping.
virtual unsigned get_size_avg()
Get the average message size.
Definition: mavlink_stream.h:103
__BEGIN_DECLS typedef uint64_t hrt_abstime
Absolute time, in microsecond units.
Definition: drv_hrt.h:58
Definition: mavlink_main.h:98
bool first_message_sent() const
Definition: mavlink_stream.h:108
virtual unsigned get_size()=0
Get maximal total messages size on update.
int update(const hrt_abstime &t)
Update subscriptions and send message if necessary.
Definition: mavlink_stream.cpp:57
virtual bool const_rate()
Definition: mavlink_stream.h:88