Skip to content

Commit

Permalink
Merge branch 'pneumatics' of https://github.com/RoboLoCo-5338/Kit-Bot
Browse files Browse the repository at this point in the history
…into pneumatics
  • Loading branch information
team5338 committed Dec 5, 2024
2 parents 8e56b7f + b39523f commit 426d1dd
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
3 changes: 0 additions & 3 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,10 @@

package frc.robot;

import edu.wpi.first.wpilibj.DoubleSolenoid;
import edu.wpi.first.wpilibj.PneumaticsModuleType;
import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.RunCommand;
import edu.wpi.first.wpilibj2.command.button.CommandXboxController;
import frc.robot.Constants.OperatorConstants;
import frc.robot.Constants.PneumaticConstants;
import frc.robot.subsystems.CANDrivetrain;
import frc.robot.subsystems.Pneumatics;
import frc.robot.commands.Auto;
Expand Down
19 changes: 19 additions & 0 deletions src/main/java/frc/robot/subsystems/Auto.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package frc.robot.subsystems;

import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.InstantCommand;
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup;
import edu.wpi.first.wpilibj2.command.WaitCommand;
import frc.robot.RobotContainer;
import frc.robot.commands.PneumaticCommands;

public class Auto {
public static Command getAuto(RobotContainer robot) {

return new SequentialCommandGroup( // basic auto to leave zone.
PneumaticCommands.pistonExtend(), new WaitCommand(2),
new InstantCommand(() -> RobotContainer.m_drivetrain.tankDrive(-0.5, -0.5)),
PneumaticCommands.pistonRetract(), new WaitCommand(2),
new InstantCommand(() -> RobotContainer.m_drivetrain.tankDrive(0, 0)));
}
}
1 change: 0 additions & 1 deletion src/main/java/frc/robot/subsystems/Pneumatics.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import edu.wpi.first.wpilibj.DoubleSolenoid;
import edu.wpi.first.wpilibj.PneumaticsModuleType;
import frc.robot.Constants.PneumaticConstants;
import frc.robot.RobotContainer;
import edu.wpi.first.wpilibj2.command.SubsystemBase;

public class Pneumatics extends SubsystemBase {
Expand Down

0 comments on commit 426d1dd

Please sign in to comment.