Skip to content

Commit

Permalink
Missed Pigeon2
Browse files Browse the repository at this point in the history
  • Loading branch information
clrozeboom committed Jul 30, 2024
1 parent e665110 commit 51e87ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/swervelib/imu/Pigeon2Swerve.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ public Optional<Translation3d> getAccel()
* 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 Optional<Double> getRate() {
return Optional.of(imu.getRate());
public double getRate() {
return imu.getRate();
}

/**
Expand Down

0 comments on commit 51e87ee

Please sign in to comment.