mavlink: Only send event-based messages if there is space in the buffer

This commit is contained in:
Lorenz Meier
2014-07-19 23:39:02 +02:00
parent cbfbdd2788
commit cd8a0cd217
3 changed files with 84 additions and 6 deletions
+13
View File
@@ -56,7 +56,20 @@ public:
MavlinkStream();
virtual ~MavlinkStream();
/**
* Get the interval
*
* @param interval the inveral in microseconds (us) between messages
*/
void set_interval(const unsigned int interval);
/**
* Get the interval
*
* @return the inveral in microseconds (us) between messages
*/
unsigned get_interval() { return _interval; }
void set_channel(mavlink_channel_t channel);
/**