From 321d4aedb15fa26030d9adb685da8a7d728d2c92 Mon Sep 17 00:00:00 2001 From: Garrett Summerfield Date: Thu, 5 Oct 2023 22:15:52 -0500 Subject: [PATCH] Forgot subsystem linking in the robotcontainer --- src/main/java/frc/robot/RobotContainer.java | 10 ++++++++++ 1 file changed, 10 insertions(+) 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)); } /**