diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 0d6f6a2..250c43e 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -7,6 +7,8 @@ import edu.wpi.first.wpilibj2.command.Command; import edu.wpi.first.wpilibj2.command.button.CommandXboxController; import edu.wpi.first.wpilibj2.command.button.Trigger; +import frc.robot.commands.*; +import frc.robot.subsystems.*; /** * This class is where the bulk of the robot should be declared. Since Command-based is a @@ -16,6 +18,10 @@ */ public class RobotContainer { // The robot's subsystems and commands are defined here... + private static final RobotContainer m_robotContainer = new RobotContainer(); + + public final Drivetrain m_drivetrain = new Drivetrain(); + public final Pneumatics m_pneumatics = new Pneumatics(); // Replace with CommandPS4Controller or CommandJoystick if needed @@ -23,6 +29,10 @@ public class RobotContainer { public RobotContainer() { // Configure the trigger bindings configureBindings(); + + // Set default commands + m_drivetrain.setDefaultCommand(new Drive(m_drivetrain)); + m_pneumatics.setDefaultCommand(new PistonControl(m_pneumatics)); } /**