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

Commit

Permalink
fix: change doneWithMotionProfile bound
Browse files Browse the repository at this point in the history
  • Loading branch information
rotatingcow committed Jan 29, 2024
1 parent 58df0ac commit 888d059
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ class ShooterIOReal : ShooterIO {
}

override fun doneWithMotionProfile(): Boolean {
return pivotLeftKraken.closedLoopError.value > Constants.MOTION_PROFILE_ERROR_THREHOLD ||
pivotRightKraken.closedLoopError.value > Constants.MOTION_PROFILE_ERROR_THREHOLD
return pivotLeftKraken.closedLoopError.value < Constants.MOTION_PROFILE_ERROR_THREHOLD &&
pivotRightKraken.closedLoopError.value < Constants.MOTION_PROFILE_ERROR_THREHOLD
}

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

0 comments on commit 888d059

Please sign in to comment.