Skip to content

Commit

Permalink
Merge pull request #81 from 2491-NoMythic/fixInitialShot
Browse files Browse the repository at this point in the history
  • Loading branch information
veggie2u authored Feb 26, 2024
2 parents 7084e54 + 285aa0a commit bf1fe48
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main/deploy/pathplanner/autos/FleeAmp.auto
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{
"type": "wait",
"data": {
"waitTime": 1.0
"waitTime": 3.0
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/main/deploy/pathplanner/autos/FleeMid.auto
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{
"type": "wait",
"data": {
"waitTime": 1.25
"waitTime": 3.0
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion src/main/deploy/pathplanner/autos/FleeSource.auto
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{
"type": "wait",
"data": {
"waitTime": 1.25
"waitTime": 3.0
}
},
{
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public class RobotContainer {
public RobotContainer() {
//preferences are initialized IF they don't already exist on the Rio
Preferences.initBoolean("Brushes", false);
Preferences.setBoolean("Brushes", false);
Preferences.initBoolean("Intake", false);
Preferences.initBoolean("Climber", false);
Preferences.initBoolean("Shooter", false);
Expand Down Expand Up @@ -370,7 +371,7 @@ private void registerNamedCommands() {
NamedCommands.registerCommand("intakeOn", new InstantCommand(()-> intake.intakeYes(1)));
}
if(indexerExists&&shooterExists) {
NamedCommands.registerCommand("initialShot", new initialShot(shooter, indexer, 0.75, 0.5));
NamedCommands.registerCommand("initialShot", new initialShot(shooter, indexer, 2.0, 2.25));
NamedCommands.registerCommand("shootNote", new shootNote(indexer, 1));
NamedCommands.registerCommand("shootNote", new shootNote(indexer, 1));
NamedCommands.registerCommand("setFeedTrue", new InstantCommand(()->SmartDashboard.putBoolean("feedMotor", true)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ public initialShot(ShooterSubsystem shooter, IndexerSubsystem indexer, double re
// Called when the command is initially scheduled.
@Override
public void initialize() {
timer.reset();
timer.start();
indexer.off();
shooter.shootRPS(ShooterConstants.SHORT_SHOOTING_RPS);
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/settings/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public static final class ShooterConstants{
public static final double ALLOWED_ANGLE_ERROR = 1.5;
public static final double ALLOWED_SPEED_ERROR = 4;

public static final double CURRENT_LIMIT = 200; //amps the motor is limited to
public static final double CURRENT_LIMIT = 100; //amps the motor is limited to

public static final double AUTO_AIM_ROBOT_kP = 0.125;
public static final double AUTO_AIM_ROBOT_kI = 0.00;
Expand Down

0 comments on commit bf1fe48

Please sign in to comment.