GCS Stream Rate Behavior

Do these options set and save their associated parameters?

image

It changes configuration of the link MP is on.

Does this mean I can catch these messages using a pymavlink script running on the same machine and I can receive these info at these rates shown?

Also, what if MP is not connected? In that case am I supposed to set these rates in the script? Or once set, the AP keeps sending these messages at the previosuly set rates even after reboot?

Yes, that’s the expected behavior. I would recommend checking and setting rates in the script if needed.

2 Likes

You can set the rates in the flight controller with the SRx parameters.

MissionPlanner can set them for you, which is what’s displayed there in MP.
Another mavlink device or GCS can also request the data at whatever rate suits regardless of the SR values.

2 Likes

One example of what @xfacta means can be found here.

2 Likes

Thanks, I will send a COMMAND_LONG with command SET_MESSAGE_INTERVAL to set the rate of the desired messages.

Also, to disable the stream, I can set frequency to 0 Hz right? What does the -1 option do? Not to overwrite the SRx params set on the FC?

Where do you see this? can you provide a screenshot?

In the dropdown for setting the rates in the same place as shown in the above image

I see, not sure why is it like that. When users try to change the SRx values under the Config→Full parameter list by clicking the minus button, a user cannot go below 0.

Well, yeah it is obviously not a frequency. It probably means not to change the frequency set by the AP using the SRx params, so similar to QGC’s “Controlled by Autopilot” slider.