Skip to content

Commit fface77

Browse files
author
Noah Gleason
committed
End of day code
1 parent 137dfb7 commit fface77

15 files changed

+1277
-1415
lines changed

Pathgen/src/main/java/org/usfirst/frc/team449/pathgen/Pathgen.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public static void main(String[] args) throws IOException {
3232
final double RED_BACK_CORNER_TO_SIDE_PEG = 97.;
3333
final double RED_HALF_KEY_LENGTH = 152./2.;
3434
final double RED_KEY_CORNER_TO_SIDE_PEG = 21.;
35-
final double AIRSHIP_PARALLEL_OFFSET_BLUE = 0.;
36-
final double AIRSHIP_PARALLEL_OFFSET_RED = 0.;
35+
final double AIRSHIP_PARALLEL_OFFSET_BLUE = 1.;
36+
final double AIRSHIP_PARALLEL_OFFSET_RED = 2.;
3737

3838
final double PEG_BASE_TO_CENTER = CENTER_TO_FRONT + CARRIAGE_LEN + BACK_FROM_PEG;
3939

@@ -106,24 +106,24 @@ public static void main(String[] args) throws IOException {
106106

107107
Waypoint[] blueLoadingToLoading = new Waypoint[]{
108108
new Waypoint(0, 0, 0),
109-
new Waypoint(27, -5, 0)
109+
new Waypoint(22, -5, 0)
110110
};
111111

112112
Waypoint[] blueBoilerToLoading = new Waypoint[]{
113113
new Waypoint(0, 0, 0),
114114
new Waypoint(5, 0, 0),
115-
new Waypoint(27, -15, 0)
115+
new Waypoint(22, -15, 0)
116116
};
117117

118118
Waypoint[] redLoadingToLoading = new Waypoint[]{
119119
new Waypoint(0, 0, 0),
120-
new Waypoint(27, 5, 0)
120+
new Waypoint(22, 5, 0)
121121
};
122122

123123
Waypoint[] redBoilerToLoading = new Waypoint[]{
124124
new Waypoint(0, 0, 0),
125125
new Waypoint(5, 0, 0),
126-
new Waypoint(27, 15, 0)
126+
new Waypoint(22, 15, 0)
127127
};
128128

129129
Map<String, Waypoint[]> profiles = new HashMap<>();

RoboRIO/src/main/java/org/usfirst/frc/team449/robot/Robot.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ public void robotInit() {
9292
try {
9393
//Read the yaml file with SnakeYaml so we can use anchors and merge syntax.
9494
// Map<?, ?> normalized = (Map<?, ?>) yaml.load(new FileReader(RESOURCES_PATH+"ballbasaur_map.yml"));
95-
Map<?, ?> normalized = (Map<?, ?>) yaml.load(new FileReader(RESOURCES_PATH + "naveen_map.yml"));
96-
// Map<?, ?> normalized = (Map<?, ?>) yaml.load(new FileReader(RESOURCES_PATH + "nate_map.yml"));
95+
// Map<?, ?> normalized = (Map<?, ?>) yaml.load(new FileReader(RESOURCES_PATH + "naveen_map.yml"));
96+
Map<?, ?> normalized = (Map<?, ?>) yaml.load(new FileReader(RESOURCES_PATH + "nate_map.yml"));
9797
// Map<?, ?> normalized = (Map<?, ?>) yaml.load(new FileReader(RESOURCES_PATH + "calcifer_outreach_map.yml"));
9898
YAMLMapper mapper = new YAMLMapper();
9999
//Turn the Map read by SnakeYaml into a String so Jackson can read it.

RoboRIO/src/main/resources/calciferLeftBlueBoilerToLoadingProfile.csv

Lines changed: 116 additions & 130 deletions
Large diffs are not rendered by default.

RoboRIO/src/main/resources/calciferLeftBlueLoadingToLoadingProfile.csv

Lines changed: 124 additions & 144 deletions
Large diffs are not rendered by default.
Lines changed: 76 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,78 @@
11
77
22
5.434782608695652E-4, 0.021739130434782608, 0.43478260869565216, 0.05
3-
0.002555019167667837, 0.040230818135965435, 0.36983375402365654, 0.05
4-
0.007080819548369373, 0.09051600761403072, 1.0057037895613057, 0.05
5-
0.015126116085535804, 0.16090593074332862, 1.4077984625859579, 0.05
6-
0.027695428158481392, 0.25138624145891175, 1.8096062143116625, 0.05
7-
0.045792096820766265, 0.3619333732456975, 2.2109426357357154, 0.05
8-
0.0704177044065469, 0.49251215171561286, 2.6115755693983065, 0.05
9-
0.10257137005940736, 0.6430733130572092, 3.011223226831926, 0.05
10-
0.1432489142944608, 0.8135508847010683, 3.4095514328771825, 0.05
11-
0.19344188574201734, 1.003859428951131, 3.806170885001252, 0.05
12-
0.2536350083326256, 1.203862451812165, 4.000060457220682, 0.05
13-
0.3238069889442046, 1.4034396122315806, 3.991543208388313, 0.05
14-
0.4039327289691337, 1.6025148004985816, 3.98150376534002, 0.05
15-
0.4939832213717271, 1.8010098480518693, 3.9699009510657524, 0.05
16-
0.5939254462017101, 1.9988444965996581, 3.9566929709557774, 0.05
17-
0.7037222730237486, 2.1959365364407692, 3.9418407968222224, 0.05
18-
0.8233323790956597, 2.3922021214382236, 3.925311699949088, 0.05
19-
0.9527101969662591, 2.587556357411989, 3.907084719475309, 0.05
20-
1.091805908425134, 2.7819142291774956, 3.8871574353101312, 0.05
21-
1.2405655067914159, 2.9751919673256375, 3.8655547629628373, 0.05
22-
1.3989309547600475, 3.1673089593726336, 3.842339840939921, 0.05
23-
1.5668404728356555, 3.358190361512159, 3.8176280427905063, 0.05
24-
1.7442289996464004, 3.5477705362148972, 3.791603494054767, 0.05
25-
1.9305379061877364, 3.7261781308267197, 3.5681518922364486, 0.05
26-
2.124722186193775, 3.8836856001207707, 3.1501493858810203, 0.05
27-
2.3257469954079206, 4.020496184282918, 2.736211683242953, 0.05
28-
2.5325897204097987, 4.136854500037558, 2.3271663150927857, 0.05
29-
2.7442418516731064, 4.233042625266152, 1.9237625045718865, 0.05
30-
2.9597105401547337, 4.309373769632548, 1.5266228873279175, 0.05
31-
3.178019703358517, 4.366183264075671, 1.1361898888624644, 0.05
32-
3.398210547726502, 4.403816887359695, 0.7526724656804795, 0.05
33-
3.619341391612206, 4.422616877714078, 0.3759998070876591, 0.05
34-
3.840486707436057, 4.422906316477021, 0.005788775258857015, 0.05
35-
4.061214758411385, 4.414561019506558, -0.16690593940925424, 0.05
36-
4.2815814750447805, 4.407334332667913, -0.14453373677289605, 0.05
37-
4.501647660701351, 4.401323713131398, -0.12021239073030543, 0.05
38-
4.721478321586323, 4.396613217699454, -0.09420990863887369, 0.05
39-
4.941141853565951, 4.393270639592561, -0.06685156213785959, 0.05
40-
5.160709108663971, 4.391345101960384, -0.03851075264353909, 0.05
41-
5.380252371505669, 4.390865256833966, -0.00959690252836154, 0.05
42-
5.599844282216389, 4.391838214214386, 0.019459147608387184, 0.05
43-
5.819556745913994, 4.394249273952096, 0.0482211947542055, 0.05
44-
6.039459869940862, 4.398062480537363, 0.07626413170534363, 0.05
45-
6.25933396070144, 4.397481815211559, -0.011613306516089494, 0.05
46-
6.478474135858947, 4.382803503150124, -0.2935662412286888, 0.05
47-
6.695972433757934, 4.349965957979743, -0.6567509034076302, 0.05
48-
6.910906617754183, 4.298683679924973, -1.0256455610953985, 0.05
49-
7.122338348794813, 4.228634620812605, -1.4009811822473495, 0.05
50-
7.329312221020662, 4.139477444516989, -1.7831435259123296, 0.05
51-
7.530855629795372, 4.030868175494196, -2.1721853804558577, 0.05
52-
7.725979385452628, 3.902475113145115, -2.5678612469816198, 0.05
53-
7.913678947502198, 3.7539912409913914, -2.969677443074472, 0.05
54-
8.092936138419807, 3.5851438183521878, -3.376948452784072, 0.05
55-
8.263014390424868, 3.401565040101198, -3.6715755650197934, 0.05
56-
8.423660496794994, 3.2129221274025346, -3.7728582539732702, 0.05
57-
8.574817020561625, 3.023130475332608, -3.795833041398531, 0.05
58-
8.71642816204279, 2.832222829623323, -3.8181529141856974, 0.05
59-
8.848440533195884, 2.6402474230618598, -3.839508131229268, 0.05
60-
8.970803720706188, 2.447263750206068, -3.8596734571158375, 0.05
61-
9.083470680495367, 2.2533391957835884, -3.8784910884495893, 0.05
62-
9.18639800073971, 2.058546404886856, -3.8958558179346525, 0.05
63-
9.279546064227262, 1.8629612697510305, -3.9117027027165063, 0.05
64-
9.362879136569507, 1.66666144684493, -3.925996458122012, 0.05
65-
9.43636540079801, 1.4697252845700555, -3.9387232454974885, 0.05
66-
9.499976955086243, 1.272231085764653, -3.9498839761080484, 0.05
67-
9.553689787595594, 1.074256650187029, -3.9594887115524813, 0.05
68-
9.597782015936328, 0.8818445668146697, -3.8482416674471853, 0.05
69-
9.633034006139441, 0.7050398040622425, -3.5360952550485436, 0.05
70-
9.660430288649021, 0.5479256501915888, -3.142283077413075, 0.05
71-
9.680959293103124, 0.4105800890820423, -2.7469112221909295, 0.05
72-
9.695612415459577, 0.2930624471290618, -2.3503528390596093, 0.05
73-
9.705383218342924, 0.19541605766694564, -1.9529277892423236, 0.05
74-
9.711266762445009, 0.11767088204170933, -1.5549035125047261, 0.05
75-
9.714259064124553, 0.05984603359087737, -1.1564969690166393, 0.05
76-
9.715356678643403, 0.021952290376997047, -0.7578748642776064, 0.05
77-
9.715556406158793, 0.0039945503077916545, -0.3591548013841078, 0.05
78-
9.715556406158793, 0.0, -0.07989100615583308, 0.05
3+
0.002547922338573533, 0.04008888155407936, 0.366995022385935, 0.05
4+
0.007057750126825648, 0.09019655576504229, 1.0021534842192585, 0.05
5+
0.015074634755412781, 0.16033769257174263, 1.4028227361340067, 0.05
6+
0.02759951191324668, 0.250497543156678, 1.8031970116987073, 0.05
7+
0.045632106247810486, 0.3606518866912761, 2.2030868706919624, 0.05
8+
0.07017033579254328, 0.4907645908946558, 2.602254084067593, 0.05
9+
0.10220959018186551, 0.6407850877864446, 3.000409937835776, 0.05
10+
0.14274187669920899, 0.8106457303468695, 3.3972128512084976, 0.05
11+
0.19275482839742641, 1.0002590339643485, 3.7922660723495794, 0.05
12+
0.2527309468282781, 1.1995223686170342, 3.985266693053715, 0.05
13+
0.3226484478963113, 1.398350021360664, 3.976553054872598, 0.05
14+
0.4024817005466407, 1.5966650530065873, 3.9663006329184647, 0.05
15+
0.4922011468105695, 1.7943889252785756, 3.9544774454397658, 0.05
16+
0.5917732280809598, 1.991441625407806, 3.9410540025846075, 0.05
17+
0.7011603254155562, 2.187741946691928, 3.926006425682438, 0.05
18+
0.8203207268880163, 2.383208029449202, 3.9093216551454812, 0.05
19+
0.949208636825964, 2.5777581987589557, 3.8910033861950755, 0.05
20+
1.0877742466501221, 2.771312196483163, 3.8710799544841468, 0.05
21+
1.2359638920671863, 2.963792908341281, 3.84961423716236, 0.05
22+
1.3937203271800964, 3.155128702258203, 3.8267158783384403, 0.05
23+
1.5609831527126452, 3.3452565106509766, 3.802556167855471, 0.05
24+
1.7376894431877534, 3.5341258095021644, 3.777385977023755, 0.05
25+
1.9232855267844553, 3.7119216719340375, 3.5559172486374635, 0.05
26+
2.1167342542962513, 3.868974550235916, 3.1410575660375706, 0.05
27+
2.317009657382493, 4.00550806172483, 2.730670229778287, 0.05
28+
2.5230989770541816, 4.121786393433771, 2.325566634178813, 0.05
29+
2.7340044184447576, 4.218108827811515, 1.9264486875548847, 0.05
30+
2.9487445000579706, 4.29480163226426, 1.533856089054897, 0.05
31+
3.166354859065542, 4.352207180151429, 1.1481109577433735, 0.05
32+
3.3858883852105803, 4.39067052290077, 0.7692668549868209, 0.05
33+
3.6064145828935934, 4.410523953660261, 0.3970686151898306, 0.05
34+
3.8270181098526592, 4.412070539181317, 0.030931710421118197, 0.05
35+
4.047274962316693, 4.405137049280669, -0.13866979801296253, 0.05
36+
4.267246740094348, 4.399435555553101, -0.11402987455136682, 0.05
37+
4.486999049585689, 4.3950461898268385, -0.08778731452524724, 0.05
38+
4.706600666997822, 4.392032348242658, -0.060276831683605536, 0.05
39+
4.926122588390229, 4.390438427848138, -0.031878407890406635, 0.05
40+
5.14563699818124, 4.390288195820223, -0.0030046405582950797, 0.05
41+
5.365216193176365, 4.391583899902489, 0.02591408164532183, 0.05
42+
5.584931502407609, 4.394306184624881, 0.054445694447835535, 0.05
43+
5.804852243168238, 4.398414815212578, 0.08217261175394341, 0.05
44+
6.025044751452367, 4.403850165682595, 0.10870700940033728, 0.05
45+
6.245198333898607, 4.403071648924784, -0.01557033515622308, 0.05
46+
6.4645142044679185, 4.38631741138623, -0.33508475077107747, 0.05
47+
6.682073725568025, 4.351190422002128, -0.702539787682035, 0.05
48+
6.896942619376865, 4.297377876176792, -1.0762509165067335, 0.05
49+
7.108169743702181, 4.22454248650632, -1.4567077934094286, 0.05
50+
7.314786697226674, 4.132339070489871, -1.8440683203289865, 0.05
51+
7.515808185804885, 4.020429771564221, -2.2381859785129876, 0.05
52+
7.710233035993695, 3.8884970037761937, -2.638655355760555, 0.05
53+
7.897045722284494, 3.7362537258159825, -3.044865559204224, 0.05
54+
8.075218266397918, 3.5634508822685067, -3.4560568709495154, 0.05
55+
8.244094143940764, 3.3775175508569246, -3.7186666282316416, 0.05
56+
8.403503777439798, 3.1881926699807033, -3.786497617524427, 0.05
57+
8.553387786400394, 2.9976801792119177, -3.8102498153757125, 0.05
58+
8.693689252998295, 2.8060293319580074, -3.833016945078205, 0.05
59+
8.824354315768986, 2.6133012554138184, -3.85456153088378, 0.05
60+
8.94533258016446, 2.4195652879094784, -3.8747193500867994, 0.05
61+
9.05657738727957, 2.224896142302183, -3.8933829121459063, 0.05
62+
9.158045973195842, 2.0293717183254465, -3.9104884795347328, 0.05
63+
9.24969954879504, 1.8330715119839447, -3.926004126830036, 0.05
64+
9.331503321870176, 1.6360754615027286, -3.939921009624321, 0.05
65+
9.403426479659453, 1.4384631557855494, -3.952246114343585, 0.05
66+
9.465442147068162, 1.2403133481741662, -3.9629961522276647, 0.05
67+
9.517527330149933, 1.04170366163543, -3.9721937307747224, 0.05
68+
9.560051072228802, 0.850474841577378, -3.8245764011610417, 0.05
69+
9.59388610464899, 0.6767006484037414, -3.4754838634727303, 0.05
70+
9.62002061763165, 0.522690259653181, -3.080207775011208, 0.05
71+
9.639446461056858, 0.3885168685041588, -2.6834678229804454, 0.05
72+
9.653158247802333, 0.27423573490951025, -2.2856226718929706, 0.05
73+
9.662152589415125, 0.1798868322558513, -1.8869780530731788, 0.05
74+
9.667427461601264, 0.10549744372278529, -1.4877877706613203, 0.05
75+
9.669981693568813, 0.051084639350972884, -1.088256087436248, 0.05
76+
9.670814581254183, 0.016657753707390224, -0.6885377128716532, 0.05
77+
9.670925619978238, 0.002220774481126446, -0.28873958452527554, 0.05
78+
9.670925619978238, 0.0, -0.04441548962252892, 0.05

0 commit comments

Comments
 (0)