Skip to content

Commit

Permalink
fixed snapping
Browse files Browse the repository at this point in the history
  • Loading branch information
penguin212 committed Apr 10, 2024
1 parent 4938501 commit 2abec6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,7 @@ public SwerveSubsystem(BooleanSupplier redSupplier) {
FL_POS.getNorm(), // Drive base radius in meters. Distance from robot center to furthest module.
new ReplanningConfig(true, true)
),
() -> {
return false;
},
redSupplier,
this
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public class VortexDriveMotor implements SwerveDriveMotor {
public VortexDriveMotor(int canID) {
motor = new CANSparkFlex(canID, MotorType.kBrushless);
motor.setIdleMode(IdleMode.kBrake);
motor.setClosedLoopRampRate(.1);

encoder = motor.getEncoder();
encoder.setVelocityConversionFactor(conversionFactor); //STUB
Expand Down

0 comments on commit 2abec6d

Please sign in to comment.