Skip to content

Commit

Permalink
Source and Amp autos
Browse files Browse the repository at this point in the history
  • Loading branch information
harnwalN committed Feb 4, 2024
1 parent 2415368 commit 9d09967
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 143 deletions.
12 changes: 3 additions & 9 deletions src/main/deploy/pathplanner/autos/Amp_Out.auto
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"version": 1.0,
"startingPose": {
"position": {
"x": 0.72,
"y": 4.403737629236593
"x": 1.141872251083912,
"y": 6.49461889707923
},
"rotation": -60.0
"rotation": -120.0
},
"command": {
"type": "sequential",
Expand All @@ -16,12 +16,6 @@
"data": {
"pathName": "AO_Path"
}
},
{
"type": "path",
"data": {
"pathName": "AO_EndAngle"
}
}
]
}
Expand Down
49 changes: 0 additions & 49 deletions src/main/deploy/pathplanner/paths/AO_EndAngle.path

This file was deleted.

56 changes: 39 additions & 17 deletions src/main/deploy/pathplanner/paths/AO_Path.path
Original file line number Diff line number Diff line change
Expand Up @@ -3,43 +3,65 @@
"waypoints": [
{
"anchor": {
"x": 0.72,
"y": 4.403737629236593
"x": 1.141872251083912,
"y": 6.49461889707923
},
"prevControl": null,
"nextControl": {
"x": 0.6871248194252196,
"y": 0.9181545141122731
"x": 1.3880753829331574,
"y": 6.924435981628518
},
"isLocked": true,
"linkedName": null
},
{
"anchor": {
"x": 3.5513935601032007,
"y": 0.8177705484371478
"x": 2.193797844663109,
"y": 7.418948194099357
},
"prevControl": {
"x": 2.9896981201252255,
"y": 0.8532373227398375
"x": 1.879875320550699,
"y": 7.424056323987938
},
"nextControl": {
"x": 2.9311629448344396,
"y": 7.406949830115661
},
"isLocked": false,
"linkedName": null
},
{
"anchor": {
"x": 4.427862786566094,
"y": 7.418948194099357
},
"prevControl": {
"x": 3.3167030800207438,
"y": 7.436945053722283
},
"nextControl": null,
"isLocked": false,
"linkedName": null
}
],
"rotationTargets": [
"rotationTargets": [],
"constraintZones": [
{
"waypointRelativePos": 0,
"rotationDegrees": 121.26958668142112,
"rotateFast": false
"name": "New Constraints Zone",
"minWaypointRelativePos": 0,
"maxWaypointRelativePos": 0,
"constraints": {
"maxVelocity": 3.0,
"maxAcceleration": 3.0,
"maxAngularVelocity": 540.0,
"maxAngularAcceleration": 720.0
}
}
],
"constraintZones": [],
"eventMarkers": [],
"globalConstraints": {
"maxVelocity": 3.0,
"maxAcceleration": 3.0,
"maxVelocity": 1.0,
"maxAcceleration": 2.0,
"maxAngularVelocity": 540.0,
"maxAngularAcceleration": 720.0
},
Expand All @@ -48,8 +70,8 @@
"rotation": 0,
"rotateFast": false
},
"reversed": false,
"folder": null,
"reversed": true,
"folder": "AO",
"previewStartingState": null,
"useDefaultConstraints": false
}
65 changes: 0 additions & 65 deletions src/main/deploy/pathplanner/paths/Example Path.path

This file was deleted.

13 changes: 10 additions & 3 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,20 @@ public RobotContainer() {
.withTimeout(Constants.SHOOTER_DELAY)
.andThen(new LaunchNote(shooter, hopper).withTimeout(3)));
autoChooser.addOption(
"Amp Out",
"Shoot Amp Out",
Commands.sequence(
new PrepareLaunch(shooter, hopper)
.withTimeout(Constants.SHOOTER_DELAY)
.andThen(new LaunchNote(shooter, hopper))
.withTimeout(3),
.andThen(new LaunchNote(shooter, hopper).withTimeout(3)),
AutoBuilder.buildAuto("Amp_Out")));
autoChooser.addOption(
"Shoot Source Out",
Commands.sequence(
new PrepareLaunch(shooter, hopper)
.withTimeout(Constants.SHOOTER_DELAY)
.andThen(new LaunchNote(shooter, hopper).withTimeout(3)),
AutoBuilder.buildAuto("Source_Out")));
autoChooser.addOption("Turn", new Turn(drive, Rotation2d.fromDegrees(90), false));

// Configure the button bindings
configureButtonBindings();
Expand Down

0 comments on commit 9d09967

Please sign in to comment.