Skip to content

Commit

Permalink
plug
Browse files Browse the repository at this point in the history
  • Loading branch information
RegisJesuitRobotics1 committed Mar 3, 2024
1 parent 6bd149b commit 716dd02
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
9 changes: 9 additions & 0 deletions src/main/java/frc/robot/Autos.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,15 @@ public Autos(
autoChooser.addOption("drive qr", driveSubsystem.driveQuasistaticSysIDCommand(Direction.kReverse));
autoChooser.addOption("drive df", driveSubsystem.driveDynamicSysIDCommand(Direction.kForward));
autoChooser.addOption("drive dr", driveSubsystem.driveDynamicSysIDCommand(Direction.kReverse));

autoChooser.addOption("Shooter qf", shooterSubsystem.sysIdQuasistatic(Direction.kForward));
autoChooser.addOption("Shooter qr", shooterSubsystem.sysIdQuasistatic(Direction.kReverse));
autoChooser.addOption("Shooter df", shooterSubsystem.sysIdDynamic(Direction.kForward));
autoChooser.addOption("Shooter dr", shooterSubsystem.sysIdDynamic(Direction.kReverse));




}

public SendableChooser<Command> getAutoChooser() {
Expand Down
17 changes: 9 additions & 8 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import edu.wpi.first.math.geometry.Transform3d;
import edu.wpi.first.math.geometry.Translation2d;
import edu.wpi.first.math.util.Units;
import edu.wpi.first.units.Unit;
import frc.robot.telemetry.tunable.gains.TunableArmElevatorFFGains;
import frc.robot.telemetry.tunable.gains.TunableFFGains;
import frc.robot.telemetry.tunable.gains.TunablePIDGains;
Expand Down Expand Up @@ -184,20 +185,20 @@ private SwerveConstants() {}
STEER_POSITION_PID_GAINS,
STEER_VELOCITY_FF_GAINS);

public static final SwerveModuleConfiguration FRONT_LEFT_MODULE_CONFIGURATION =
new SwerveModuleConfiguration(
12, 8, 17, true, false, 2.43, true, SHARED_SWERVE_MODULE_CONFIGURATION);
public static final SwerveModuleConfiguration FRONT_RIGHT_MODULE_CONFIGURATION =
new SwerveModuleConfiguration(
13, 5, 18, true, false, 0.34, true, SHARED_SWERVE_MODULE_CONFIGURATION);

public static final SwerveModuleConfiguration BACK_LEFT_MODULE_CONFIGURATION =
12, 8, 17, true, false, 2.462, true, SHARED_SWERVE_MODULE_CONFIGURATION);
public static final SwerveModuleConfiguration FRONT_LEFT_MODULE_CONFIGURATION =
new SwerveModuleConfiguration(
14, 10, 19, true, false, 0.54, true, SHARED_SWERVE_MODULE_CONFIGURATION);
13, 5, 18, false, false, 0.3497+Units.degreesToRadians(180), true, SHARED_SWERVE_MODULE_CONFIGURATION);

public static final SwerveModuleConfiguration BACK_RIGHT_MODULE_CONFIGURATION =
new SwerveModuleConfiguration(
15, 3, 20, true, false, 0.73, true, SHARED_SWERVE_MODULE_CONFIGURATION);
14, 10, 19, true, false, 0.486, true, SHARED_SWERVE_MODULE_CONFIGURATION);

public static final SwerveModuleConfiguration BACK_LEFT_MODULE_CONFIGURATION =
new SwerveModuleConfiguration(
15, 3, 20, true,false, 0.712, true, SHARED_SWERVE_MODULE_CONFIGURATION);
}

public static class AutoConstants {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/commands/ScoringCommands.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static Command shooterInToleranceCommand(ShooterSubsystem shooterSubsyste

public static Command shootSetpointCloseSpeakerCommand(ShooterSubsystem shooterSubsystem) {
// return shooterSubsystem.runVelocityCommand(Units.rotationsPerMinuteToRadiansPerSecond(10000.0));
return shooterSubsystem.setVoltageCommand(10);
return shooterSubsystem.runVelocityCommand(1000.0);
}


Expand Down

0 comments on commit 716dd02

Please sign in to comment.