Setting Mavlink intervals with txt file doesn't work with MP or QGC

Hi,

i am currently experimenting with an additional esp32 dronebridge link additional to the standard 433mhz sik radio.

Everything works fine, the esp32 is much faster and with less lag which is nice.

Now i wanted to adjust the data rates the data is sent to the ground.
Adjusting the standard parameters in Missionplanner (Config - Planner - Telemetry rates) worked, as did the individual rate adjustment with CTRL-F - Message interval.

But i wanted to make this setting more permanent.

https://ardupilot.org/dev/docs/mavlink-requesting-data.html#

Section “Specifying Message Rates in a File”.

I created three files for chan0 (USB connection, not attached but activated), chan1 (SIK radio, only attiude and position with higher frequency) and chan2 (ESP32, higher data rates).
And i put all telemetry rates in MP to -1. (restarted as well)

But unfortunatley it does not work.

I checked in the txt files that there is only a line feed and tried line feed or no line feed in the last line.
I tried putting the files in the main SD card folder and in the APM folder.
Same problem using qgroundcontrol.
I tried some extreme files with only a few values inside with high or low intervals.
Tried original Arupilot Firmware ArduPlane V4.1.7 (f9db02a3) instead of self compiled version.
→ Not working. It seems there is no change at all by the config files.

What did i do wrong?

Thanks!
Christian

message-intervals-chan0.txt (275 Bytes)
message-intervals-chan1.txt (285 Bytes)
message-intervals-chan2.txt (275 Bytes)


params_arduplane.param (17.2 KB)

I note that your parameters still have stream rates set to non-zero values - these are the SRn_* parameters.

Have you tried setting all of the SR1_ parameters to zero, for example (and made sure they stay zero :wink: )

1 Like

OK, I’ve played locally with master, CubeBlack and Plane, wiping parameters.

I uploaded your chan0 file above using ftp and MAVProxy.

After disabling MAVProxy’s streamrate adjustments (set streamrate -1) and rebooting, I get this:

RTL> AHRS: 2.0/s
AOA_SSA: 3.4/s
ATTITUDE: 19.0/s
COMMAND_ACK: 0.4/s
EKF_STATUS_REPORT: 1.0/s
GLOBAL_POSITION_INT: 11.0/s
GPS_RAW_INT: 1.0/s
HEARTBEAT: 1.0/s
HWSTATUS: 1.0/s
MEMINFO: 0.6/s
MISSION_CURRENT: 0.6/s
NAV_CONTROLLER_OUTPUT: 1.0/s
POWER_STATUS: 5.2/s
RAW_IMU: 5.2/s
RC_CHANNELS: 11.0/s
SCALED_IMU2: 0.6/s
SCALED_IMU3: 0.6/s
SCALED_PRESSURE: 2.0/s
SCALED_PRESSURE2: 4.0/s
SERVO_OUTPUT_RAW: 11.0/s
SYSTEM_TIME: 0.6/s
SYS_STATUS: 3.4/s
TERRAIN_REPORT: 4.0/s
TIMESYNC: 0.2/s
VFR_HUD: 3.4/s
VIBRATION: 11.2/s
WIND: 3.4/s

These definitely look affected by the values in your file!

How were you testing that the rates were having an effect? Can you simplify your testing to a fresh set of parameters and a bare board?

… not mentioned in here is which flight controller you’re using. Our standard firmware builds unless that board as 1MB flash…

Hi, thank you so much Peter.

I am very sorry, but i forgot this question completely.
We already managed to make it work after another ardupilot update to 4.2.

Should have closed this. my bad.
Currently we only have the known problem of very slow Missionplanner data download over radio.

  • Christian