1919import frc .robot .subsystems .MaxWheelModule ;
2020import frc .robot .subsystems .PivotSubsystem ;
2121import frc .robot .subsystems .ShooterSubsystem ;
22+
2223import com .kauailabs .navx .frc .AHRS ;
2324import com .revrobotics .CANSparkMax ;
2425import com .revrobotics .CANSparkBase .IdleMode ;
3435import edu .wpi .first .wpilibj .SPI ;
3536import edu .wpi .first .wpilibj2 .command .Command ;
3637import edu .wpi .first .wpilibj2 .command .InstantCommand ;
38+ import edu .wpi .first .wpilibj2 .command .PrintCommand ;
3739import edu .wpi .first .wpilibj2 .command .RunCommand ;
3840import edu .wpi .first .wpilibj2 .command .button .JoystickButton ;
3941
@@ -120,7 +122,7 @@ public class RobotContainer {
120122 private final AlignByAprilTag alignLeftOfSpeaker = new AlignByAprilTag (swerveDrive , limelight , odometry , -1.08 , -0.96 , 1 , 0.04 , 0.1 , -44 , -4 );
121123
122124 private final ChargeCommand chargeCommand ;
123-
125+
124126 SlewRateLimiter limitX = new SlewRateLimiter (6 );
125127 SlewRateLimiter limitY = new SlewRateLimiter (6 );
126128 //Limits shooter motor speed
@@ -134,7 +136,10 @@ public RobotContainer(RobotBase robot) {
134136
135137 CameraServer .startAutomaticCapture ();
136138
137- NamedCommands .registerCommand ("toggleFieldCentric" , swerveDrive .toggleFieldCentric ());
139+ NamedCommands .registerCommand ("print" , new PrintCommand ("print!" ));
140+ NamedCommands .registerCommand ("printRight2NoteRed" , new PrintCommand ("righ2notered path!" ));
141+ NamedCommands .registerCommand ("printLeft2Note" , new PrintCommand ("left2note path!" ));
142+
138143
139144 // Configure the trigger bindings
140145 configureBindings ();
0 commit comments