Skip to content

Commit

Permalink
Auton Fixes (#91)
Browse files Browse the repository at this point in the history
* 4ADE ampside auton

* Changed paths involving A, B, and C so that they were straighter than the original arcs. Affects 5 CBAE and 5 CBAE Podium routines.

* Change B to A path

* make HGF and CHGF shoot immediately, remove alignment

Co-authored-by: BrianZ60 <[email protected]>
Co-authored-by: overseeroverseer <[email protected]>
Co-authored-by: Ardian Agoes <[email protected]>
Co-authored-by:  Alan Liang <[email protected]>

* Remove some shooter startup waits, make sure waiting for shooter RPM

* Actually, remove shooter rpm check in conveyor shoot routine

* Add back rpm check in align and shoot

* Delete a ton of unused autos and paths

* Lowercase To

* Remove more unused autons, fix CBAED auto file, clean robotcontainer

* update auton tab on pathplanner

* made f to shoot other side of podium

* Modify f to shoot slightly

---------

Co-authored-by: Rahuldeb75 <[email protected]>
Co-authored-by: Owen-Zeng <[email protected]>
Co-authored-by: BenG49 <[email protected]>
Co-authored-by: BrianZ60 <[email protected]>
Co-authored-by: overseeroverseer <[email protected]>
Co-authored-by: Ardian Agoes <[email protected]>
Co-authored-by: Alan Liang <[email protected]>
  • Loading branch information
8 people authored Mar 26, 2024
1 parent e920e74 commit 5783595
Show file tree
Hide file tree
Showing 35 changed files with 140 additions and 780 deletions.
1 change: 0 additions & 1 deletion .pathplanner/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"holonomicMode": true,
"pathFolders": [
"ABCDE",
"ABCDE (ND)",
"HGF",
"Tests"
],
Expand Down
14 changes: 7 additions & 7 deletions src/main/deploy/pathplanner/autos/4.5 ADEF.auto
Original file line number Diff line number Diff line change
Expand Up @@ -8,43 +8,43 @@
{
"type": "path",
"data": {
"pathName": "First Piece To A"
"pathName": "Preload to A"
}
},
{
"type": "path",
"data": {
"pathName": "A To D"
"pathName": "A to D"
}
},
{
"type": "path",
"data": {
"pathName": "D To Shoot"
"pathName": "D to Shoot"
}
},
{
"type": "path",
"data": {
"pathName": "Shoot To E"
"pathName": "Shoot to E"
}
},
{
"type": "path",
"data": {
"pathName": "E To Shoot"
"pathName": "E to Shoot"
}
},
{
"type": "path",
"data": {
"pathName": "Shoot To F (ADEF)"
"pathName": "Shoot to F (ADEF)"
}
},
{
"type": "path",
"data": {
"pathName": "F To Shoot (ADEF)"
"pathName": "F to Shoot (ADEF)"
}
}
]
Expand Down
12 changes: 6 additions & 6 deletions src/main/deploy/pathplanner/autos/4.5 CHGF.auto
Original file line number Diff line number Diff line change
Expand Up @@ -8,37 +8,37 @@
{
"type": "path",
"data": {
"pathName": "Forward First Piece to C"
"pathName": "Close Preload to C"
}
},
{
"type": "path",
"data": {
"pathName": "CShoot To H (CHGF)"
"pathName": "CShoot to H (CHGF)"
}
},
{
"type": "path",
"data": {
"pathName": "H To HShoot (HGF)"
"pathName": "H to HShoot (HGF)"
}
},
{
"type": "path",
"data": {
"pathName": "HShoot To G (HGF)"
"pathName": "HShoot to G (HGF)"
}
},
{
"type": "path",
"data": {
"pathName": "G To Shoot (HGF)"
"pathName": "G to Shoot (HGF)"
}
},
{
"type": "path",
"data": {
"pathName": "GShoot To F (HGF)"
"pathName": "GShoot to F (HGF)"
}
}
]
Expand Down
20 changes: 7 additions & 13 deletions src/main/deploy/pathplanner/autos/6 CBAED.auto
Original file line number Diff line number Diff line change
@@ -1,44 +1,38 @@
{
"version": 1.0,
"startingPose": {
"position": {
"x": 1.3103352321354325,
"y": 5.375733057397644
},
"rotation": 0
},
"startingPose": null,
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "path",
"data": {
"pathName": "Forward First Piece to C"
"pathName": "Preload to C"
}
},
{
"type": "path",
"data": {
"pathName": "C to B 2"
"pathName": "C to B"
}
},
{
"type": "path",
"data": {
"pathName": "B To A"
"pathName": "B to A"
}
},
{
"type": "path",
"data": {
"pathName": "A To E"
"pathName": "A to E"
}
},
{
"type": "path",
"data": {
"pathName": "E To Shoot"
"pathName": "E to Shoot"
}
},
{
Expand All @@ -50,7 +44,7 @@
{
"type": "path",
"data": {
"pathName": "D To Shoot"
"pathName": "D to Shoot"
}
}
]
Expand Down
31 changes: 13 additions & 18 deletions src/main/deploy/pathplanner/paths/B to A.path
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"waypoints": [
{
"anchor": {
"x": 2.81,
"y": 5.472864279061892
"x": 2.78765406878382,
"y": 5.239147655045014
},
"prevControl": null,
"nextControl": {
"x": 1.8152627375287849,
"y": 5.5043194331858505
"x": 2.6183483616967234,
"y": 5.861535033255252
},
"isLocked": false,
"linkedName": "B"
Expand All @@ -20,28 +20,23 @@
"y": 6.94
},
"prevControl": {
"x": 1.6454530467410546,
"y": 6.691707053395119
"x": 2.646912247528199,
"y": 6.50431154103049
},
"nextControl": null,
"isLocked": false,
"linkedName": "A"
}
],
"rotationTargets": [],
"constraintZones": [],
"eventMarkers": [
"rotationTargets": [
{
"name": "IntakeToShooter",
"waypointRelativePos": 0.3,
"command": {
"type": "parallel",
"data": {
"commands": []
}
}
"waypointRelativePos": 0.5,
"rotationDegrees": 60.0,
"rotateFast": true
}
],
"constraintZones": [],
"eventMarkers": [],
"globalConstraints": {
"maxVelocity": 5.0,
"maxAcceleration": 4.0,
Expand All @@ -50,7 +45,7 @@
},
"goalEndState": {
"velocity": 0,
"rotation": 23.336949256100596,
"rotation": 51.76617482255292,
"rotateFast": false
},
"reversed": false,
Expand Down
49 changes: 0 additions & 49 deletions src/main/deploy/pathplanner/paths/C Shoot to B.path

This file was deleted.

22 changes: 11 additions & 11 deletions src/main/deploy/pathplanner/paths/C to B Close.path
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@
"waypoints": [
{
"anchor": {
"x": 2.3938754127508255,
"y": 4.103044831089663
"x": 2.52,
"y": 4.1
},
"prevControl": null,
"nextControl": {
"x": 1.5151395724967984,
"y": 4.789588512576437
"x": 2.2862694665305834,
"y": 4.4310887318157315
},
"isLocked": false,
"linkedName": null
},
{
"anchor": {
"x": 2.81,
"y": 5.472864279061892
"x": 2.78765406878382,
"y": 5.239147655045014
},
"prevControl": {
"x": 1.9184388425219452,
"y": 5.403007877888045
"x": 2.4857700960953526,
"y": 5.063860187032356
},
"nextControl": null,
"isLocked": false,
Expand All @@ -30,8 +30,8 @@
],
"rotationTargets": [
{
"waypointRelativePos": 0,
"rotationDegrees": 0,
"waypointRelativePos": 0.5,
"rotationDegrees": 72.16956019523882,
"rotateFast": false
}
],
Expand All @@ -45,7 +45,7 @@
},
"goalEndState": {
"velocity": 0,
"rotation": -1.3821062752111186,
"rotation": 70.55996517182386,
"rotateFast": false
},
"reversed": false,
Expand Down
31 changes: 20 additions & 11 deletions src/main/deploy/pathplanner/paths/C to B.path
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,38 @@
"waypoints": [
{
"anchor": {
"x": 2.5635091726023904,
"y": 4.034483282641779
"x": 2.5,
"y": 4.265328388308022
},
"prevControl": null,
"nextControl": {
"x": 1.7117636877122235,
"y": 4.2792545853082995
"x": 2.5,
"y": 4.878834526352327
},
"isLocked": false,
"linkedName": "C"
},
{
"anchor": {
"x": 2.81,
"y": 5.472864279061892
"x": 2.78765406878382,
"y": 5.239147655045014
},
"prevControl": {
"x": 1.9184388425219452,
"y": 5.403007877888045
"x": 2.5539374447669423,
"y": 4.8009289850133685
},
"nextControl": null,
"isLocked": false,
"linkedName": "B"
}
],
"rotationTargets": [],
"rotationTargets": [
{
"waypointRelativePos": 0.5,
"rotationDegrees": 60.0,
"rotateFast": true
}
],
"constraintZones": [],
"eventMarkers": [],
"globalConstraints": {
Expand All @@ -39,11 +45,14 @@
},
"goalEndState": {
"velocity": 0,
"rotation": -1.3821062752111186,
"rotation": 60.71172956223985,
"rotateFast": false
},
"reversed": false,
"folder": "ABCDE",
"previewStartingState": null,
"previewStartingState": {
"rotation": -20.0,
"velocity": 0
},
"useDefaultConstraints": true
}
Loading

0 comments on commit 5783595

Please sign in to comment.