Revert "Lunch Break"

This reverts commit 3d28ae4798.
This commit is contained in:
Shikhar
2026-04-10 13:11:09 -06:00
parent 7e633f6229
commit ed545b4b83
8 changed files with 36 additions and 55 deletions
@@ -45,7 +45,7 @@
{ {
"type": "wait", "type": "wait",
"data": { "data": {
"waitTime": 5.75 "waitTime": 5.0
} }
}, },
{ {
@@ -71,6 +71,12 @@
} }
] ]
} }
},
{
"type": "named",
"data": {
"name": "Intake Extended"
}
} }
] ]
} }
@@ -45,7 +45,7 @@
{ {
"type": "wait", "type": "wait",
"data": { "data": {
"waitTime": 4.2 "waitTime": 4.5
} }
}, },
{ {
@@ -48,16 +48,16 @@
}, },
{ {
"anchor": { "anchor": {
"x": 7.460178571428572, "x": 6.402011904761906,
"y": 7.198702380952382 "y": 6.561642857142857
}, },
"prevControl": { "prevControl": {
"x": 7.7595083586189455, "x": 6.45205334133696,
"y": 6.899372593762008 "y": 6.141294789912411
}, },
"nextControl": { "nextControl": {
"x": 7.125452380952383, "x": 6.240047619047619,
"y": 7.533428571428571 "y": 7.922142857142857
}, },
"isLocked": false, "isLocked": false,
"linkedName": null "linkedName": null
@@ -80,12 +80,12 @@
}, },
{ {
"anchor": { "anchor": {
"x": 3.076345238095239, "x": 2.61204761904762,
"y": 6.658821428571429 "y": 6.216119047619048
}, },
"prevControl": { "prevControl": {
"x": 3.346285714285715, "x": 3.0007619047619056,
"y": 6.939559523809524 "y": 6.4644642857142856
}, },
"nextControl": null, "nextControl": null,
"isLocked": false, "isLocked": false,
@@ -99,20 +99,7 @@
"minWaypointRelativePos": 1.275434243176181, "minWaypointRelativePos": 1.275434243176181,
"maxWaypointRelativePos": 1.8709677419354975, "maxWaypointRelativePos": 1.8709677419354975,
"constraints": { "constraints": {
"maxVelocity": 0.9, "maxVelocity": 1.2,
"maxAcceleration": 3.0,
"maxAngularVelocity": 600.0,
"maxAngularAcceleration": 750.0,
"nominalVoltage": 12.0,
"unlimited": false
}
},
{
"name": "Constraints Zone",
"minWaypointRelativePos": 2.133693450371388,
"maxWaypointRelativePos": 5.0,
"constraints": {
"maxVelocity": 3.0,
"maxAcceleration": 3.0, "maxAcceleration": 3.0,
"maxAngularVelocity": 600.0, "maxAngularVelocity": 600.0,
"maxAngularAcceleration": 750.0, "maxAngularAcceleration": 750.0,
@@ -129,7 +116,7 @@
}, },
"rotationOffset": 0.0, "rotationOffset": 0.0,
"minWaypointRelativePos": 1.3067552602436252, "minWaypointRelativePos": 1.3067552602436252,
"maxWaypointRelativePos": 2.635235732009895, "maxWaypointRelativePos": 2.0198511166253303,
"name": "Point Towards Zone" "name": "Point Towards Zone"
}, },
{ {
@@ -174,7 +161,7 @@
}, },
"goalEndState": { "goalEndState": {
"velocity": 0.0, "velocity": 0.0,
"rotation": 119.0 "rotation": 133.0
}, },
"reversed": false, "reversed": false,
"folder": null, "folder": null,
@@ -96,10 +96,10 @@
"constraintZones": [ "constraintZones": [
{ {
"name": "Constraints Zone", "name": "Constraints Zone",
"minWaypointRelativePos": 1.1761786600496387, "minWaypointRelativePos": 1.255583126550872,
"maxWaypointRelativePos": 1.7617866004962806, "maxWaypointRelativePos": 1.7617866004962806,
"constraints": { "constraints": {
"maxVelocity": 1.0, "maxVelocity": 1.2,
"maxAcceleration": 3.0, "maxAcceleration": 3.0,
"maxAngularVelocity": 600.0, "maxAngularVelocity": 600.0,
"maxAngularAcceleration": 750.0, "maxAngularAcceleration": 750.0,
+3 -3
View File
@@ -158,10 +158,10 @@ public class Robot extends LoggedRobot {
public void teleopPeriodic() { public void teleopPeriodic() {
var info = HubShiftTimer.getShiftInfo(); var info = HubShiftTimer.getShiftInfo();
double rumble = (info.remainingInShift() < 5. && info.remainingInShift() > 3.9) ? 1 : 0; double rumble = (info.remainingInShift() < 5. && info.remainingInShift() > 0.1) ? 1 : 0;
m_robotContainer.getDeadbandedDriverController().setRumble(RumbleType.kBothRumble, rumble); // m_robotContainer.getDeadbandedDriverController().setRumble(RumbleType.kBothRumble, rumble);
m_robotContainer.getDeadbandedOperatorController().setRumble(RumbleType.kBothRumble, rumble); // m_robotContainer.getDeadbandedOperatorController().setRumble(RumbleType.kBothRumble, rumble);
} }
/** /**
@@ -157,26 +157,15 @@ public class RobotContainer {
new InstantCommand(() -> m_robotIntake.setMode(IntakeMode.RectractTorque), m_robotIntake) new InstantCommand(() -> m_robotIntake.setMode(IntakeMode.RectractTorque), m_robotIntake)
); );
private Command RobotHalfShoot = new SequentialCommandGroup( private Command RobotShoot = new SequentialCommandGroup(
new WaitUntilCommand(m_robotShooter::isShooterUpToSpeed),
new InstantCommand(() -> m_robotIntake.setMode(IntakeMode.Idle), m_robotIntake),
new InstantCommand(()-> m_robotShooter.allowShooting(), m_robotShooter),
new WaitCommand(2.0),
new InstantCommand(() -> m_robotShooter.denyShooting(), m_robotShooter),
new InstantCommand(()->m_robotShooter.spinUpIdle(), m_robotShooter)
);
private Command RobotFullShoot = new SequentialCommandGroup(
// TEST NEW AUTO ALIGN // TEST NEW AUTO ALIGN
//new AutoAlign(m_robotSwerveDrive, m_vision, new Pose2d(FieldPositions.HUB_POSITION, new Rotation2d(0)), false), //new AutoAlign(m_robotSwerveDrive, m_vision, new Pose2d(FieldPositions.HUB_POSITION, new Rotation2d(0)), false),
new WaitUntilCommand(m_robotShooter::isShooterUpToSpeed), new WaitUntilCommand(m_robotShooter::isShooterUpToSpeed),
new InstantCommand(() -> m_robotIntake.setMode(IntakeMode.Idle), m_robotIntake), new InstantCommand(() -> m_robotIntake.setMode(IntakeMode.Idle), m_robotIntake),
new InstantCommand(()-> m_robotShooter.allowShooting(), m_robotShooter), new InstantCommand(()-> m_robotShooter.allowShooting(), m_robotShooter),
new WaitCommand(2.5), new WaitCommand(2.75),
// new WaitCommand(2.25),
IntakeRetracted, IntakeRetracted,
new WaitCommand(5), new WaitCommand(4.4),
// new WaitCommand(4.25),
new InstantCommand(() -> m_robotShooter.denyShooting(), m_robotShooter), new InstantCommand(() -> m_robotShooter.denyShooting(), m_robotShooter),
new InstantCommand(()->m_robotShooter.spinUpIdle(), m_robotShooter) new InstantCommand(()->m_robotShooter.spinUpIdle(), m_robotShooter)
); );
@@ -203,8 +192,7 @@ public class RobotContainer {
NamedCommands.registerCommand("Robot Rev Up", RobotRev); NamedCommands.registerCommand("Robot Rev Up", RobotRev);
NamedCommands.registerCommand("Intake Retracted", IntakeRetracted); NamedCommands.registerCommand("Intake Retracted", IntakeRetracted);
NamedCommands.registerCommand("Robot Shoot", RobotFullShoot); NamedCommands.registerCommand("Robot Shoot", RobotShoot);
NamedCommands.registerCommand("Robot Half Shot", RobotHalfShoot);
// NamedCommands.registerCommand("Lidar Intake", LidarIntake); // NamedCommands.registerCommand("Lidar Intake", LidarIntake);
NamedCommands.registerCommand("Intake Extended", IntakeExtended); NamedCommands.registerCommand("Intake Extended", IntakeExtended);
NamedCommands.registerCommand("Labubu Growl", LabubuGrowl); NamedCommands.registerCommand("Labubu Growl", LabubuGrowl);
@@ -7,12 +7,12 @@ public final class BuildConstants {
public static final String MAVEN_GROUP = ""; public static final String MAVEN_GROUP = "";
public static final String MAVEN_NAME = "2026KPopRobotHunters"; public static final String MAVEN_NAME = "2026KPopRobotHunters";
public static final String VERSION = "unspecified"; public static final String VERSION = "unspecified";
public static final int GIT_REVISION = 230; public static final int GIT_REVISION = 229;
public static final String GIT_SHA = "aabcc8d5dec5feecce98773c55866b7b9f054b88"; public static final String GIT_SHA = "fa0342a67239f145f381f48ba48e506cdb03026f";
public static final String GIT_DATE = "2026-04-09 18:19:58 MDT"; public static final String GIT_DATE = "2026-04-09 12:40:33 MDT";
public static final String GIT_BRANCH = "New-Intake"; public static final String GIT_BRANCH = "New-Intake";
public static final String BUILD_DATE = "2026-04-10 10:42:35 MDT"; public static final String BUILD_DATE = "2026-04-09 17:42:53 MDT";
public static final long BUILD_UNIX_TIME = 1775839355397L; public static final long BUILD_UNIX_TIME = 1775778173177L;
public static final int DIRTY = 1; public static final int DIRTY = 1;
private BuildConstants(){} private BuildConstants(){}
@@ -26,7 +26,7 @@ public class ShooterConstants {
// public static final ConfigurableDouble SHOOTER_RESTING_VELOCITY = new ConfigurableDouble("Shooter Resting Velocity", 0.0); // 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.1); public static final ConfigurableDouble SHOOTER_IDLE_PERCENT_OUTPUT = new ConfigurableDouble("Shooter idle % output", -0.15);
// public static final ConfigurableDouble SHOOTER_IDLE_TARGET_VEL = new ConfigurableDouble("Shooter idle target velocity", 20.); // 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); // public static final ConfigurableDouble SHOOTER_IDLE_MAX_CURRENT = new ConfigurableDouble("Shooter Idle max current", 10);