mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 00:04:02 -04:00
Copter: move adjust_rate_for_stream up
This commit is contained in:
parent
43fed65f37
commit
3cf174c343
@ -842,15 +842,6 @@ const AP_Param::GroupInfo GCS_MAVLINK::var_info[] = {
|
|||||||
AP_GROUPEND
|
AP_GROUPEND
|
||||||
};
|
};
|
||||||
|
|
||||||
float GCS_MAVLINK_Copter::adjust_rate_for_stream_trigger(enum streams stream_num)
|
|
||||||
{
|
|
||||||
if ((stream_num != STREAM_PARAMS) &&
|
|
||||||
(waypoint_receiving || _queued_parameter != NULL)) {
|
|
||||||
return 0.25f;
|
|
||||||
}
|
|
||||||
return 1.0f;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
GCS_MAVLINK_Copter::data_stream_send(void)
|
GCS_MAVLINK_Copter::data_stream_send(void)
|
||||||
{
|
{
|
||||||
|
@ -13,7 +13,6 @@ protected:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
float adjust_rate_for_stream_trigger(enum streams stream_num) override;
|
|
||||||
void handleMessage(mavlink_message_t * msg) override;
|
void handleMessage(mavlink_message_t * msg) override;
|
||||||
bool handle_guided_request(AP_Mission::Mission_Command &cmd) override;
|
bool handle_guided_request(AP_Mission::Mission_Command &cmd) override;
|
||||||
void handle_change_alt_request(AP_Mission::Mission_Command &cmd) override;
|
void handle_change_alt_request(AP_Mission::Mission_Command &cmd) override;
|
||||||
|
Loading…
Reference in New Issue
Block a user