Skip to content

Commit 2abec6d

Browse files
committed
fixed snapping
1 parent 4938501 commit 2abec6d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/main/java/frc/robot/subsystems/swerve/SwerveSubsystem.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,7 @@ public SwerveSubsystem(BooleanSupplier redSupplier) {
199199
FL_POS.getNorm(), // Drive base radius in meters. Distance from robot center to furthest module.
200200
new ReplanningConfig(true, true)
201201
),
202-
() -> {
203-
return false;
204-
},
202+
redSupplier,
205203
this
206204
);
207205

src/main/java/frc/robot/subsystems/swerve/drivemotors/VortexDriveMotor.java

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public class VortexDriveMotor implements SwerveDriveMotor {
2424
public VortexDriveMotor(int canID) {
2525
motor = new CANSparkFlex(canID, MotorType.kBrushless);
2626
motor.setIdleMode(IdleMode.kBrake);
27+
motor.setClosedLoopRampRate(.1);
2728

2829
encoder = motor.getEncoder();
2930
encoder.setVelocityConversionFactor(conversionFactor); //STUB

0 commit comments

Comments
 (0)