Skip to content

Commit b546166

Browse files
committed
d
1 parent 987fb94 commit b546166

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/carlmontrobotics/lib199/swerve/SwerveModuleSim.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public SwerveModuleSim(int drivePortNum, double driveGearing, double driveMoiKgM
3838
driveMotorSim = new SimDeviceSim("CANMotor:CANSparkMax", drivePortNum);
3939
driveEncoderSim = new SimDeviceSim("CANEncoder:CANSparkMax", drivePortNum);
4040
DCMotor dcmotor = DCMotor.getNEO(1);
41-
drivePhysicsSim = new DCMotorSim(LinearSystemId.createDCMotorSystem(dcmotor, driveMoiKgM2, driveGearing), dcmotor, 0.0, 0.0);//FIXME WHAT DO WE WANT THE MEASUREMENT STDDEVS TO BE? (LAST ARG)
41+
drivePhysicsSim = new DCMotorSim(LinearSystemId.createDCMotorSystem(dcmotor, driveMoiKgM2, driveGearing), dcmotor, 2.0, 2.0,2);//FIXME WHAT DO WE WANT THE MEASUREMENT STDDEVS TO BE? (LAST ARG)
4242

4343
// drivePhysicsSim = new DCMotorSim(DCMotor.getNEO(1), driveGearing, driveMoiKgM2);
4444
this.driveGearing = driveGearing;
@@ -48,7 +48,7 @@ public SwerveModuleSim(int drivePortNum, double driveGearing, double driveMoiKgM
4848
turnPhysicsSim = new DCMotorSim(
4949
LinearSystemId.createDCMotorSystem(dcmotor, turnMoiKgM2, turnGearing),
5050
dcmotor,
51-
0.0,2.2);
51+
0.0,2.2,2);
5252
}
5353

5454
/**

0 commit comments

Comments
 (0)