Skip to content

Commit

Permalink
Forgot subsystem linking in the robotcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettsummerfi3ld committed Oct 6, 2023
1 parent c8cc656 commit 321d4ae
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -16,13 +18,21 @@
*/
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

/** The container for the robot. Contains subsystems, OI devices, and commands. */
public RobotContainer() {
// Configure the trigger bindings
configureBindings();

// Set default commands
m_drivetrain.setDefaultCommand(new Drive(m_drivetrain));
m_pneumatics.setDefaultCommand(new PistonControl(m_pneumatics));
}

/**
Expand Down

0 comments on commit 321d4ae

Please sign in to comment.