Skip to content

Commit 6908b6a

Browse files
committed
implemented choreo and added test auto
1 parent 0a55205 commit 6908b6a

File tree

6 files changed

+375
-10
lines changed

6 files changed

+375
-10
lines changed
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
{
2+
"name":"ShootTwice",
3+
"version":2,
4+
"type":"Swerve",
5+
"variables":{
6+
"expressions":{},
7+
"poses":{}
8+
},
9+
"config":{
10+
"frontLeft":{
11+
"x":{
12+
"exp":"11 in",
13+
"val":0.2794
14+
},
15+
"y":{
16+
"exp":"11 in",
17+
"val":0.2794
18+
}
19+
},
20+
"backLeft":{
21+
"x":{
22+
"exp":"-11 in",
23+
"val":-0.2794
24+
},
25+
"y":{
26+
"exp":"11 in",
27+
"val":0.2794
28+
}
29+
},
30+
"mass":{
31+
"exp":"150 lbs",
32+
"val":68.0388555
33+
},
34+
"inertia":{
35+
"exp":"6 kg m ^ 2",
36+
"val":6.0
37+
},
38+
"gearing":{
39+
"exp":"6.5",
40+
"val":6.5
41+
},
42+
"radius":{
43+
"exp":"2 in",
44+
"val":0.0508
45+
},
46+
"vmax":{
47+
"exp":"6000 RPM",
48+
"val":628.3185307179587
49+
},
50+
"tmax":{
51+
"exp":"1.2 N * m",
52+
"val":1.2
53+
},
54+
"cof":{
55+
"exp":"1.5",
56+
"val":1.5
57+
},
58+
"bumper":{
59+
"front":{
60+
"exp":"16 in",
61+
"val":0.4064
62+
},
63+
"side":{
64+
"exp":"16 in",
65+
"val":0.4064
66+
},
67+
"back":{
68+
"exp":"16 in",
69+
"val":0.4064
70+
}
71+
},
72+
"differentialTrackWidth":{
73+
"exp":"22 in",
74+
"val":0.5588
75+
}
76+
},
77+
"generationFeatures":[],
78+
"codegen":{
79+
"root":"..\\C:\\Users\\shsfa\\GitHub\\Rebuilt-2026\\src\\main\\deploy\\choreo",
80+
"genVars":true,
81+
"genTrajData":true,
82+
"useChoreoLib":true
83+
}
84+
}

src/main/deploy/choreo/align.traj

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"name":"align",
3+
"version":3,
4+
"snapshot":{
5+
"waypoints":[
6+
{"x":2.0, "y":6.5, "heading":0.0, "intervals":8, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false},
7+
{"x":2.0, "y":6.5, "heading":0.0, "intervals":40, "split":false, "fixTranslation":true, "fixHeading":false, "overrideIntervals":false}],
8+
"constraints":[
9+
{"from":"first", "to":null, "data":{"type":"StopPoint", "props":{}}, "enabled":true},
10+
{"from":"last", "to":null, "data":{"type":"StopPoint", "props":{}}, "enabled":true},
11+
{"from":"first", "to":"last", "data":{"type":"KeepInRectangle", "props":{"x":0.0, "y":0.0, "w":16.541, "h":8.0692}}, "enabled":false},
12+
{"from":1, "to":"last", "data":{"type":"PointAt", "props":{"x":4.6, "y":4.0, "tolerance":0.017453292519943295, "flip":false}}, "enabled":true}],
13+
"targetDt":0.05
14+
},
15+
"params":{
16+
"waypoints":[
17+
{"x":{"exp":"2 m", "val":2.0}, "y":{"exp":"6.5 m", "val":6.5}, "heading":{"exp":"0 deg", "val":0.0}, "intervals":8, "split":false, "fixTranslation":true, "fixHeading":true, "overrideIntervals":false},
18+
{"x":{"exp":"2 m", "val":2.0}, "y":{"exp":"6.5 m", "val":6.5}, "heading":{"exp":"0 deg", "val":0.0}, "intervals":40, "split":false, "fixTranslation":true, "fixHeading":false, "overrideIntervals":false}],
19+
"constraints":[
20+
{"from":"first", "to":null, "data":{"type":"StopPoint", "props":{}}, "enabled":true},
21+
{"from":"last", "to":null, "data":{"type":"StopPoint", "props":{}}, "enabled":true},
22+
{"from":"first", "to":"last", "data":{"type":"KeepInRectangle", "props":{"x":{"exp":"0 m", "val":0.0}, "y":{"exp":"0 m", "val":0.0}, "w":{"exp":"16.541 m", "val":16.541}, "h":{"exp":"8.0692 m", "val":8.0692}}}, "enabled":false},
23+
{"from":1, "to":"last", "data":{"type":"PointAt", "props":{"x":{"exp":"4.6 m", "val":4.6}, "y":{"exp":"4 m", "val":4.0}, "tolerance":{"exp":"1 deg", "val":0.017453292519943295}, "flip":false}}, "enabled":true}],
24+
"targetDt":{
25+
"exp":"0.05 s",
26+
"val":0.05
27+
}
28+
},
29+
"trajectory":{
30+
"config":{
31+
"frontLeft":{
32+
"x":0.2794,
33+
"y":0.2794
34+
},
35+
"backLeft":{
36+
"x":-0.2794,
37+
"y":0.2794
38+
},
39+
"mass":68.0388555,
40+
"inertia":6.0,
41+
"gearing":6.5,
42+
"radius":0.0508,
43+
"vmax":628.3185307179587,
44+
"tmax":1.2,
45+
"cof":1.5,
46+
"bumper":{
47+
"front":0.4064,
48+
"side":0.4064,
49+
"back":0.4064
50+
},
51+
"differentialTrackWidth":0.5588
52+
},
53+
"sampleType":"Swerve",
54+
"waypoints":[0.0,0.27237],
55+
"samples":[
56+
{"t":0.0, "x":2.0, "y":6.5, "heading":0.0, "vx":0.0, "vy":0.0, "omega":0.0, "ax":0.0, "ay":0.0, "alpha":-40.39234, "fx":[108.42611,108.42611,-108.42611,-108.42611], "fy":[-108.42611,108.42611,108.42611,-108.42611]},
57+
{"t":0.03405, "x":2.0, "y":6.5, "heading":0.0, "vx":0.0, "vy":0.0, "omega":-1.37522, "ax":0.0, "ay":0.0, "alpha":-40.37069, "fx":[108.368,108.368,-108.368,-108.368], "fy":[-108.368,108.368,108.368,-108.368]},
58+
{"t":0.06809, "x":2.0, "y":6.5, "heading":-0.04682, "vx":0.0, "vy":0.0, "omega":-2.74971, "ax":0.0, "ay":0.0, "alpha":-40.32021, "fx":[103.04812,113.17965,-103.04812,-113.17965], "fy":[-113.17965,103.04812,113.17965,-103.04812]},
59+
{"t":0.10214, "x":2.0, "y":6.5, "heading":-0.14044, "vx":0.0, "vy":0.0, "omega":-4.12247, "ax":0.0, "ay":0.0, "alpha":-40.06877, "fx":[91.44284,121.55433,-91.44284,-121.55433], "fy":[-121.55433,91.44284,121.55433,-91.44284]},
60+
{"t":0.13619, "x":2.0, "y":6.5, "heading":-0.2808, "vx":0.0, "vy":0.0, "omega":-5.48668, "ax":0.0, "ay":0.0, "alpha":40.06877, "fx":[-73.53868,-133.15146,73.53868,133.15146], "fy":[133.15146,-73.53868,-133.15146,73.53868]},
61+
{"t":0.17023, "x":2.0, "y":6.5, "heading":-0.4676, "vx":0.0, "vy":0.0, "omega":-4.12247, "ax":0.0, "ay":0.0, "alpha":40.32021, "fx":[-47.82896,-145.39924,47.82896,145.39924], "fy":[145.39924,-47.82896,-145.39924,47.82896]},
62+
{"t":0.20428, "x":2.0, "y":6.5, "heading":-0.60795, "vx":0.0, "vy":0.0, "omega":-2.74971, "ax":0.0, "ay":0.0, "alpha":40.37069, "fx":[-27.05171,-150.8491,27.05171,150.8491], "fy":[150.8491,-27.05171,-150.8491,27.05171]},
63+
{"t":0.23833, "x":2.0, "y":6.5, "heading":-0.70157, "vx":0.0, "vy":0.0, "omega":-1.37522, "ax":0.0, "ay":0.0, "alpha":40.39234, "fx":[-12.83854,-152.79927,12.83854,152.79927], "fy":[152.79927,-12.83854,-152.79927,12.83854]},
64+
{"t":0.27237, "x":2.0, "y":6.5, "heading":-0.74839, "vx":0.0, "vy":0.0, "omega":0.0, "ax":0.0, "ay":0.0, "alpha":0.0, "fx":[0.0,0.0,0.0,0.0], "fy":[0.0,0.0,0.0,0.0]}],
65+
"splits":[0]
66+
},
67+
"events":[]
68+
}

0 commit comments

Comments
 (0)