Skip to content

Commit

Permalink
switch to Double.valueOf()
Browse files Browse the repository at this point in the history
  • Loading branch information
mpatankar6 committed Mar 27, 2024
1 parent daa1006 commit 87e553c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/drivetrain/ImuIOPigeon2.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void updateInputs(ImuIOInputs inputs) {
.map(value -> Rotation2d.fromDegrees(value))
.toArray(Rotation2d[]::new);
inputs.odometryYawTimestamps =
m_yawTimestampQueue.stream().mapToDouble(Double::doubleValue).toArray();
m_yawTimestampQueue.stream().mapToDouble(Double::valueOf).toArray();
m_yawPositionQueue.clear();
m_yawTimestampQueue.clear();
}
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/frc/robot/drivetrain/ModuleIOTalonFX.java
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,7 @@ public void updateInputs(ModuleIOInputs inputs) {
m_steerPositionQueue.stream()
.map((Double value) -> Rotation2d.fromRotations(value))
.toArray(Rotation2d[]::new);
inputs.odometryTimestamps =
m_timestampQueue.stream().mapToDouble(Double::doubleValue).toArray();
inputs.odometryTimestamps = m_timestampQueue.stream().mapToDouble(Double::valueOf).toArray();
m_drivePositionQueue.clear();
m_steerPositionQueue.clear();
m_timestampQueue.clear();
Expand Down

0 comments on commit 87e553c

Please sign in to comment.