diff --git a/.gradle/8.4/checksums/checksums.lock b/.gradle/8.4/checksums/checksums.lock index 11fc9311..bfaa0b83 100644 Binary files a/.gradle/8.4/checksums/checksums.lock and b/.gradle/8.4/checksums/checksums.lock differ diff --git a/.gradle/8.4/executionHistory/executionHistory.bin b/.gradle/8.4/executionHistory/executionHistory.bin index 682ccc07..dabc8754 100644 Binary files a/.gradle/8.4/executionHistory/executionHistory.bin and b/.gradle/8.4/executionHistory/executionHistory.bin differ diff --git a/.gradle/8.4/executionHistory/executionHistory.lock b/.gradle/8.4/executionHistory/executionHistory.lock index 52d79030..05f80098 100644 Binary files a/.gradle/8.4/executionHistory/executionHistory.lock and b/.gradle/8.4/executionHistory/executionHistory.lock differ diff --git a/.gradle/8.4/fileHashes/fileHashes.bin b/.gradle/8.4/fileHashes/fileHashes.bin index 59210066..04e0f8e6 100644 Binary files a/.gradle/8.4/fileHashes/fileHashes.bin and b/.gradle/8.4/fileHashes/fileHashes.bin differ diff --git a/.gradle/8.4/fileHashes/fileHashes.lock b/.gradle/8.4/fileHashes/fileHashes.lock index 551037ea..0f0bc194 100644 Binary files a/.gradle/8.4/fileHashes/fileHashes.lock and b/.gradle/8.4/fileHashes/fileHashes.lock differ diff --git a/.gradle/8.4/fileHashes/resourceHashesCache.bin b/.gradle/8.4/fileHashes/resourceHashesCache.bin index ab466a4c..87210d89 100644 Binary files a/.gradle/8.4/fileHashes/resourceHashesCache.bin and b/.gradle/8.4/fileHashes/resourceHashesCache.bin differ diff --git a/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/.gradle/buildOutputCleanup/buildOutputCleanup.lock index 7dd9e2d5..7f61ccc4 100644 Binary files a/.gradle/buildOutputCleanup/buildOutputCleanup.lock and b/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/.gradle/buildOutputCleanup/outputFiles.bin b/.gradle/buildOutputCleanup/outputFiles.bin index fe977952..4abde7d7 100644 Binary files a/.gradle/buildOutputCleanup/outputFiles.bin and b/.gradle/buildOutputCleanup/outputFiles.bin differ diff --git a/ctre_sim/Talon FX vers. C - 011 - 0 - ext.dat b/ctre_sim/Talon FX vers. C - 011 - 0 - ext.dat index d8142b1f..d6d5688a 100644 Binary files a/ctre_sim/Talon FX vers. C - 011 - 0 - ext.dat and b/ctre_sim/Talon FX vers. C - 011 - 0 - ext.dat differ diff --git a/ctre_sim/Talon FX vers. C - 012 - 0 - ext.dat b/ctre_sim/Talon FX vers. C - 012 - 0 - ext.dat index f4771e8e..e34b7c16 100644 Binary files a/ctre_sim/Talon FX vers. C - 012 - 0 - ext.dat and b/ctre_sim/Talon FX vers. C - 012 - 0 - ext.dat differ diff --git a/ctre_sim/Talon FX vers. C - 013 - 0 - ext.dat b/ctre_sim/Talon FX vers. C - 013 - 0 - ext.dat index 348ac746..f94b8793 100644 Binary files a/ctre_sim/Talon FX vers. C - 013 - 0 - ext.dat and b/ctre_sim/Talon FX vers. C - 013 - 0 - ext.dat differ diff --git a/ctre_sim/Talon FX vers. C - 014 - 0 - ext.dat b/ctre_sim/Talon FX vers. C - 014 - 0 - ext.dat index b45357d3..3f7d88f2 100644 Binary files a/ctre_sim/Talon FX vers. C - 014 - 0 - ext.dat and b/ctre_sim/Talon FX vers. C - 014 - 0 - ext.dat differ diff --git a/ctre_sim/Talon FX vers. C - 021 - 0 - ext.dat b/ctre_sim/Talon FX vers. C - 021 - 0 - ext.dat index db93c52d..3c15712c 100644 Binary files a/ctre_sim/Talon FX vers. C - 021 - 0 - ext.dat and b/ctre_sim/Talon FX vers. C - 021 - 0 - ext.dat differ diff --git a/ctre_sim/Talon FX vers. C - 022 - 0 - ext.dat b/ctre_sim/Talon FX vers. C - 022 - 0 - ext.dat index 788fdb3e..f6bb826f 100644 Binary files a/ctre_sim/Talon FX vers. C - 022 - 0 - ext.dat and b/ctre_sim/Talon FX vers. C - 022 - 0 - ext.dat differ diff --git a/ctre_sim/Talon FX vers. C - 023 - 0 - ext.dat b/ctre_sim/Talon FX vers. C - 023 - 0 - ext.dat index 458f8e41..0c2cd2df 100644 Binary files a/ctre_sim/Talon FX vers. C - 023 - 0 - ext.dat and b/ctre_sim/Talon FX vers. C - 023 - 0 - ext.dat differ diff --git a/ctre_sim/Talon FX vers. C - 024 - 0 - ext.dat b/ctre_sim/Talon FX vers. C - 024 - 0 - ext.dat index 970c9978..24a87e59 100644 Binary files a/ctre_sim/Talon FX vers. C - 024 - 0 - ext.dat and b/ctre_sim/Talon FX vers. C - 024 - 0 - ext.dat differ diff --git a/src/main/kotlin/com/team4099/robot2023/RobotContainer.kt b/src/main/kotlin/com/team4099/robot2023/RobotContainer.kt index 72dbd6fb..58779fc5 100644 --- a/src/main/kotlin/com/team4099/robot2023/RobotContainer.kt +++ b/src/main/kotlin/com/team4099/robot2023/RobotContainer.kt @@ -35,6 +35,7 @@ import com.team4099.robot2023.subsystems.superstructure.Request import com.team4099.robot2023.subsystems.superstructure.Superstructure import com.team4099.robot2023.subsystems.vision.Vision import com.team4099.robot2023.subsystems.vision.camera.CameraIO +import com.team4099.robot2023.subsystems.vision.camera.CameraIOPhotonvision import com.team4099.robot2023.subsystems.wrist.Wrist import com.team4099.robot2023.subsystems.wrist.WristIOSim import com.team4099.robot2023.subsystems.wrist.WristIOTalon @@ -127,7 +128,7 @@ object RobotContainer { // Real Hardware Implementations // drivetrain = Drivetrain(object: GyroIO {},object: DrivetrainIO {} - drivetrain = Drivetrain(GyroIOPigeon2, SWERVE_MODULES_REAL) + drivetrain = Drivetrain(GyroIOPigeon2, { SWERVE_MODULES_REAL }) vision = Vision(object : CameraIO {}) limelight = LimelightVision(LimelightVisionIOReal) intake = Intake(object : IntakeIO {}) @@ -137,7 +138,7 @@ object RobotContainer { wrist = Wrist(WristIOTalon) } else { // Simulation implementations - drivetrain = Drivetrain(object : GyroIO {}, SWERVE_MODULES_SIM) + drivetrain = Drivetrain(object : GyroIO {}, { SWERVE_MODULES_SIM }) vision = Vision(object : CameraIO {}) limelight = LimelightVision(object : LimelightVisionIO {}) intake = Intake(IntakeIOSim) diff --git a/src/main/kotlin/com/team4099/robot2023/subsystems/drivetrain/Drivetrain.kt b/src/main/kotlin/com/team4099/robot2023/subsystems/drivetrain/Drivetrain.kt index 94806eeb..ae57653f 100644 --- a/src/main/kotlin/com/team4099/robot2023/subsystems/drivetrain/Drivetrain.kt +++ b/src/main/kotlin/com/team4099/robot2023/subsystems/drivetrain/Drivetrain.kt @@ -50,7 +50,7 @@ import java.util.concurrent.locks.Lock import java.util.concurrent.locks.ReentrantLock import com.team4099.robot2023.subsystems.superstructure.Request.DrivetrainRequest as DrivetrainRequest -class Drivetrain(private val gyroIO: GyroIO, val swerveModules: List) : +class Drivetrain(private val gyroIO: GyroIO, val swerveModuleSupplier: () -> List) : SubsystemBase() { object TunableDriveStates { @@ -99,6 +99,8 @@ class Drivetrain(private val gyroIO: GyroIO, val swerveModules: List