Skip to content

Commit

Permalink
fix: correct motor in swerve simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
mimizh2418 committed Jan 9, 2024
1 parent b5c0971 commit bf9be1f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit bf9be1f

Please sign in to comment.