-
Notifications
You must be signed in to change notification settings - Fork 557
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
Set sequence number in msg_heartbeat, which is sent to drone #956
Set sequence number in msg_heartbeat, which is sent to drone #956
Conversation
@alextel69 This is only being set in msg_heartbeat as you said. Shouldn't the correct sequence number be set in every message that is sent? |
@PaulLoizeaux thanks for your note, I really forgot to fix other messages. Do all packets need to have same seq number or they may have individual ones? |
Auto Parameter download on startup
@alextel69 I think the sequence number of each packet should be sequential regardless of what type of message it is. It is a way to tell if it lost any packets in transit I think. The problem I think we have at that point is that we need to find every place that sends a MAVLink message so we can implement a sequence number in them. |
Or just maintain the sequence state on the mavconnection class, and
|
@arthurbenemann every sent packet should have i+1 seq number? |
@alextel69 yes, warping around at 255. The best place to do it is probably here, right before encoding the packet into a byte array |
@alextel69 Ready for a merge? |
@arthurbenemann could you take a look at last commit - I am unsure whether I understood "rolling" correctly. |
Looks correct. The correct term is integer overflow |
Glad to hear it from you! |
@alextel69 Don't worry, I try to review every line that is merged :) |
…umber Set sequence number in msg_heartbeat, which is sent to drone
Closes #578