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

Add some remaining M10SPG suggestions #48

Merged
merged 14 commits into from
Jun 7, 2024
Merged

Add some remaining M10SPG suggestions #48

merged 14 commits into from
Jun 7, 2024

Conversation

AngusJull
Copy link
Contributor

Fixed leftover suggestions from #22 that I think were missed, as well as fixed the casting of values from ints to floats which should make the GPS data more understandable

@AngusJull AngusJull requested a review from linguini1 as a code owner June 2, 2024 03:55
uint32_t U32; /**< The message payload, interpreted as a uin32_t */
int32_t I32; /**< The message payload, interpreted as a int32_t */
uint8_t U8; /**< The message payload, interpreted as a uint8_t */
vec2d_t VEC2D; /**< The message payload, interpreted as a vec2d_t */
Copy link
Collaborator

Choose a reason for hiding this comment

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

I should mention that even with the packed attribute, I've found that the float members within vec2d_t and float get padded. For those measurements you will unfortunately have to use the uint8_t buffer with some pointer casting. I'm not sure if adding packed to the union would help, but you could try and see if packager can still receive the data properly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've added a common type for fetcher, I'll start on adding it to packager. Then we can see if it'll work or not.

Copy link
Collaborator

@linguini1 linguini1 left a comment

Choose a reason for hiding this comment

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

Looks good but triple check about padding issues with the floats.

@AngusJull AngusJull force-pushed the m10spg-suggestions branch from 233c752 to b43d727 Compare June 4, 2024 03:45
@AngusJull AngusJull force-pushed the m10spg-suggestions branch from b43d727 to 481b3e7 Compare June 7, 2024 00:58
@AngusJull AngusJull force-pushed the m10spg-suggestions branch from 41fdcf6 to 85097b3 Compare June 7, 2024 23:14
@linguini1 linguini1 force-pushed the m10spg-suggestions branch from 93cd708 to 95534fb Compare June 7, 2024 23:40
@linguini1 linguini1 merged commit ec8afca into main Jun 7, 2024
1 check passed
@linguini1 linguini1 deleted the m10spg-suggestions branch June 7, 2024 23:41
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