Skip to content

Commit

Permalink
change swerve module numbers in lock wheels.
Browse files Browse the repository at this point in the history
  • Loading branch information
SirBeans committed Feb 21, 2024
1 parent 46ea684 commit 9653ed6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
14 changes: 7 additions & 7 deletions src/main/kotlin/com/team4099/robot2023/BuildConstants.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ package com.team4099.robot2023
* Automatically generated file containing build version information.
*/
const val MAVEN_GROUP = ""
const val MAVEN_NAME = "Crescendo-2024"
const val MAVEN_NAME = "Crescendo-2024v2"
const val VERSION = "unspecified"
const val GIT_REVISION = 107
const val GIT_SHA = "6f95688f694cc66aed31bb1eb64ac054fd0210a1"
const val GIT_DATE = "2024-02-10T23:41:26Z"
const val GIT_REVISION = 108
const val GIT_SHA = "46ea6846af04fe43e4cba9f1167538645ff64d8d"
const val GIT_DATE = "2024-02-11T23:23:02Z"
const val GIT_BRANCH = "drivetrain"
const val BUILD_DATE = "2024-02-11T21:12:18Z"
const val BUILD_UNIX_TIME = 1707703938959L
const val DIRTY = 1
const val BUILD_DATE = "2024-02-20T19:05:54Z"
const val BUILD_UNIX_TIME = 1708473954940L
const val DIRTY = 0
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,5 @@ object ControlBoard {
val wristPID = Trigger { operator.aButton }

val wristReset = Trigger { operator.bButton }

}
Original file line number Diff line number Diff line change
Expand Up @@ -597,16 +597,16 @@ class Drivetrain(val gyroIO: GyroIO, swerveModuleIOs: DrivetrainIO) : SubsystemB
}

fun lockWheels() {
DrivetrainIOReal.getSwerveModules()[1].setOpenLoop(
DrivetrainIOReal.getSwerveModules()[0].setOpenLoop(
DrivetrainConstants.FL_LOCKING_ANGLE, 0.meters.perSecond, true
)
DrivetrainIOReal.getSwerveModules()[1].setOpenLoop(
DrivetrainConstants.FR_LOCKING_ANGLE, 0.meters.perSecond, true
)
DrivetrainIOReal.getSwerveModules()[1].setOpenLoop(
DrivetrainIOReal.getSwerveModules()[2].setOpenLoop(
DrivetrainConstants.BL_LOCKING_ANGLE, 0.meters.perSecond, true
)
DrivetrainIOReal.getSwerveModules()[1].setOpenLoop(
DrivetrainIOReal.getSwerveModules()[3].setOpenLoop(
DrivetrainConstants.BR_LOCKING_ANGLE, 0.meters.perSecond, true
)
}
Expand Down

0 comments on commit 9653ed6

Please sign in to comment.