wpilibsuite / 2024Beta

Repository for Beta Testing of 2024 Software
32 stars 5 forks source link

NavX AHRS class no longer has a function to return Rotation2d #10

Closed rzblue closed 10 months ago

rzblue commented 11 months ago

getRotation2d was previously provided by the Gyro interface, it would be ideal if the AHRS class added this functionality back.

Jm-Taylor commented 11 months ago

Whoops, I will get on it.

calcmogul commented 11 months ago

Since AHRS exposes a quaternion for 3D orientation, agetRotation3d() function would be useful too (there's various constructors, one of which is for quaternions).

Jm-Taylor commented 11 months ago

@rzblue @calcmogul, both functions have been added to v2024.0.1-beta-3. I personally don't know what to do with the data, but I checked, and it was outputting data on the calls.