mirror of
https://github.com/Team4388/2026KPopRobotHunters.git
synced 2026-06-09 00:38:03 -06:00
Merge branch 'reveal-night' into shikhar-op-controls
This commit is contained in:
@@ -96,7 +96,7 @@ public class RobotContainer {
|
||||
private Command autoCommand;
|
||||
|
||||
|
||||
private Command RobotIntakeExtended = new SequentialCommandGroup(
|
||||
private Command IntakeExtended = new SequentialCommandGroup(
|
||||
new InstantCommand(() -> m_robotIntake.setMode(IntakeMode.Extended), m_robotIntake)
|
||||
);
|
||||
|
||||
@@ -162,7 +162,8 @@ public class RobotContainer {
|
||||
NamedCommands.registerCommand("Robot Intake Retracted", RobotIntakeRetracted);
|
||||
NamedCommands.registerCommand("Robot Shoot", RobotShoot);
|
||||
// NamedCommands.registerCommand("Lidar Intake", LidarIntake);
|
||||
NamedCommands.registerCommand("Robot Intake Extended", RobotIntakeExtended);
|
||||
NamedCommands.registerCommand("Intake Extended", IntakeExtended);
|
||||
|
||||
|
||||
DriverStation.silenceJoystickConnectionWarning(true);
|
||||
|
||||
|
||||
@@ -344,7 +344,12 @@ public class SwerveDrive extends SubsystemBase implements Queryable {
|
||||
|
||||
Rotation2d heading = new Rotation2d(rightStick.getX(), rightStick.getY());//.r otateBy(Rotation2d.fromDegrees(90));
|
||||
|
||||
heading = heading.rotateBy(Rotation2d.fromDegrees(-90));
|
||||
if(TimesNegativeOne.isRed) {
|
||||
heading = heading.rotateBy(Rotation2d.fromDegrees(-90));
|
||||
} else {
|
||||
heading = heading.rotateBy(Rotation2d.fromDegrees(90));
|
||||
}
|
||||
|
||||
rotTarget = heading.getDegrees();
|
||||
|
||||
driveFieldAngle(leftStick, heading);
|
||||
|
||||
Reference in New Issue
Block a user