Team2338 / FRC2023

Team 2338 Gear It Forward's code for our 2023 robot, Zephyr
Other
2 stars 1 forks source link
frc frc-charged-up frc-java frc-robot

2338 FRC 2023

logo

Code for Gear It Forward's 2023 robot, Zephyr.

General Information:


Collector

Our collector is made up of two elements - a pneumatic system to set the shape of the game piece carried and a set of wheels to quickly intake said game piece.

public class CollectorWheels {
    private static final DoubleSolenoid solenoid = new DoubleSolenoid( PneumaticsModuleType.REVPH, RobotMap.SOLENOID_COLLECTOR_FORWARD, RobotMap.SOLENOID_COLLECTOR_REVERSE);
    private DoubleSolenoid.Value state = DoubleSolenoid.Value.kForward;

    public void wheelsOut() {
            state = DoubleSolenoid.Value.kReverse;
            Robot.ledSubsystem.LEDWheelsOut();
    }

    public void wheelsIn() {
        state = DoubleSolenoid.Value.kForward;
        Robot.ledSubsystem.LEDWheelsIn();
    }
}

Primary Subsystems and Commands to reference: