mirror of
https://github.com/BroncBotz3481/YAGSL
synced 2026-06-19 06:21:40 +00:00
Updated YAGSL to contain NavX fix, center of rotation, and warnings under certain circumstances.
This commit is contained in:
@@ -127,10 +127,11 @@ public class NavXSwerve extends SwerveIMU
|
||||
*/
|
||||
public Rotation3d getRawRotation3d()
|
||||
{
|
||||
return new Rotation3d(new Quaternion(gyro.getQuaternionW(),
|
||||
gyro.getQuaternionX(),
|
||||
gyro.getQuaternionY(),
|
||||
gyro.getQuaternionZ()));
|
||||
return new Rotation3d(new Quaternion(gyro.getQuaternionW() * 0.5,
|
||||
gyro.getQuaternionX() * 0.5,
|
||||
gyro.getQuaternionY() * 0.5,
|
||||
gyro.getQuaternionZ() *
|
||||
0.5)); // TODO: Remove when Studica's official release is made.
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user