Skip to content

Commit

Permalink
Enable on teleop-compressor
Browse files Browse the repository at this point in the history
  • Loading branch information
cyblazer committed Mar 22, 2024
1 parent 7bb58ef commit e91401d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ public void teleopInit() {
}

m_robotContainer.resetAllSubsystems();

m_robotContainer.compressorInit();
}

/** This function is called periodically during operator control. */
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,10 @@ public void resetAllSubsystems() {
m_robotDrive.reset();
}

public void compressorInit(){
m_climberSubsystem.toggleCompressor();
}

/**
* Use this to pass the autonomous command to the main {@link Robot} class.
*
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/frc/robot/subsystems/ClimberSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,11 @@ public class ClimberSubsystem extends SubsystemBase {
private Value m_state;

public ClimberSubsystem() {
m_compressorEnabled = false;
m_pHub = new PneumaticHub(2);

solenoidOff();

m_compressorEnabled = false;
toggleCompressor();
}

// Runs once every tick (~20ms)
Expand Down

0 comments on commit e91401d

Please sign in to comment.