Skip to content

Commit ca42ee5

Browse files
committed
untested wipe auto
1 parent 8d17ebc commit ca42ee5

File tree

4 files changed

+204
-0
lines changed

4 files changed

+204
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
{
2+
"version": 1.0,
3+
"startingPose": {
4+
"position": {
5+
"x": 0.7952442380734501,
6+
"y": 4.3029049206577845
7+
},
8+
"rotation": 117.699472808055
9+
},
10+
"command": {
11+
"type": "sequential",
12+
"data": {
13+
"commands": [
14+
{
15+
"type": "named",
16+
"data": {
17+
"name": "setObjectiveSpeaker"
18+
}
19+
},
20+
{
21+
"type": "named",
22+
"data": {
23+
"name": "disableAimAssist"
24+
}
25+
},
26+
{
27+
"type": "named",
28+
"data": {
29+
"name": "disableUseFedPoseIntention"
30+
}
31+
},
32+
{
33+
"type": "named",
34+
"data": {
35+
"name": "readyToShootMode"
36+
}
37+
},
38+
{
39+
"type": "race",
40+
"data": {
41+
"commands": [
42+
{
43+
"type": "wait",
44+
"data": {
45+
"waitTime": 8.0
46+
}
47+
},
48+
{
49+
"type": "named",
50+
"data": {
51+
"name": "waitForArmError"
52+
}
53+
}
54+
]
55+
}
56+
},
57+
{
58+
"type": "named",
59+
"data": {
60+
"name": "shootMode"
61+
}
62+
},
63+
{
64+
"type": "wait",
65+
"data": {
66+
"waitTime": 1.0
67+
}
68+
},
69+
{
70+
"type": "named",
71+
"data": {
72+
"name": "holdMode"
73+
}
74+
}
75+
]
76+
}
77+
},
78+
"folder": null,
79+
"choreoAuto": false
80+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"version": 1.0,
3+
"startingPose": {
4+
"position": {
5+
"x": 0.8099299203965142,
6+
"y": 4.3029049206577845
7+
},
8+
"rotation": -56.30993247402022
9+
},
10+
"command": {
11+
"type": "sequential",
12+
"data": {
13+
"commands": [
14+
{
15+
"type": "named",
16+
"data": {
17+
"name": "holdMode"
18+
}
19+
},
20+
{
21+
"type": "path",
22+
"data": {
23+
"pathName": "wipe1"
24+
}
25+
}
26+
]
27+
}
28+
},
29+
"folder": null,
30+
"choreoAuto": false
31+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
{
2+
"version": 1.0,
3+
"waypoints": [
4+
{
5+
"anchor": {
6+
"x": 0.765872873427322,
7+
"y": 4.3029049206577845
8+
},
9+
"prevControl": null,
10+
"nextControl": {
11+
"x": 1.5588997188727838,
12+
"y": 1.6007393732139887
13+
},
14+
"isLocked": false,
15+
"linkedName": null
16+
},
17+
{
18+
"anchor": {
19+
"x": 7.521286742036812,
20+
"y": 0.8664552570607831
21+
},
22+
"prevControl": {
23+
"x": 6.52184183505766,
24+
"y": 0.8997700872934209
25+
},
26+
"nextControl": {
27+
"x": 8.402427681420658,
28+
"y": 0.8370838924146554
29+
},
30+
"isLocked": false,
31+
"linkedName": null
32+
},
33+
{
34+
"anchor": {
35+
"x": 8.206778694259144,
36+
"y": 7.124380038233761
37+
},
38+
"prevControl": {
39+
"x": 8.316388479619627,
40+
"y": 6.453092100414903
41+
},
42+
"nextControl": {
43+
"x": 8.134712915692662,
44+
"y": 7.565735595332097
45+
},
46+
"isLocked": false,
47+
"linkedName": null
48+
},
49+
{
50+
"anchor": {
51+
"x": 5.549777415344305,
52+
"y": 6.924878235721383
53+
},
54+
"prevControl": {
55+
"x": 6.773993021670255,
56+
"y": 6.770717751961819
57+
},
58+
"nextControl": null,
59+
"isLocked": false,
60+
"linkedName": null
61+
}
62+
],
63+
"rotationTargets": [
64+
{
65+
"waypointRelativePos": 0.5,
66+
"rotationDegrees": 8.0,
67+
"rotateFast": false
68+
}
69+
],
70+
"constraintZones": [],
71+
"eventMarkers": [],
72+
"globalConstraints": {
73+
"maxVelocity": 4.0,
74+
"maxAcceleration": 3.0,
75+
"maxAngularVelocity": 540.0,
76+
"maxAngularAcceleration": 720.0
77+
},
78+
"goalEndState": {
79+
"velocity": 0,
80+
"rotation": 8.0,
81+
"rotateFast": false
82+
},
83+
"reversed": false,
84+
"folder": null,
85+
"previewStartingState": {
86+
"rotation": -57.528807709151515,
87+
"velocity": 0
88+
},
89+
"useDefaultConstraints": true
90+
}

src/main/java/frc/robot/RobotContainer.java

+3
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ private void createAutos(){
156156

157157
autoChooser.addOption("CS-PL-01-00-02",new PathPlannerAuto("CS-PL-01-00-02"));
158158
autoChooser.addOption("AS-PL-00",new PathPlannerAuto("AS-PL-00"));
159+
autoChooser.addOption("SS-PL",new PathPlannerAuto("SS-PL"));
160+
autoChooser.addOption("wipe",new PathPlannerAuto("wipe"));
161+
159162

160163

161164

0 commit comments

Comments
 (0)