Skip to content

Commit

Permalink
Added 4-Note v2.0 C213 (Podium First) (#109)
Browse files Browse the repository at this point in the history
* Added 4-Note v2.0 C213 (Podium First)

* 3-Note A45

* Updated drivetrain offsets

* Slowed down 3-Note A45

* Fixed note 5 waypoint

* Lower stow angle to avoid over bumper penalty

* tweaked A45

* use intake v2.0

* Increase acceleration to scoring. Set end goal angle for scoring

* Added left/right vision cameras

* Added logging of Vision Camera Pose2d

* Update pathplanner to v2024.2.8

* Disable left/right cameras on Phoenix

* Revert "Disable left/right cameras on Phoenix"

This reverts commit 4df29b3.

* Revert "Update pathplanner to v2024.2.8"

This reverts commit ae36972.

* Revert "Added logging of Vision Camera Pose2d"

This reverts commit 9f9c24a.

* Allow main driver left/right sticks to interrupt driveToPose/driveToYaw (rightBumper) commands

* updated a45

* Drive Pose is not  used as back if no vision reported (#110)

* Drive Pose is not  used as back if no vision reported

* spotlessApply

* Revert phoenix change

---------

Co-authored-by: Ethan Porter <[email protected]>

---------

Co-authored-by: Ethan Porter <[email protected]>
  • Loading branch information
BrownGenius and StewardHail3433 authored Apr 5, 2024
1 parent d3e9bc1 commit e49f59e
Show file tree
Hide file tree
Showing 24 changed files with 558 additions and 80 deletions.
138 changes: 138 additions & 0 deletions src/main/deploy/pathplanner/autos/3-Note (Amp) A45.auto
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
{
"version": 1.0,
"startingPose": {
"position": {
"x": 1.35,
"y": 6.5
},
"rotation": 0.0
},
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "parallel",
"data": {
"commands": [
{
"type": "path",
"data": {
"pathName": "Between A-C to Between 2-3"
}
},
{
"type": "named",
"data": {
"name": "Prepare to Score from Between 2 and 3"
}
}
]
}
},
{
"type": "named",
"data": {
"name": "Score from Between 2 and 3"
}
},
{
"type": "parallel",
"data": {
"commands": [
{
"type": "path",
"data": {
"pathName": "Between 2-3 to 4"
}
},
{
"type": "named",
"data": {
"name": "Intake Piece v2.0"
}
}
]
}
},
{
"type": "parallel",
"data": {
"commands": [
{
"type": "path",
"data": {
"pathName": "4 to Between 2-3"
}
},
{
"type": "named",
"data": {
"name": "Prepare to Score from Between 2 and 3"
}
}
]
}
},
{
"type": "named",
"data": {
"name": "Score from Between 2 and 3"
}
},
{
"type": "parallel",
"data": {
"commands": [
{
"type": "path",
"data": {
"pathName": "Between 2-3 to 5"
}
},
{
"type": "named",
"data": {
"name": "Intake Piece v2.0"
}
}
]
}
},
{
"type": "parallel",
"data": {
"commands": [
{
"type": "path",
"data": {
"pathName": "5 to Between 2-3"
}
},
{
"type": "named",
"data": {
"name": "Prepare to Score from Between 2 and 3"
}
}
]
}
},
{
"type": "named",
"data": {
"name": "Score from Between 2 and 3"
}
},
{
"type": "named",
"data": {
"name": "Turn off Shooter and Intake"
}
}
]
}
},
"folder": null,
"choreoAuto": false
}
163 changes: 163 additions & 0 deletions src/main/deploy/pathplanner/autos/4-Note (Center) v2.0 C213.auto
Original file line number Diff line number Diff line change
@@ -0,0 +1,163 @@
{
"version": 1.0,
"startingPose": {
"position": {
"x": 1.35,
"y": 5.55
},
"rotation": 0
},
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "Score from C (Subwoofer Center)"
}
},
{
"type": "parallel",
"data": {
"commands": [
{
"type": "path",
"data": {
"pathName": "C to 2"
}
},
{
"type": "named",
"data": {
"name": "Intake Piece v2.0"
}
}
]
}
},
{
"type": "parallel",
"data": {
"commands": [
{
"type": "path",
"data": {
"pathName": "2 to C"
}
},
{
"type": "named",
"data": {
"name": "Prepare to Score from C (Subwoofer Center)"
}
}
]
}
},
{
"type": "named",
"data": {
"name": "Score from C (Subwoofer Center)"
}
},
{
"type": "parallel",
"data": {
"commands": [
{
"type": "path",
"data": {
"pathName": "C to 1"
}
},
{
"type": "named",
"data": {
"name": "Intake Piece v2.0"
}
}
]
}
},
{
"type": "parallel",
"data": {
"commands": [
{
"type": "path",
"data": {
"pathName": "1 to C"
}
},
{
"type": "named",
"data": {
"name": "Prepare to Score from C (Subwoofer Center)"
}
}
]
}
},
{
"type": "named",
"data": {
"name": "Score from C (Subwoofer Center)"
}
},
{
"type": "parallel",
"data": {
"commands": [
{
"type": "path",
"data": {
"pathName": "C to 3"
}
},
{
"type": "named",
"data": {
"name": "Intake Piece v2.0"
}
}
]
}
},
{
"type": "parallel",
"data": {
"commands": [
{
"type": "path",
"data": {
"pathName": "3 to C"
}
},
{
"type": "named",
"data": {
"name": "Prepare to Score from C (Subwoofer Center)"
}
}
]
}
},
{
"type": "named",
"data": {
"name": "Score from C (Subwoofer Center)"
}
},
{
"type": "named",
"data": {
"name": "Turn off Shooter and Intake"
}
}
]
}
},
"folder": null,
"choreoAuto": false
}
4 changes: 2 additions & 2 deletions src/main/deploy/pathplanner/paths/3 to 5.path
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
},
{
"anchor": {
"x": 8.0,
"x": 8.25,
"y": 5.75
},
"prevControl": {
"x": 7.09369221296335,
"x": 7.34369221296335,
"y": 6.172618261740699
},
"nextControl": null,
Expand Down
8 changes: 4 additions & 4 deletions src/main/deploy/pathplanner/paths/3 to Between 2-3.path
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
},
{
"anchor": {
"x": 1.74250811605949,
"y": 6.308416077391951
"x": 4.25,
"y": 6.25
},
"prevControl": {
"x": 2.2333947975784003,
"y": 6.5486372194118445
"x": 4.74088668151891,
"y": 6.490221142019894
},
"nextControl": null,
"isLocked": false,
Expand Down
24 changes: 12 additions & 12 deletions src/main/deploy/pathplanner/paths/4 to Between 2-3.path
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@
"waypoints": [
{
"anchor": {
"x": 7.873369436306303,
"y": 7.436411005137533
"x": 8.25,
"y": 7.5
},
"prevControl": null,
"nextControl": {
"x": 7.26759438251701,
"y": 7.32152263286715
"x": 7.63,
"y": 7.5
},
"isLocked": false,
"linkedName": "\"4\" Center Amp Note"
},
{
"anchor": {
"x": 1.74250811605949,
"y": 6.308416077391951
"x": 4.25,
"y": 6.25
},
"prevControl": {
"x": 2.5049491320356694,
"y": 6.3188604748710775
"x": 4.996036659420224,
"y": 6.395014836486174
},
"nextControl": null,
"isLocked": false,
Expand All @@ -32,14 +32,14 @@
"constraintZones": [],
"eventMarkers": [],
"globalConstraints": {
"maxVelocity": 5.0,
"maxAcceleration": 3.0,
"maxVelocity": 4.0,
"maxAcceleration": 2.0,
"maxAngularVelocity": 540.0,
"maxAngularAcceleration": 720.0
},
"goalEndState": {
"velocity": 0,
"rotation": 0,
"rotation": 11.0,
"rotateFast": false
},
"reversed": false,
Expand All @@ -48,5 +48,5 @@
"rotation": 0,
"velocity": 0
},
"useDefaultConstraints": false
"useDefaultConstraints": true
}
Loading

0 comments on commit e49f59e

Please sign in to comment.