From bf9be1f6c0a66e632f42650499a903e475c3f4be Mon Sep 17 00:00:00 2001 From: Alvin Zhang <41vin2h4n9@gmail.com> Date: Tue, 9 Jan 2024 11:50:27 -0800 Subject: [PATCH] fix: correct motor in swerve simulation --- .../org/team1540/robot2024/subsystems/drive/ModuleIOSim.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/team1540/robot2024/subsystems/drive/ModuleIOSim.java b/src/main/java/org/team1540/robot2024/subsystems/drive/ModuleIOSim.java index 320c9cc7..d9277ecc 100644 --- a/src/main/java/org/team1540/robot2024/subsystems/drive/ModuleIOSim.java +++ b/src/main/java/org/team1540/robot2024/subsystems/drive/ModuleIOSim.java @@ -15,8 +15,8 @@ public class ModuleIOSim implements ModuleIO { private static final double LOOP_PERIOD_SECS = 0.02; private final Rotation2d turnAbsoluteInitPosition = new Rotation2d(Math.random() * 2.0 * Math.PI); - private final DCMotorSim driveSim = new DCMotorSim(DCMotor.getNEO(1), 6.75, 0.025); - private final DCMotorSim turnSim = new DCMotorSim(DCMotor.getNEO(1), 150.0 / 7.0, 0.004); + private final DCMotorSim driveSim = new DCMotorSim(DCMotor.getFalcon500Foc(1), 6.15, 0.025); + private final DCMotorSim turnSim = new DCMotorSim(DCMotor.getFalcon500Foc(1), 150.0 / 7.0, 0.004); private double driveAppliedVolts = 0.0; private double turnAppliedVolts = 0.0;