--- /dev/null
+{
+ "version": "2025.0",
+ "command": {
+ "type": "sequential",
+ "data": {
+ "commands": [
+ {
+ "type": "named",
+ "data": {
+ "name": "Hood Down"
+ }
+ },
+ {
+ "type": "named",
+ "data": {
+ "name": "Stop Spindexer"
+ }
+ },
+ {
+ "type": "path",
+ "data": {
+ "pathName": "Center Drop Back Path"
+ }
+ },
+ {
+ "type": "named",
+ "data": {
+ "name": "Stop Hood Down"
+ }
+ },
+ {
+ "type": "named",
+ "data": {
+ "name": "Extend Intake"
+ }
+ },
+ {
+ "type": "named",
+ "data": {
+ "name": "Start Spindexer"
+ }
+ }
+ ]
+ }
+ },
+ "resetOdom": true,
+ "folder": null,
+ "choreoAuto": false
+}
\ No newline at end of file
--- /dev/null
+{
+ "version": "2025.0",
+ "command": {
+ "type": "sequential",
+ "data": {
+ "commands": [
+ {
+ "type": "named",
+ "data": {
+ "name": "Hood Down"
+ }
+ },
+ {
+ "type": "named",
+ "data": {
+ "name": "Stop Spindexer"
+ }
+ },
+ {
+ "type": "path",
+ "data": {
+ "pathName": "Left Drop Back Path"
+ }
+ },
+ {
+ "type": "named",
+ "data": {
+ "name": "Stop Hood Down"
+ }
+ },
+ {
+ "type": "named",
+ "data": {
+ "name": "Extend Intake"
+ }
+ },
+ {
+ "type": "named",
+ "data": {
+ "name": "Start Spindexer"
+ }
+ }
+ ]
+ }
+ },
+ "resetOdom": true,
+ "folder": null,
+ "choreoAuto": false
+}
\ No newline at end of file
--- /dev/null
+{
+ "version": "2025.0",
+ "command": {
+ "type": "sequential",
+ "data": {
+ "commands": [
+ {
+ "type": "path",
+ "data": {
+ "pathName": "Left Swipe1"
+ }
+ }
+ ]
+ }
+ },
+ "resetOdom": true,
+ "folder": null,
+ "choreoAuto": false
+}
\ No newline at end of file
--- /dev/null
+{
+ "version": "2025.0",
+ "command": {
+ "type": "sequential",
+ "data": {
+ "commands": [
+ {
+ "type": "path",
+ "data": {
+ "pathName": "Left Swipe2"
+ }
+ }
+ ]
+ }
+ },
+ "resetOdom": true,
+ "folder": null,
+ "choreoAuto": false
+}
\ No newline at end of file
--- /dev/null
+{
+ "version": "2025.0",
+ "command": {
+ "type": "sequential",
+ "data": {
+ "commands": [
+ {
+ "type": "named",
+ "data": {
+ "name": "Stop Hood Down"
+ }
+ },
+ {
+ "type": "named",
+ "data": {
+ "name": null
+ }
+ }
+ ]
+ }
+ },
+ "resetOdom": true,
+ "folder": null,
+ "choreoAuto": false
+}
\ No newline at end of file
--- /dev/null
+{
+ "version": "2025.0",
+ "command": {
+ "type": "sequential",
+ "data": {
+ "commands": [
+ {
+ "type": "named",
+ "data": {
+ "name": "Hood Down"
+ }
+ },
+ {
+ "type": "named",
+ "data": {
+ "name": "Stop Spindexer"
+ }
+ },
+ {
+ "type": "path",
+ "data": {
+ "pathName": "Right Drop Back Path"
+ }
+ },
+ {
+ "type": "named",
+ "data": {
+ "name": "Stop Hood Down"
+ }
+ },
+ {
+ "type": "named",
+ "data": {
+ "name": "Extend Intake"
+ }
+ },
+ {
+ "type": "named",
+ "data": {
+ "name": "Start Spindexer"
+ }
+ }
+ ]
+ }
+ },
+ "resetOdom": true,
+ "folder": null,
+ "choreoAuto": false
+}
\ No newline at end of file
--- /dev/null
+{
+ "version": "2025.0",
+ "command": {
+ "type": "sequential",
+ "data": {
+ "commands": [
+ {
+ "type": "path",
+ "data": {
+ "pathName": "Right Swipe1"
+ }
+ }
+ ]
+ }
+ },
+ "resetOdom": true,
+ "folder": null,
+ "choreoAuto": false
+}
\ No newline at end of file
--- /dev/null
+{
+ "version": "2025.0",
+ "command": {
+ "type": "sequential",
+ "data": {
+ "commands": [
+ {
+ "type": "path",
+ "data": {
+ "pathName": "Right Swipe2"
+ }
+ }
+ ]
+ }
+ },
+ "resetOdom": true,
+ "folder": null,
+ "choreoAuto": false
+}
\ No newline at end of file
--- /dev/null
+{
+ "version": "2025.0",
+ "waypoints": [
+ {
+ "anchor": {
+ "x": 3.543,
+ "y": 4.217
+ },
+ "prevControl": null,
+ "nextControl": {
+ "x": 2.044649240494815,
+ "y": 4.241017071760963
+ },
+ "isLocked": false,
+ "linkedName": null
+ },
+ {
+ "anchor": {
+ "x": 2.2,
+ "y": 4.217
+ },
+ "prevControl": {
+ "x": 2.5070000000000006,
+ "y": 4.217
+ },
+ "nextControl": null,
+ "isLocked": false,
+ "linkedName": null
+ }
+ ],
+ "rotationTargets": [],
+ "constraintZones": [],
+ "pointTowardsZones": [],
+ "eventMarkers": [],
+ "globalConstraints": {
+ "maxVelocity": 3.0,
+ "maxAcceleration": 2.5,
+ "maxAngularVelocity": 200.0,
+ "maxAngularAcceleration": 300.0,
+ "nominalVoltage": 12.0,
+ "unlimited": false
+ },
+ "goalEndState": {
+ "velocity": 0,
+ "rotation": 0.0
+ },
+ "reversed": false,
+ "folder": null,
+ "idealStartingState": {
+ "velocity": 0,
+ "rotation": 0.0
+ },
+ "useDefaultConstraints": true
+}
\ No newline at end of file
{
"anchor": {
"x": 4.5,
- "y": 7.623190984573506
+ "y": 7.623
},
"prevControl": null,
"nextControl": {
"x": 6.819805487632309,
- "y": 6.775820794389796
+ "y": 6.77562980981629
},
"isLocked": false,
"linkedName": null
--- /dev/null
+{
+ "version": "2025.0",
+ "waypoints": [
+ {
+ "anchor": {
+ "x": 4.5,
+ "y": 7.623
+ },
+ "prevControl": null,
+ "nextControl": {
+ "x": 3.001456767975733,
+ "y": 7.623
+ },
+ "isLocked": false,
+ "linkedName": null
+ },
+ {
+ "anchor": {
+ "x": 3.2,
+ "y": 7.623
+ },
+ "prevControl": {
+ "x": 3.5070000000000006,
+ "y": 7.623
+ },
+ "nextControl": null,
+ "isLocked": false,
+ "linkedName": null
+ }
+ ],
+ "rotationTargets": [],
+ "constraintZones": [],
+ "pointTowardsZones": [],
+ "eventMarkers": [],
+ "globalConstraints": {
+ "maxVelocity": 3.0,
+ "maxAcceleration": 2.5,
+ "maxAngularVelocity": 200.0,
+ "maxAngularAcceleration": 300.0,
+ "nominalVoltage": 12.0,
+ "unlimited": false
+ },
+ "goalEndState": {
+ "velocity": 0,
+ "rotation": 0.0
+ },
+ "reversed": false,
+ "folder": null,
+ "idealStartingState": {
+ "velocity": 0,
+ "rotation": 0.0
+ },
+ "useDefaultConstraints": true
+}
\ No newline at end of file
--- /dev/null
+{
+ "version": "2025.0",
+ "waypoints": [
+ {
+ "anchor": {
+ "x": 4.5,
+ "y": 0.448
+ },
+ "prevControl": null,
+ "nextControl": {
+ "x": 3.001456767975733,
+ "y": 0.4480000000000002
+ },
+ "isLocked": false,
+ "linkedName": null
+ },
+ {
+ "anchor": {
+ "x": 3.2,
+ "y": 0.448
+ },
+ "prevControl": {
+ "x": 3.506999999999998,
+ "y": 0.44799999999999995
+ },
+ "nextControl": null,
+ "isLocked": false,
+ "linkedName": null
+ }
+ ],
+ "rotationTargets": [],
+ "constraintZones": [],
+ "pointTowardsZones": [],
+ "eventMarkers": [],
+ "globalConstraints": {
+ "maxVelocity": 3.0,
+ "maxAcceleration": 2.5,
+ "maxAngularVelocity": 200.0,
+ "maxAngularAcceleration": 300.0,
+ "nominalVoltage": 12.0,
+ "unlimited": false
+ },
+ "goalEndState": {
+ "velocity": 0,
+ "rotation": 0.0
+ },
+ "reversed": false,
+ "folder": null,
+ "idealStartingState": {
+ "velocity": 0,
+ "rotation": 0.0
+ },
+ "useDefaultConstraints": true
+}
\ No newline at end of file
{
"anchor": {
"x": 4.5,
- "y": 0.4481350154264931
+ "y": 0.448
},
"prevControl": null,
"nextControl": {
"x": 6.341153730575683,
- "y": 0.7322587728145628
+ "y": 0.7321237573880697
},
"isLocked": false,
"linkedName": null
},
"prevControl": {
"x": 8.155370348167532,
- "y": 0.8386737269319346
+ "y": 0.8386737269319345
},
"nextControl": {
"x": 8.45722898958081,
import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.CommandScheduler;
import edu.wpi.first.wpilibj2.command.InstantCommand;
+import edu.wpi.first.wpilibj2.command.ParallelCommandGroup;
import frc.robot.commands.LogCommand;
import frc.robot.commands.drive_comm.DefaultDriveCommand;
import frc.robot.commands.gpm.AutoShootCommand;
*/
public void autoChooserInit() {
// add the options to the Chooser
- String defaultAuto = "Trial Auto Path";
String leftSideAuto = "Left Week V1";
String rightSideAuto = "Right Week V1";
String shootOnlyAuto = "Shoot Only Left Week V1";
String rightLiberalSwipe = "RightLiberalDoubleSwipe";
String leftLiberalSwipeTranslation = "LeftLiberalDoubleSwipeTranslation";
String leftConservativeSwipe = "LeftConservativeDoubleSwipe";
+ String leftDoNothing = "Left Do Nothing";
+ String rightDoNothing = "Right Do Nothing";
+ String centerDoNothing = "Center Do Nothing";
- autoChooser.setDefaultOption("Default", new PathPlannerAuto(defaultAuto));
+ autoChooser.setDefaultOption("Default", getDefaultAuto());
addAuto(leftSideAuto);
addAuto(rightSideAuto);
addAuto(shootOnlyAuto);
addAuto(leftLiberalSwipe);
addAuto(rightLiberalSwipe);
addAuto(leftLiberalSwipeTranslation);
-
+ addAuto(leftDoNothing);
+ addAuto(rightDoNothing);
+ addAuto(centerDoNothing);
// put the Chooser on the SmartDashboard
SmartDashboard.putData("Auto chooser", autoChooser);
}
}
+ public Command getDefaultAuto() {
+ ParallelCommandGroup defaultShoot = new ParallelCommandGroup(
+ new RunSpindexer(spindexer, turret, hood, intake)
+ );
+ return defaultShoot;
+ }
+
public Command getAutoCommand() {
return autoChooser.getSelected();
}