Skip to content

Commit

Permalink
reformatted code
Browse files Browse the repository at this point in the history
  • Loading branch information
Pepps233 committed Feb 22, 2024
1 parent 5ab4142 commit a33c541
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/rambots/subsystems/SwerveSubsystem.kt
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ object SwerveSubsystem : SubsystemBase() {
/* calculates chassis speeds based off field relativity */
val chassisSpeeds = if (fieldRelative) {
ChassisSpeeds.fromFieldRelativeSpeeds(
translation.x* invert,
translation.y* invert,
translation.x * invert,
translation.y * invert,
rotation,
yaw
)
} else {
ChassisSpeeds(translation.x* invert, translation.y* invert, rotation)
ChassisSpeeds(translation.x * invert, translation.y * invert, rotation)
}

/* converting calculated chassis speeds into individual module speed */
Expand Down

0 comments on commit a33c541

Please sign in to comment.