Skip to content

Commit

Permalink
3 piece auton
Browse files Browse the repository at this point in the history
  • Loading branch information
Rand0mAsianKid committed Jun 14, 2024
1 parent e7fd6b5 commit 3992f82
Show file tree
Hide file tree
Showing 7 changed files with 390 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
{
"version": 1.0,
"startingPose": {
"position": {
"x": 0.7371441255109025,
"y": 4.39519602333928
},
"rotation": -57.09475707701205
},
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "ArmToSubwoofer"
}
},
{
"type": "sequential",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "SwitchRPMShoot"
}
},
{
"type": "wait",
"data": {
"waitTime": 1.5
}
}
]
}
},
{
"type": "named",
"data": {
"name": "ArmToGround"
}
},
{
"type": "parallel",
"data": {
"commands": [
{
"type": "path",
"data": {
"pathName": "Preloaded Right-Pickup"
}
},
{
"type": "named",
"data": {
"name": "Intake"
}
}
]
}
},
{
"type": "named",
"data": {
"name": "ArmToSubwoofer"
}
},
{
"type": "path",
"data": {
"pathName": "Preloaded Right-Shoot"
}
},
{
"type": "sequential",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "SwitchRPMShoot"
}
},
{
"type": "wait",
"data": {
"waitTime": 1.5
}
}
]
}
},
{
"type": "named",
"data": {
"name": "ArmToGround"
}
}
]
}
},
"folder": null,
"choreoAuto": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
{
"version": 1.0,
"startingPose": {
"position": {
"x": 0.7371441255109025,
"y": 4.39519602333928
},
"rotation": -57.09475707701205
},
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "ArmToSubwoofer"
}
},
{
"type": "sequential",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "SwitchRPMShoot"
}
},
{
"type": "wait",
"data": {
"waitTime": 1.5
}
}
]
}
},
{
"type": "named",
"data": {
"name": "ArmToGround"
}
},
{
"type": "parallel",
"data": {
"commands": [
{
"type": "path",
"data": {
"pathName": "Preloaded Right-Pickup"
}
},
{
"type": "named",
"data": {
"name": "Intake"
}
}
]
}
},
{
"type": "named",
"data": {
"name": "ArmToSubwoofer"
}
},
{
"type": "path",
"data": {
"pathName": "Preloaded Right-Shoot"
}
},
{
"type": "sequential",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "SwitchRPMShoot"
}
},
{
"type": "wait",
"data": {
"waitTime": 1.5
}
}
]
}
},
{
"type": "named",
"data": {
"name": "ArmToGround"
}
},
{
"type": "parallel",
"data": {
"commands": [
{
"type": "path",
"data": {
"pathName": "Preloaded Right-Pickup 2"
}
},
{
"type": "named",
"data": {
"name": "Intake"
}
}
]
}
},
{
"type": "named",
"data": {
"name": "ArmToSubwoofer"
}
},
{
"type": "path",
"data": {
"pathName": "Preloaded Right-Shoot 2"
}
},
{
"type": "sequential",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "SwitchRPMShoot"
}
},
{
"type": "wait",
"data": {
"waitTime": 1.5
}
}
]
}
}
]
}
},
"folder": null,
"choreoAuto": false
}
58 changes: 58 additions & 0 deletions src/main/deploy/pathplanner/paths/Preloaded Right-Pickup 2.path
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"version": 1.0,
"waypoints": [
{
"anchor": {
"x": 0.8108009573052709,
"y": 4.391924892990533
},
"prevControl": null,
"nextControl": {
"x": 0.9568738473158196,
"y": 3.52522574559461
},
"isLocked": false,
"linkedName": null
},
{
"anchor": {
"x": 2.8363450321182127,
"y": 5.394958737729634
},
"prevControl": {
"x": 2.8266068394483854,
"y": 5.404696930403704
},
"nextControl": null,
"isLocked": false,
"linkedName": null
}
],
"rotationTargets": [
{
"waypointRelativePos": 0.5,
"rotationDegrees": 30.311213226407045,
"rotateFast": false
}
],
"constraintZones": [],
"eventMarkers": [],
"globalConstraints": {
"maxVelocity": 1.0,
"maxAcceleration": 1.0,
"maxAngularVelocity": 520.0,
"maxAngularAcceleration": 710.0
},
"goalEndState": {
"velocity": 0.0,
"rotation": 68.80594351845765,
"rotateFast": false
},
"reversed": false,
"folder": null,
"previewStartingState": {
"rotation": -62.703121008326576,
"velocity": 0
},
"useDefaultConstraints": false
}
16 changes: 8 additions & 8 deletions src/main/deploy/pathplanner/paths/Preloaded Right-Pickup.path
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"waypoints": [
{
"anchor": {
"x": 0.9873564191572831,
"y": 4.589224734005024
"x": 0.7371441255109025,
"y": 4.39519602333928
},
"prevControl": null,
"nextControl": {
"x": 2.3902783513794343,
"y": 4.323327781515613
"x": 2.140066057733054,
"y": 4.12929907084987
},
"isLocked": false,
"linkedName": null
Expand All @@ -20,8 +20,8 @@
"y": 4.062870619379916
},
"prevControl": {
"x": 1.8995004656675984,
"y": 4.061891457116247
"x": 0.9484516266329833,
"y": 4.374065273227072
},
"nextControl": null,
"isLocked": false,
Expand All @@ -39,13 +39,13 @@
},
"goalEndState": {
"velocity": 0.0,
"rotation": 180.0,
"rotation": -0.65601236607358,
"rotateFast": false
},
"reversed": false,
"folder": null,
"previewStartingState": {
"rotation": 119.16761337957783,
"rotation": -56.502642156984386,
"velocity": 0
},
"useDefaultConstraints": false
Expand Down
Loading

0 comments on commit 3992f82

Please sign in to comment.