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 packet initializers for linear acceleration and angular velocity #66

Merged
merged 3 commits into from
May 16, 2024

Conversation

EliasJRH
Copy link
Contributor

@EliasJRH EliasJRH commented May 15, 2024

Closes #59
Closes #60

This PR adds the packet initializers for linear acceleration and angular velocity

@EliasJRH EliasJRH requested a review from linguini1 as a code owner May 15, 2024 14:05
@EliasJRH EliasJRH linked an issue May 15, 2024 that may be closed by this pull request
@linguini1
Copy link
Collaborator

This looks really good to me and considering you've tested and it works I'm sure it's fine; gonna just re-review this when I get back to my full monitor because I don't trust reviewing diffs on my phone lol

src/main.c Outdated Show resolved Hide resolved
src/main.c Outdated
just_added_block_size = sizeof(AngularVelocityDB);
add_block_header(DATA_ANGULAR_VEL, just_added_block_size);
angular_velocity_db_init((AngularVelocityDB *)packet_pos, last_time,
strtod(strtok(NULL, ","), NULL) / 10, strtod(strtok(NULL, ","), NULL) / 10,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same idea here, multiplication not division. Packet spec is possibly not well worded, if you have any suggestions on a better way to word the descriptions lmk (I'm assuming it was just a misunderstanding because of the conversation we had on Discord).

src/main.c Outdated Show resolved Hide resolved
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.

Lint is failing cause ig QNX mqueues have slightly different attributes. Dw about it.

@linguini1 linguini1 merged commit ecf2974 into main May 16, 2024
2 of 3 checks passed
@linguini1 linguini1 deleted the eh/package_accel_angvel branch May 16, 2024 02:25
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.

Encoding for angular velocity Encoding for linear acceleration
2 participants