Rover: slow parameter send check to 5Hz
this solves an issue with current MP
This commit is contained in:
parent
8f9315f047
commit
cd5b24bf02
@ -756,7 +756,8 @@ const AP_Param::GroupInfo GCS_MAVLINK::var_info[] PROGMEM = {
|
||||
// @Range: 0 10
|
||||
// @Increment: 1
|
||||
// @User: Advanced
|
||||
AP_GROUPINFO("PARAMS", 8, GCS_MAVLINK, streamRates[8], 10),
|
||||
AP_GROUPINFO("PARAMS", 8, GCS_MAVLINK, streamRates[8], 5),
|
||||
|
||||
AP_GROUPEND
|
||||
};
|
||||
|
||||
@ -884,7 +885,10 @@ GCS_MAVLINK::data_stream_send(void)
|
||||
{
|
||||
if (_queued_parameter != NULL) {
|
||||
if (streamRates[STREAM_PARAMS].get() <= 0) {
|
||||
streamRates[STREAM_PARAMS].set(10);
|
||||
streamRates[STREAM_PARAMS].set(5);
|
||||
}
|
||||
if (streamRates[STREAM_PARAMS].get() > 5) {
|
||||
streamRates[STREAM_PARAMS].set(5);
|
||||
}
|
||||
if (stream_trigger(STREAM_PARAMS)) {
|
||||
send_message(MSG_NEXT_PARAM);
|
||||
|
Loading…
Reference in New Issue
Block a user