Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCS_Mavlink: Set a minimum delay for FTP burst read #29326

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

InanixFR
Copy link

burst_delay_ms is initialized to 0.

In case of using SITL with UDP direct connexion, it will stay to 0, pushing Mavlink packets at full speed. This drive to lost packets.

I made some tests with different receive buffer size (best for me is 512 Bytes) and it works with a minimum value of 4ms, then I putted 5 to get some security.

This introduce a latency arround 350ms for a Copter full parameter ( SITL = 1454 parameters) FTP burst read (70 Mavlink messages) .

burst_delay_ms is initialized to 0.

In case of using SITL with UDP direct connexion, it will stay to 0, pushing Mavlink packets at full speed.
This drive to lost packets.

I made some tests with different receive buffer size (best for me is 512 Bytes) and it works with a minimum  value of 4ms, then I putted 5 to get some security.

This introduce a latency arround 350ms for a Copter full parameter ( SITL = 1454 parameters) FTP burst read (70 Mavlink messages) .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant