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

wpimath: Make ChassisSpeeds unpackable #54

Merged
merged 3 commits into from
Jan 4, 2024
Merged

Conversation

auscompgeek
Copy link
Member

Similarly to how Translation2d can be unpacked.

Example usage:

speeds = ChassisSpeeds(1, 1, 0.5)

vx, vy, omega = speeds

@virtuald
Copy link
Member

virtuald commented Jan 3, 2024

Can you add a test for this? Thanks.

@auscompgeek
Copy link
Member Author

I'll do one better: I've ported the ChassisSpeeds operator overload tests too.

@virtuald virtuald merged commit 70b5bf2 into main Jan 4, 2024
31 checks passed
@virtuald virtuald deleted the unpack-chassis-speeds branch January 4, 2024 05:11
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