Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into addressable-rgb
Browse files Browse the repository at this point in the history
  • Loading branch information
quackitsquinn committed Mar 27, 2024
2 parents 19d8c2d + 01e0889 commit 0364287
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,15 @@ public void robotPeriodic() {
@Override
public void disabledInit() {
CommandScheduler.getInstance().schedule(RobotContainer.disabledLights);
RobotContainer.mailboxPneumatics.off();
}

@Override
public void disabledPeriodic() {}

@Override
public void disabledExit() {
RobotContainer.disabledLights.cancel();
RobotContainer.mailboxPneumatics.retract();
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ public RobotContainer() {

startIntakeCamera.schedule();

drive.setDefaultCommand(driveFieldOriented);
drive.setDefaultCommand(driveFieldOrientedHeadingSnapping);
robotUnderglow.setDefaultCommand(enabledLights);
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/subsystems/Drive.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public Drive() {
/* HolonomicPathFollowerConfig, this should likely live in your Constants class */
Constants.Drive.TRANSLATION_DRIVE_PID, /* Translation PID constants */
Constants.Drive.ROTATION_DRIVE_PID, /* Rotation PID constants */
Constants.Drive.MAX_SPEED, /* Max module speed, in m/s */
getMaximumSpeed(), /* Max module speed, in m/s */
Constants.Drive
.DISTANCE_ROBOT_CENTER_TO_SWERVE_MODULE, /* Drive base radius in meters. Distance from robot center to furthest module. */
new ReplanningConfig() /* Default path replanning config. See the API for the options here */),
Expand Down Expand Up @@ -168,7 +168,7 @@ public ChassisSpeeds getTargetSpeeds(
headingX,
headingY,
drive.getPose().getRotation().getRadians(),
Constants.Drive.MAX_SPEED);
getMaximumSpeed());
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/subsystems/Intake.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public Intake() {
intakeLower.burnFlash();
intakeUpper.burnFlash();

Shuffleboard.getTab("Driver").add("Note in intake", false).getEntry();
noteIsInIntake = Shuffleboard.getTab("Driver").add("Note in intake", false).getEntry();
}

/** Runs the intake motors. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ public void retract() {
rightPiston.set(DoubleSolenoid.Value.kReverse);
}

/** Sets pistons to off */
public void off() {
leftPiston.set(DoubleSolenoid.Value.kOff);
rightPiston.set(DoubleSolenoid.Value.kOff);
}

@Override
public void periodic() {
// This method will be called once per scheduler run
Expand Down

0 comments on commit 0364287

Please sign in to comment.