Add autos

This commit is contained in:
Shikhar
2026-02-27 19:37:21 -07:00
parent 73b7160205
commit 836a98815a
17 changed files with 521 additions and 80 deletions
@@ -95,7 +95,7 @@ public class RobotContainer {
private Command autoCommand;
private Command RobotIntakeDown = new SequentialCommandGroup(
private Command IntakeExtended = new SequentialCommandGroup(
new InstantCommand(() -> m_robotIntake.setMode(IntakeMode.Extended), m_robotIntake)
);
@@ -162,7 +162,7 @@ public class RobotContainer {
NamedCommands.registerCommand("Intake Retracted", IntakeRetracted);
NamedCommands.registerCommand("Robot Shoot", RobotShoot);
// NamedCommands.registerCommand("Lidar Intake", LidarIntake);
NamedCommands.registerCommand("Robot Intake Down", RobotIntakeDown);
NamedCommands.registerCommand("Intake Extended", IntakeExtended);
DriverStation.silenceJoystickConnectionWarning(true);
@@ -5,15 +5,15 @@ package frc4388.robot.constants;
*/
public final class BuildConstants {
public static final String MAVEN_GROUP = "";
public static final String MAVEN_NAME = "2026KPopRobotHunters-new";
public static final String MAVEN_NAME = "2026KPopRobotHunters";
public static final String VERSION = "unspecified";
public static final int GIT_REVISION = 106;
public static final String GIT_SHA = "1c27b1ec8090b8d6e78af857c2aa7592b6f36e2b";
public static final String GIT_DATE = "2026-02-26 15:15:12 MST";
public static final int GIT_REVISION = 108;
public static final String GIT_SHA = "73b71602059bb3ce9a4d963cd05d0c394f47bf60";
public static final String GIT_DATE = "2026-02-26 15:21:14 MST";
public static final String GIT_BRANCH = "reveal-night";
public static final String BUILD_DATE = "2026-02-26 15:16:04 MST";
public static final long BUILD_UNIX_TIME = 1772144164051L;
public static final int DIRTY = 0;
public static final String BUILD_DATE = "2026-02-26 17:12:38 MST";
public static final long BUILD_UNIX_TIME = 1772151158427L;
public static final int DIRTY = 1;
private BuildConstants(){}
}
@@ -22,7 +22,7 @@ public class ShooterConstants {
public static final ConfigurableDouble SHOOTER_FEED_VELOCITY = new ConfigurableDouble("Shooter Feed Velocity", -35);
// public static final ConfigurableDouble SHOOTER_RESTING_VELOCITY = new ConfigurableDouble("Shooter Resting Velocity", 0.0);
public static final ConfigurableDouble SHOOTER_IDLE_PERCENT_OUTPUT = new ConfigurableDouble("Shooter idle % output", 0.3);
public static final ConfigurableDouble SHOOTER_IDLE_PERCENT_OUTPUT = new ConfigurableDouble("Shooter idle % output", -0.3);
// public static final ConfigurableDouble SHOOTER_IDLE_TARGET_VEL = new ConfigurableDouble("Shooter idle target velocity", 20.);
// public static final ConfigurableDouble SHOOTER_IDLE_MAX_CURRENT = new ConfigurableDouble("Shooter Idle max current", 10);
@@ -343,7 +343,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);