Skip to content

Commit 028fb61

Browse files
preped ground intake for initalization
1 parent 20388f8 commit 028fb61

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

src/main/java/frc/robot/RobotContainer.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@
3535
import frc.robot.subsystems.elevator.ElevatorIO;
3636
import frc.robot.subsystems.elevator.ElevatorIOReal;
3737
import frc.robot.subsystems.elevator.ElevatorIOSim;
38+
import frc.robot.subsystems.groundintake.GroundIntake;
39+
import frc.robot.subsystems.groundintake.GroundIntakeIO;
40+
import frc.robot.subsystems.groundintake.GroundIntakeIOReal;
41+
import frc.robot.subsystems.groundintake.GroundIntakeIOSim;
42+
3843
import org.littletonrobotics.junction.networktables.LoggedDashboardChooser;
3944

4045
/**
@@ -48,6 +53,7 @@ public class RobotContainer {
4853
private final Drive drive;
4954
private final Elevator elevator;
5055
private final Arm arm;
56+
private final GroundIntake groundIntake;
5157

5258
// Controller
5359
private final CommandXboxController controller = new CommandXboxController(0);
@@ -71,6 +77,8 @@ public RobotContainer() {
7177

7278
arm = new Arm(new ArmIOReal());
7379

80+
groundIntake = new GroundIntake(new GroundIntakeIOReal());
81+
7482
break;
7583

7684
case SIM:
@@ -86,6 +94,8 @@ public RobotContainer() {
8694

8795
arm = new Arm(new ArmIOSim());
8896

97+
groundIntake = new GroundIntake(new GroundIntakeIOSim());
98+
8999
break;
90100

91101
default:
Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
package frc.robot.subsystems.groundintake;
22

3-
public class GroundIntake {}
3+
import edu.wpi.first.wpilibj2.command.SubsystemBase;
4+
5+
public class GroundIntake extends SubsystemBase{
6+
private final GroundIntakeIO io;
7+
private final GroundIntakeIOInputsAutoLogged replayedInputs = new GroundIntakeIOInputsAutoLogged();
8+
9+
public GroundIntake(GroundIntakeIO io){
10+
this.io = io;
11+
}
12+
}

0 commit comments

Comments
 (0)