mirror of
https://github.com/BroncBotz3481/YAGSL
synced 2026-06-30 07:11:40 +00:00
Update reliability
This commit is contained in:
@@ -115,11 +115,13 @@ public class PigeonSwerve extends SwerveIMU
|
||||
return Optional.of(new Translation3d(initial[0], initial[1], initial[2]).times(9.81 / 16384.0));
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* Fetch the rotation rate from the IMU in degrees per second. If rotation rate isn't supported returns empty.
|
||||
*
|
||||
* @return {@link Double} of the rotation rate as an {@link Optional}.
|
||||
*/
|
||||
public double getRate() {
|
||||
public double getRate()
|
||||
{
|
||||
return imu.getRate();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user