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

Don't search MAVLINK_STX with last char of bad packet #9

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

Conversation

ImFovery
Copy link

The deleted code always causes extremely occasional packet loss. Details are as follows.
User A add a new mavlink message, but user B din't add the message. This common situation will lead to extremely occasional packet loss in user B. When user B receive the undefined message, mavlink_parse_char() will enter MAVLINK_FRAMING_BAD_CRC status, and check the undefined message last char. If the last char happens to be MAVLINK_STX value, then the subsequent valid packets will parse wrong and lost.

User A add a new mavlink message, but user B din't add the message. This common situation will lead to extremely occasional packet loss in user B.
When user B receive the undefined message, mavlink_parse_char() will enter MAVLINK_FRAMING_BAD_CRC status, and check the undefined message last char. If the last char happens to be MAVLINK_STX value, then the subsequent valid packets will parse wrong and lead to lost.
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