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 6, 2024
2 parents 5d51598 + 0a77ac5 commit 33ce823
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
11 changes: 4 additions & 7 deletions src/main/java/frc/robot/commands/Auto.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import edu.wpi.first.wpilibj2.command.SequentialCommandGroup;
import edu.wpi.first.wpilibj2.command.WaitCommand;
import frc.robot.RobotContainer;
import frc.robot.subsystems.CANDrivetrain;

// import frc.robot.subsystems.CANDrivetrain;

Expand All @@ -15,12 +14,10 @@ public final class Auto {
public static Command exampleAuto() {
/**
* RunCommand is a helper class that creates a command from a single method, in
* this case we
* pass it the arcadeDrive method to drive straight back at half power. We
* modify that command
* with the .withTimeout(1) decorator to timeout after 1 second, and use the
* .andThen decorator
* to stop the drivetrain after the first command times out
* this case we pass it the arcadeDrive method to drive straight back at half
* power. We modify that command with the .withTimeout(1) decorator to timeout
* after 1 second, and use the .andThen decorator to stop the drivetrain after
* the first command times out
*/
return new SequentialCommandGroup(
PneumaticCommands.pistonExtend(), new WaitCommand(2),
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/commands/PneumaticCommands.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ public static Command solenoidToggle() {
return new InstantCommand(() -> RobotContainer.m_piston.toggleSolenoid());
}

public class pistonExtend {
}
public class pistonExtend {
}
}

0 comments on commit 33ce823

Please sign in to comment.