robotpy / mostrobotpy

Official Repository of python implementation of WPILib components
https://robotpy.github.io
Other
9 stars 9 forks source link

wpimath: Make ChassisSpeeds unpackable #54

Closed auscompgeek closed 6 months ago

auscompgeek commented 6 months ago

Similarly to how Translation2d can be unpacked.

Example usage:


speeds = ChassisSpeeds(1, 1, 0.5)

vx, vy, omega = speeds
virtuald commented 6 months ago

Can you add a test for this? Thanks.

auscompgeek commented 6 months ago

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