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

0.10: Fix serialization and deserialization problems #208

Merged
merged 6 commits into from
Nov 21, 2023

Conversation

patrickelectric
Copy link
Member

@patrickelectric patrickelectric commented Nov 21, 2023

Based on #204 #206 #207

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
@patrickelectric patrickelectric changed the title tests: Use COMMON_MSG_HEADER values over hardcoded numbers 0.10: Fix serialization and deserialization problems Nov 21, 2023
Copy link
Contributor

@joaoantoniocardoso joaoantoniocardoso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems okay!

tests/mav_frame_tests.rs Outdated Show resolved Hide resolved
}

#[test]
pub fn test_deser_ser_message() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test would be awesome with proptest

patrickelectric and others added 4 commits November 21, 2023 14:36
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
Co-authored-by: : Ihsen Bouallegue <48621967+IhsenBouallegue@users.noreply.github.com>
As described on the documentation:
0 - magic
1 - len
2 - seq
3 - sysid
4 - compid

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
@patrickelectric patrickelectric merged commit 0ad17a6 into mavlink:0.10 Nov 21, 2023
9 checks passed
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.

2 participants