Plane: move adjust_rate_for_stream up

This commit is contained in:
Peter Barker 2016-05-28 23:02:55 +10:00 committed by Andrew Tridgell
parent 3cf174c343
commit 9ee62aac30
2 changed files with 0 additions and 13 deletions

View File

@ -977,18 +977,6 @@ const AP_Param::GroupInfo GCS_MAVLINK::var_info[] = {
AP_GROUPEND
};
float GCS_MAVLINK_Plane::adjust_rate_for_stream_trigger(enum streams stream_num)
{
// send at a much lower rate while handling waypoints and
// parameter sends
if ((stream_num != STREAM_PARAMS) &&
(waypoint_receiving || _queued_parameter != NULL)) {
return 0.25f;
}
return 1.0f;
}
void
GCS_MAVLINK_Plane::data_stream_send(void)
{

View File

@ -13,7 +13,6 @@ protected:
private:
float adjust_rate_for_stream_trigger(enum streams stream_num) override;
void handleMessage(mavlink_message_t * msg) override;
bool handle_guided_request(AP_Mission::Mission_Command &cmd) override;
void handle_change_alt_request(AP_Mission::Mission_Command &cmd) override;