MAVLink app: Add radio based software flow control, default to hardware flow control if available and operational

This commit is contained in:
Lorenz Meier
2015-08-01 12:48:11 +02:00
parent aa0679ab93
commit 79910ce7e0
2 changed files with 50 additions and 3 deletions
+5
View File
@@ -351,6 +351,7 @@ private:
int _datarate; ///< data rate for normal streams (attitude, position, etc.)
int _datarate_events; ///< data rate for params, waypoints, text messages
float _rate_mult;
hrt_abstime _last_hw_rate_timestamp;
/**
* If the queue index is not at 0, the queue sending
@@ -409,6 +410,10 @@ private:
static unsigned int interval_from_rate(float rate);
static constexpr unsigned RADIO_BUFFER_CRITICAL_LOW_PERCENTAGE = 25;
static constexpr unsigned RADIO_BUFFER_LOW_PERCENTAGE = 35;
static constexpr unsigned RADIO_BUFFER_HALF_PERCENTAGE = 50;
int configure_stream(const char *stream_name, const float rate);
/**