Update reliability

This commit is contained in:
thenetworkgrinch
2024-08-24 17:40:19 -05:00
parent 1b464310d3
commit 73b253bce8
123 changed files with 149 additions and 129 deletions

View File

@@ -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();
}