Hi all,
I have a python script which sets up a stream of certain MAVLink parameters and uses those. The problem is now that the data rate is not what I specified and also somehow not predictable.
My setup is as follows: A Raspberry Pi is connected to the Pixhawk as companion computer. It runs Mavproxy. Further I use a python script which connects to MAVProxy over UDP. The python script starts a data stream by REQUEST_DATA_STREAM
with a specified stream rate. To prevent MAVProxy from setting another stream rate I start the application with the --streamrate=-1
option.
What I experience is that the stream rate is sometimes close to what I set, e.g. when I set 3 Hz I get 4Hz, setting 23 Hz results in either 20 Hz or 25 Hz and setting 35 Hz in about 50 Hz. Does someone have an idea where this behaviour comes from?
And also does someone know what the stream rate parameters exactly do. I read somewhere that SR0 is realted to USB, but what are the others? And how do they behave when setting the stream rate by REQUEST_DATA_STREAM
?
I hope someone can help. Thanks in advance.
-Fabian