mirror of
https://github.com/Team4388/2026KPopRobotHunters.git
synced 2026-06-09 00:38:03 -06:00
fix auto issue
This commit is contained in:
+14
-34
@@ -52,7 +52,19 @@
|
|||||||
{
|
{
|
||||||
"type": "wait",
|
"type": "wait",
|
||||||
"data": {
|
"data": {
|
||||||
"waitTime": 4.35
|
"waitTime": 1.5
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "named",
|
||||||
|
"data": {
|
||||||
|
"name": "Labubu Growl"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wait",
|
||||||
|
"data": {
|
||||||
|
"waitTime": 2.8499999999999996
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -61,38 +73,6 @@
|
|||||||
"name": "Robot Rev Up"
|
"name": "Robot Rev Up"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"type": "wait",
|
|
||||||
"data": {
|
|
||||||
"waitTime": 1.5
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "parallel",
|
|
||||||
"data": {
|
|
||||||
"commands": [
|
|
||||||
{
|
|
||||||
"type": "named",
|
|
||||||
"data": {
|
|
||||||
"name": "Robot Shoot Driving"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "named",
|
|
||||||
"data": {
|
|
||||||
"name": "Robot Shoot"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "sequential",
|
|
||||||
"data": {
|
|
||||||
"commands": [
|
|
||||||
{
|
{
|
||||||
"type": "wait",
|
"type": "wait",
|
||||||
"data": {
|
"data": {
|
||||||
@@ -102,7 +82,7 @@
|
|||||||
{
|
{
|
||||||
"type": "named",
|
"type": "named",
|
||||||
"data": {
|
"data": {
|
||||||
"name": "Labubu Growl"
|
"name": "Robot Shoot"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
+14
-34
@@ -33,7 +33,19 @@
|
|||||||
{
|
{
|
||||||
"type": "wait",
|
"type": "wait",
|
||||||
"data": {
|
"data": {
|
||||||
"waitTime": 13.1
|
"waitTime": 1.5
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "named",
|
||||||
|
"data": {
|
||||||
|
"name": "Labubu Growl"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "wait",
|
||||||
|
"data": {
|
||||||
|
"waitTime": 11.6
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -42,38 +54,6 @@
|
|||||||
"name": "Robot Rev Up"
|
"name": "Robot Rev Up"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"type": "wait",
|
|
||||||
"data": {
|
|
||||||
"waitTime": 1.5
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "parallel",
|
|
||||||
"data": {
|
|
||||||
"commands": [
|
|
||||||
{
|
|
||||||
"type": "named",
|
|
||||||
"data": {
|
|
||||||
"name": "Robot Shoot Driving"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "named",
|
|
||||||
"data": {
|
|
||||||
"name": "Robot Shoot"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "sequential",
|
|
||||||
"data": {
|
|
||||||
"commands": [
|
|
||||||
{
|
{
|
||||||
"type": "wait",
|
"type": "wait",
|
||||||
"data": {
|
"data": {
|
||||||
@@ -83,7 +63,7 @@
|
|||||||
{
|
{
|
||||||
"type": "named",
|
"type": "named",
|
||||||
"data": {
|
"data": {
|
||||||
"name": "Labubu Growl"
|
"name": "Robot Shoot"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -140,7 +140,6 @@ public class RobotContainer {
|
|||||||
new InstantCommand(() -> m_robotShooter.spinUpShooting(), m_robotShooter),
|
new InstantCommand(() -> m_robotShooter.spinUpShooting(), m_robotShooter),
|
||||||
IntakeExtended,
|
IntakeExtended,
|
||||||
new InstantCommand(() -> m_robotIntake.setMode(IntakeMode.ExpelBalls), m_robotIntake)
|
new InstantCommand(() -> m_robotIntake.setMode(IntakeMode.ExpelBalls), m_robotIntake)
|
||||||
// new InstantCommand(() -> m_robotIntake.setMode(IntakeMode.Idle), m_robotIntake)
|
|
||||||
);
|
);
|
||||||
|
|
||||||
private Command WaitIntakeReference =
|
private Command WaitIntakeReference =
|
||||||
@@ -607,7 +606,7 @@ public class RobotContainer {
|
|||||||
public boolean autoChooserUpdated = false;
|
public boolean autoChooserUpdated = false;
|
||||||
public void makeAutoChooser() {
|
public void makeAutoChooser() {
|
||||||
autoChooser = new SendableChooser<String>();
|
autoChooser = new SendableChooser<String>();
|
||||||
|
autoChooser.setDefaultOption("None", "None");
|
||||||
File dir;
|
File dir;
|
||||||
|
|
||||||
if(RobotBase.isReal()) {
|
if(RobotBase.isReal()) {
|
||||||
@@ -630,6 +629,10 @@ public class RobotContainer {
|
|||||||
|
|
||||||
autoChooser.onChange((filename) -> {
|
autoChooser.onChange((filename) -> {
|
||||||
autoChooserUpdated = true;
|
autoChooserUpdated = true;
|
||||||
|
if (filename == null || filename.equals("None")) {
|
||||||
|
autoCommand = null;
|
||||||
|
return;
|
||||||
|
}
|
||||||
// if (filename.equals("Taxi%")) {
|
// if (filename.equals("Taxi%")) {
|
||||||
// autoCommand = new SequentialCommandGroup(
|
// autoCommand = new SequentialCommandGroup(
|
||||||
// new MoveForTimeCommand(m_robotSwerveDrive,
|
// new MoveForTimeCommand(m_robotSwerveDrive,
|
||||||
|
|||||||
@@ -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 = 221;
|
public static final int GIT_REVISION = 222;
|
||||||
public static final String GIT_SHA = "1636a054ed1e688234fe329b76f567d6af08081f";
|
public static final String GIT_SHA = "118dcee1c7dca32d23fa40f275d9ba433046fcf4";
|
||||||
public static final String GIT_DATE = "2026-04-06 22:44:17 MDT";
|
public static final String GIT_DATE = "2026-04-07 20:37:26 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-07 20:27:10 MDT";
|
public static final String BUILD_DATE = "2026-04-07 22:44:56 MDT";
|
||||||
public static final long BUILD_UNIX_TIME = 1775615230294L;
|
public static final long BUILD_UNIX_TIME = 1775623496023L;
|
||||||
public static final int DIRTY = 1;
|
public static final int DIRTY = 1;
|
||||||
|
|
||||||
private BuildConstants(){}
|
private BuildConstants(){}
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ public class Intake extends SubsystemBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean intakeAtReference() {
|
public boolean intakeAtReference() {
|
||||||
return state.extendedSoftLimit;
|
return true;//state.extendedSoftLimit;
|
||||||
}
|
}
|
||||||
|
|
||||||
public double getRollerSpeed() {
|
public double getRollerSpeed() {
|
||||||
|
|||||||
Reference in New Issue
Block a user