AntennaTracker: use common send_queued_parameters()

This commit is contained in:
Andrew Tridgell 2017-04-29 14:36:42 +10:00
parent f778954b84
commit 005797c327

View File

@ -368,14 +368,7 @@ const AP_Param::GroupInfo GCS_MAVLINK::var_info[] = {
void
GCS_MAVLINK_Tracker::data_stream_send(void)
{
if (_queued_parameter != nullptr) {
if (streamRates[STREAM_PARAMS].get() <= 0) {
streamRates[STREAM_PARAMS].set(10);
}
if (stream_trigger(STREAM_PARAMS)) {
send_message(MSG_NEXT_PARAM);
}
}
send_queued_parameters();
if (tracker.in_mavlink_delay) {
// don't send any other stream types while in the delay callback