I currently running an original 3dr pixhawk with arduplane. when I read > mavlink messages off the telem 2 ports and set the stream rate to 50 Hz the most I can get
Well… what’s on the other end of that telem2 port? What is its baudrate, and what sort of bandwidth are you expecting over that link?
out is 5Hz. I am wondering if the cube orange with the faster processor would make any difference?
It would allow you to push up the main loop rate and be sure you won’t get scheduling issues. One issue with pushing messages out is that we don’t allow enough time for the relevant functions to actually push the messages out - better to fly the plane than tell the pilot we’re going to crash. Setting
SCHED_LOOPRATE to 300 is safe enough on a PixHawk (in general, anyway).
What I do not understand is if I use a original 3dr pixhawk and PX4 I get 50 Hz of mavlink mesages no problem.
50Hz of all messages is unlikely over a 900Hz radio, for example.
I am using the code in the link below to read messages with the rate set to 50.
Your Python there - good as it is - can be improved by specifying the rates on a per-message basis, rather than requesting an entire data stream. You’re after