Skip to content

Commit

Permalink
Merge pull request #58 from zaneal/main
Browse files Browse the repository at this point in the history
Autos
  • Loading branch information
zaneal authored Mar 20, 2024
2 parents bc5945e + b407827 commit b87006d
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 40 deletions.
25 changes: 0 additions & 25 deletions src/main/deploy/pathplanner/autos/Basic Auto.auto

This file was deleted.

13 changes: 10 additions & 3 deletions src/main/deploy/pathplanner/autos/Spoiler.auto
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,22 @@
"version": 1.0,
"startingPose": {
"position": {
"x": 2,
"y": 2
"x": 1.3835096049821733,
"y": 5.539671704343409
},
"rotation": 0
},
"command": {
"type": "sequential",
"data": {
"commands": []
"commands": [
{
"type": "path",
"data": {
"pathName": "Spoiler"
}
}
]
}
},
"folder": null,
Expand Down
8 changes: 4 additions & 4 deletions src/main/deploy/pathplanner/paths/ShootFrom1.path
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
},
{
"anchor": {
"x": 2.178428889265186,
"y": 5.56
"x": 2.154437600541868,
"y": 5.547569826621134
},
"prevControl": {
"x": 2.357354020263596,
"y": 5.585219522290897
"x": 2.333362731540278,
"y": 5.572789348912032
},
"nextControl": null,
"isLocked": false,
Expand Down
12 changes: 6 additions & 6 deletions src/main/deploy/pathplanner/paths/Spoiler.path
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"waypoints": [
{
"anchor": {
"x": 6.35024083010384,
"y": 7.4510172955587075
"x": 6.020657532055806,
"y": 6.818454900798691
},
"prevControl": null,
"nextControl": {
"x": 6.3872966819933215,
"y": 6.674566552842408
"x": 6.837845958099324,
"y": 6.973685664963923
},
"isLocked": false,
"linkedName": null
Expand Down Expand Up @@ -59,8 +59,8 @@
"constraintZones": [],
"eventMarkers": [],
"globalConstraints": {
"maxVelocity": 1.0,
"maxAcceleration": 0.5,
"maxVelocity": 7.0,
"maxAcceleration": 3.5,
"maxAngularVelocity": 540.0,
"maxAngularAcceleration": 720.0
},
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ public RobotContainer() {
//FOR ALL: tune timeouts

NamedCommands.registerCommand("AutoSpinUp", new SpinUpCommand(shooterSubsystem, ledSubsystem).withTimeout(20.0));
NamedCommands.registerCommand("LongIntakeCommand", new AutoIntakeOrShoot(indexerSubsystem, intakeSubsystem, AutoIntakeOrShoot.Goal.INTAKE).withTimeout(3.5));
NamedCommands.registerCommand("LongIntakeCommand", new AutoIntakeOrShoot(indexerSubsystem, intakeSubsystem, AutoIntakeOrShoot.Goal.INTAKE).withTimeout(3.3));
NamedCommands.registerCommand("ShortIntakeCommand", new AutoIntakeOrShoot(indexerSubsystem, intakeSubsystem, AutoIntakeOrShoot.Goal.INTAKE).withTimeout(1.5));
NamedCommands.registerCommand("MediumIntakeCommand", new AutoIntakeOrShoot(indexerSubsystem, intakeSubsystem, AutoIntakeOrShoot.Goal.INTAKE).withTimeout(2.5));
NamedCommands.registerCommand("MediumIntakeCommand", new AutoIntakeOrShoot(indexerSubsystem, intakeSubsystem, AutoIntakeOrShoot.Goal.INTAKE).withTimeout(2.3));
NamedCommands.registerCommand("AutoSpinForShoot", new SpinUpCommand(shooterSubsystem, ledSubsystem).withTimeout(1.5));
NamedCommands.registerCommand("AutoShoot", new AutoIntakeOrShoot(indexerSubsystem, intakeSubsystem, AutoIntakeOrShoot.Goal.SHOOT).withTimeout(0.7));
////
Expand Down

0 comments on commit b87006d

Please sign in to comment.