5
5
6
6
package frc .robot ;
7
7
8
- import edu .wpi .first .math .geometry .Pose2d ;
9
- import edu .wpi .first .math .geometry .Rotation2d ;
10
8
import edu .wpi .first .wpilibj .DigitalInput ;
11
9
import edu .wpi .first .wpilibj .DriverStation ;
12
- import edu .wpi .first .wpilibj .Timer ;
13
10
import edu .wpi .first .wpilibj .smartdashboard .SendableChooser ;
14
11
import edu .wpi .first .wpilibj .smartdashboard .SmartDashboard ;
15
12
import edu .wpi .first .wpilibj2 .command .Command ;
19
16
import frc .robot .Constants .GamePieceMode ;
20
17
import frc .robot .Constants .Position ;
21
18
import frc .robot .subsystems .arm .ArmSubsystem ;
22
- import frc .robot .subsystems .arm .ArmSubsystem .ActiveArmSide ;
23
19
import frc .robot .subsystems .arm .ArmSubsystem .ArmPosition ;
20
+ import frc .robot .subsystems .arm .pivot .PivotIO ;
21
+ import frc .robot .subsystems .arm .pivot .PivotIOFalcon ;
22
+ import frc .robot .subsystems .arm .telescope .TelescopeIO ;
23
+ import frc .robot .subsystems .arm .telescope .TelescopeIOFalcon ;
24
+ import frc .robot .subsystems .arm .wrist .WristIO ;
25
+ import frc .robot .subsystems .arm .wrist .WristIOFalcon ;
24
26
import frc .robot .subsystems .IntakeSubsystem ;
25
27
import frc .robot .subsystems .LEDManager ;
26
28
// import frc.robot.subsystems.drive.Drive;
32
34
public class RobotContainer {
33
35
34
36
// private final Drive drive = new Drive();
35
- private final ArmSubsystem arm = new ArmSubsystem () ;
36
- private final IntakeSubsystem intake = new IntakeSubsystem (() -> arm . getArmSide ()) ;
37
+ private final ArmSubsystem arm ;
38
+ private final IntakeSubsystem intake ;
37
39
@ SuppressWarnings ("unused" )
38
40
private final Vision vision = new Vision ();
39
- private final LEDManager ledManager = new LEDManager (() -> arm . getArmSide ()) ;
41
+ private final LEDManager ledManager ;
40
42
41
43
private final Thrustmaster leftStick = new Thrustmaster (0 );
42
44
private final Thrustmaster rightStick = new Thrustmaster (1 );
@@ -51,6 +53,22 @@ public class RobotContainer {
51
53
52
54
/** The container for the robot. Contains subsystems, OI devices, and commands. */
53
55
public RobotContainer () {
56
+ switch (Constants .mode ) {
57
+ case REAL :
58
+ arm = new ArmSubsystem (
59
+ new PivotIOFalcon (),
60
+ new TelescopeIOFalcon (),
61
+ new WristIOFalcon ());
62
+ break ;
63
+ default :
64
+ arm = new ArmSubsystem (
65
+ new PivotIO () {},
66
+ new TelescopeIO () {},
67
+ new WristIO () {});
68
+ }
69
+
70
+ intake = new IntakeSubsystem (arm ::getArmSide );
71
+ ledManager = new LEDManager (arm ::getArmSide );
54
72
55
73
configureSubsystems ();
56
74
configureCompBindings ();
0 commit comments