Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/feature-pneumatics' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacThoman committed Feb 20, 2024
2 parents 6ed6b01 + 71b4e94 commit a0b70c4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main/java/frc/robot/subsystems/ClimbSubsystem.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import com.revrobotics.SparkPIDController;
import edu.wpi.first.math.util.Units;
import edu.wpi.first.networktables.NetworkTableInstance;
import edu.wpi.first.wpilibj.PneumaticsModuleType;
import edu.wpi.first.wpilibj.Solenoid;
import edu.wpi.first.wpilibj2.command.SubsystemBase;
import frc.robot.Robot;
import frc.robot.StateControllerSub;
Expand Down Expand Up @@ -58,6 +60,7 @@ public ClimbSubsystem(StateControllerSub stateControllerSub) {
climbFollower.burnFlash();
}

private final Solenoid m_solenoid = new Solenoid(PneumaticsModuleType.REVPH, 0);


double setpointMeters = 0.0;//bottom
Expand Down Expand Up @@ -112,10 +115,10 @@ public double getClawPosition(){
}

void extendPneumatic(){
//TODO: make arm go to stowed position
m_solenoid.set(true);
}
void retractPneumatic(){
//TODO: make arm go to ready position
m_solenoid.set( false);
}

void extendClaw(){
Expand Down

0 comments on commit a0b70c4

Please sign in to comment.