robotpy / mostrobotpy

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

wpimath: Make ChassisSpeeds unpackable #54

Closed auscompgeek closed 11 months ago

auscompgeek commented 11 months ago

Similarly to how Translation2d can be unpacked.

Example usage:


speeds = ChassisSpeeds(1, 1, 0.5)

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

Can you add a test for this? Thanks.

auscompgeek commented 11 months ago

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