Skip to content

Commit 5039e46

Browse files
S0L0GUYFRCTeam3255-Shared-K1-10Wu-Fan-529alicekuznetsovTaylerUva
authored
Add general autos (#131)
* Added Some Autos * Added Some Autos These still needs commands. * Tuned Rotation Points * Added Event Markers * Added Commands to Autos hubba bubbah * added some stuff * AUTO WILL not WORK TONIGHT Co-Authored-By: Evan Grinnell <[email protected]> Co-Authored-By: Yutong Zhu <[email protected]> Co-Authored-By: Alice <[email protected]> * In Person Testing Co-Authored-By: Evan Grinnell <[email protected]> Co-Authored-By: Yutong Zhu <[email protected]> Co-Authored-By: Alice <[email protected]> * Update RobotContainer.java * Added Some More Autos * Added 4-Piece-High Auto Path * idk what was wrong * Update autos to prep @ the coral station * Auto logic works! --------- Co-authored-by: FRCTeam3255-Shared <[email protected]> Co-authored-by: Yutong Zhu <[email protected]> Co-authored-by: Alice <[email protected]> Co-authored-by: Tayler Uva <[email protected]> Co-authored-by: BrodyKarr <[email protected]>
1 parent 930a1e1 commit 5039e46

26 files changed

+396
-57
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ Coming soon!
3030
Coming soon!
3131

3232
## Robot Simulation
33-
Coming Soon!
33+
Coming Soon!

simgui.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,15 @@
5151
},
5252
"NetworkTables": {
5353
"transitory": {
54+
"Robot": {
55+
"m_robotContainer": {
56+
"open": true,
57+
"subStateMachine": {
58+
"open": true
59+
}
60+
},
61+
"open": true
62+
},
5463
"SmartDashboard": {
5564
"Field": {
5665
"open": true
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
{
2+
"version": "2025.0",
3+
"command": {
4+
"type": "sequential",
5+
"data": {
6+
"commands": [
7+
{
8+
"type": "named",
9+
"data": {
10+
"name": "GetCoralStationPiece"
11+
}
12+
},
13+
{
14+
"type": "path",
15+
"data": {
16+
"pathName": "P-I"
17+
}
18+
},
19+
{
20+
"type": "named",
21+
"data": {
22+
"name": "PrepPlace"
23+
}
24+
},
25+
{
26+
"type": "path",
27+
"data": {
28+
"pathName": "I-CSTop"
29+
}
30+
},
31+
{
32+
"type": "named",
33+
"data": {
34+
"name": "GetCoralStationPiece"
35+
}
36+
},
37+
{
38+
"type": "path",
39+
"data": {
40+
"pathName": "CSTop-J"
41+
}
42+
},
43+
{
44+
"type": "named",
45+
"data": {
46+
"name": "PrepPlace"
47+
}
48+
},
49+
{
50+
"type": "path",
51+
"data": {
52+
"pathName": "J-CSTop"
53+
}
54+
},
55+
{
56+
"type": "named",
57+
"data": {
58+
"name": "GetCoralStationPiece"
59+
}
60+
},
61+
{
62+
"type": "path",
63+
"data": {
64+
"pathName": "CSTop-K"
65+
}
66+
},
67+
{
68+
"type": "named",
69+
"data": {
70+
"name": "PrepPlace"
71+
}
72+
},
73+
{
74+
"type": "path",
75+
"data": {
76+
"pathName": "K-CSTop"
77+
}
78+
},
79+
{
80+
"type": "named",
81+
"data": {
82+
"name": "GetCoralStationPiece"
83+
}
84+
},
85+
{
86+
"type": "path",
87+
"data": {
88+
"pathName": "CSTop-L"
89+
}
90+
},
91+
{
92+
"type": "named",
93+
"data": {
94+
"name": "PrepPlace"
95+
}
96+
}
97+
]
98+
}
99+
},
100+
"resetOdom": true,
101+
"folder": null,
102+
"choreoAuto": false
103+
}

src/main/deploy/pathplanner/autos/4-Piece-Low.auto

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{
88
"type": "named",
99
"data": {
10-
"name": "GetCoralStationPiece"
10+
"name": "ForceGamePiece"
1111
}
1212
},
1313
{
@@ -16,6 +16,12 @@
1616
"pathName": "P-F"
1717
}
1818
},
19+
{
20+
"type": "named",
21+
"data": {
22+
"name": "PrepPlace"
23+
}
24+
},
1925
{
2026
"type": "named",
2127
"data": {
@@ -37,7 +43,13 @@
3743
{
3844
"type": "path",
3945
"data": {
40-
"pathName": "CSBottom-E"
46+
"pathName": "CSBottom-C"
47+
}
48+
},
49+
{
50+
"type": "named",
51+
"data": {
52+
"name": "PrepPlace"
4153
}
4254
},
4355
{
@@ -49,7 +61,7 @@
4961
{
5062
"type": "path",
5163
"data": {
52-
"pathName": "E-CSBottom"
64+
"pathName": "C-CSBottom"
5365
}
5466
},
5567
{
@@ -64,6 +76,12 @@
6476
"pathName": "CSBottom-D"
6577
}
6678
},
79+
{
80+
"type": "named",
81+
"data": {
82+
"name": "PrepPlace"
83+
}
84+
},
6785
{
6886
"type": "named",
6987
"data": {
@@ -85,7 +103,13 @@
85103
{
86104
"type": "path",
87105
"data": {
88-
"pathName": "CSBottom-C"
106+
"pathName": "CSBottom-E"
107+
}
108+
},
109+
{
110+
"type": "named",
111+
"data": {
112+
"name": "PrepPlace"
89113
}
90114
},
91115
{

src/main/deploy/pathplanner/autos/L.auto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
}
1515
},
1616
"resetOdom": true,
17-
"folder": null,
17+
"folder": "DEBUG",
1818
"choreoAuto": false
1919
}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"version": "2025.0",
3+
"waypoints": [
4+
{
5+
"anchor": {
6+
"x": 3.196,
7+
"y": 4.192
8+
},
9+
"prevControl": null,
10+
"nextControl": {
11+
"x": 2.287806338028168,
12+
"y": 4.155411971830985
13+
},
14+
"isLocked": false,
15+
"linkedName": null
16+
},
17+
{
18+
"anchor": {
19+
"x": 1.612,
20+
"y": 0.673
21+
},
22+
"prevControl": {
23+
"x": 2.1280809859154917,
24+
"y": 1.5022887323943643
25+
},
26+
"nextControl": null,
27+
"isLocked": false,
28+
"linkedName": null
29+
}
30+
],
31+
"rotationTargets": [
32+
{
33+
"waypointRelativePos": 0.683574879227053,
34+
"rotationDegrees": 55.0
35+
}
36+
],
37+
"constraintZones": [],
38+
"pointTowardsZones": [],
39+
"eventMarkers": [
40+
{
41+
"name": "PrepCoralStation",
42+
"waypointRelativePos": 0.7611940298507465,
43+
"endWaypointRelativePos": null,
44+
"command": null
45+
}
46+
],
47+
"globalConstraints": {
48+
"maxVelocity": 4.5,
49+
"maxAcceleration": 10.0,
50+
"maxAngularVelocity": 540.0,
51+
"maxAngularAcceleration": 720.0,
52+
"nominalVoltage": 12.0,
53+
"unlimited": false
54+
},
55+
"goalEndState": {
56+
"velocity": 0,
57+
"rotation": 55.0
58+
},
59+
"reversed": false,
60+
"folder": "Score-CSBottom",
61+
"idealStartingState": {
62+
"velocity": 0,
63+
"rotation": 0.0
64+
},
65+
"useDefaultConstraints": true
66+
}

src/main/deploy/pathplanner/paths/C-CSBottom.path

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"eventMarkers": [
4040
{
4141
"name": "PrepCoralStation",
42-
"waypointRelativePos": 0.6925373134328354,
42+
"waypointRelativePos": 0.8000000000000017,
4343
"endWaypointRelativePos": null,
4444
"command": null
4545
}

src/main/deploy/pathplanner/paths/New New Path.path renamed to src/main/deploy/pathplanner/paths/CSBottom-A.path

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,47 @@
33
"waypoints": [
44
{
55
"anchor": {
6-
"x": 1.6453125,
7-
"y": 0.6958881578947365
6+
"x": 1.612,
7+
"y": 0.673
88
},
99
"prevControl": null,
1010
"nextControl": {
11-
"x": 2.645312500000002,
12-
"y": 0.6958881578947365
11+
"x": 2.0582201973313072,
12+
"y": 1.5368304538832596
1313
},
1414
"isLocked": false,
1515
"linkedName": null
1616
},
1717
{
1818
"anchor": {
19-
"x": 4.0,
20-
"y": 6.0
19+
"x": 3.196,
20+
"y": 4.192
2121
},
2222
"prevControl": {
23-
"x": 3.0,
24-
"y": 6.0
23+
"x": 2.7960000000000003,
24+
"y": 4.192
2525
},
2626
"nextControl": null,
2727
"isLocked": false,
2828
"linkedName": null
2929
}
3030
],
31-
"rotationTargets": [],
31+
"rotationTargets": [
32+
{
33+
"waypointRelativePos": 0.6743801652892595,
34+
"rotationDegrees": 0.0
35+
}
36+
],
3237
"constraintZones": [],
3338
"pointTowardsZones": [],
34-
"eventMarkers": [],
39+
"eventMarkers": [
40+
{
41+
"name": "PrepPlace",
42+
"waypointRelativePos": 0.6735802469135783,
43+
"endWaypointRelativePos": null,
44+
"command": null
45+
}
46+
],
3547
"globalConstraints": {
3648
"maxVelocity": 4.5,
3749
"maxAcceleration": 10.0,
@@ -45,10 +57,10 @@
4557
"rotation": 0.0
4658
},
4759
"reversed": false,
48-
"folder": null,
60+
"folder": "CSBottom-Score",
4961
"idealStartingState": {
5062
"velocity": 0,
51-
"rotation": 54.958070598461035
63+
"rotation": 55.0
5264
},
5365
"useDefaultConstraints": true
5466
}

src/main/deploy/pathplanner/paths/CSBottom-C.path

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,15 @@
3737
"constraintZones": [],
3838
"pointTowardsZones": [],
3939
"eventMarkers": [
40+
{
41+
"name": "GetCoralStationPiece",
42+
"waypointRelativePos": 0.011851851851851739,
43+
"endWaypointRelativePos": null,
44+
"command": null
45+
},
4046
{
4147
"name": "PrepPlace",
42-
"waypointRelativePos": 0.8059259259259244,
48+
"waypointRelativePos": 0.9501234567901256,
4349
"endWaypointRelativePos": null,
4450
"command": null
4551
}

src/main/deploy/pathplanner/paths/CSBottom-D.path

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,15 @@
3737
"constraintZones": [],
3838
"pointTowardsZones": [],
3939
"eventMarkers": [
40+
{
41+
"name": "GetCoralStationPiece",
42+
"waypointRelativePos": 0.0,
43+
"endWaypointRelativePos": null,
44+
"command": null
45+
},
4046
{
4147
"name": "PrepPlace",
42-
"waypointRelativePos": 0.8019753086419719,
48+
"waypointRelativePos": 1.0,
4349
"endWaypointRelativePos": null,
4450
"command": null
4551
}

0 commit comments

Comments
 (0)