Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Commit

Permalink
refactor(shooter): fix type in ShooterIO.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
max-niederman committed Jan 29, 2024
1 parent 1d64a22 commit dbc2208
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class ShooterIOReal : ShooterIO {
const val MOTION_MAGIC_ACCELERATION = 0.0
const val MOTION_MAGIC_JERK = 4000.0

const val MOTION_PROFILE_ERROR_THREHOLD =
const val MOTION_PROFILE_ERROR_THRESHOLD =
2.0 // i have no idea what units these are in, we'll have to just fuck around and
// find out
}
Expand Down Expand Up @@ -140,7 +140,7 @@ class ShooterIOReal : ShooterIO {
Rotation2d(pivotLeftKraken.acceleration.value * Constants.PIVOT_GEAR_RATIO)

inputs.atSetpoint =
pivotLeftKraken.closedLoopError.value < Constants.MOTION_PROFILE_ERROR_THREHOLD && pivotRightKraken.closedLoopError.value < Constants.MOTION_PROFILE_ERROR_THREHOLD
pivotLeftKraken.closedLoopError.value < Constants.MOTION_PROFILE_ERROR_THRESHOLD && pivotRightKraken.closedLoopError.value < Constants.MOTION_PROFILE_ERROR_THRESHOLD
}

override fun shoot(speed: Double, spin: Boolean) {
Expand Down

0 comments on commit dbc2208

Please sign in to comment.