some auto stuff

This commit is contained in:
aarav18
2022-02-03 20:53:43 -07:00
parent 5c05a320e8
commit e9ab948adc
6 changed files with 71 additions and 24 deletions
@@ -104,4 +104,9 @@ public class SwerveModule extends SubsystemBase {
return new SwerveModuleState(driveMotor.getSelectedSensorVelocity() * SwerveDriveConstants.INCHES_PER_TICK * SwerveDriveConstants.METERS_PER_INCH * 10, getAngle());
}
public void stop() {
driveMotor.set(0);
angleMotor.set(0);
}
}