Skip to content
This repository was archived by the owner on Sep 14, 2019. It is now read-only.

Commit 9e03514

Browse files
authored
Merge pull request #66 from DriverStationComputer/master
Big merge #1: DS PID testing code, intake code, 1st draft Talon PID, auto code
2 parents 869da04 + 5212a32 commit 9e03514

32 files changed

Lines changed: 2330 additions & 310 deletions

AAAScripts/scripts.txt

Lines changed: 389 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,389 @@
1+
# Naming Conventions
2+
# -------------------
3+
# 1. Robot's start position. R = right, C = center, L = left.
4+
# 2. Switch information. R = going for the right plate, L = going for the left plate, x = not going for switch
5+
# 3. Scale information. R = going for the right plate, L = going for the left plate, x = not going for scale
6+
# 4. Exchange. E = going for the exchange, x = not going for exchange
7+
8+
# 3.3(l) x 2.9(w)
9+
10+
#Cross Auto Line
11+
Rxxx:
12+
moveto (0, 120) #Drive past auto line
13+
14+
#-------------------------------------------------
15+
16+
#Switch
17+
RRxx:
18+
moveto (0, 128.4) (-42.6, 128.4) -90 #Drive directly forward to switch and then ram into switch
19+
switch
20+
21+
RLxx:
22+
moveto (0, 188.4) (-210.6, 188.4) (-210.6, 128.4) (-186.6, 128.4) 90 #Curve around switch and then "ram" into switch
23+
switch
24+
25+
#-------------------------------------------------
26+
27+
#Scale
28+
RxRx:
29+
moveto (0, 284.4) (-24.6, 284.4) -90 #Drive directly forward and place at initial horizontal to scale
30+
scale
31+
32+
RxLx:
33+
moveto (0, 188.4) (-246.6, 188.4) (-246.6, 284.4) (-192.6, 284.4) 90 #Curve around switch and drive to scale
34+
scale
35+
36+
#-------------------------------------------------
37+
38+
#Exchange
39+
RxxE
40+
moveto (0, 188.4) (-210.6, 188.4) (-210.6, 44.4) (-123.6, 44.4) (-123.6, -39.6) 180 #Curve around switch for baseline #then go to exchange
41+
exchange
42+
43+
#-------------------------------------------------
44+
45+
#Switch and Scale
46+
RRRx:
47+
moveto (0, 128.4) (-41.4, 128.4) 90 #Drive directly forward then turn into switch
48+
switch
49+
moveto (0, 128.4) #Back out from switch
50+
moveto (0, 80.4) (-9, 80.4) #Drive toward cubes
51+
intake
52+
moveto (0, 80.4) #Back out from cubes
53+
moveto (0, 284.4) (-24.6, 284.4) -90 #Drive toward scale
54+
scale
55+
56+
RRLx:
57+
moveto (0, 128.4) (-41.4, 128.4) 90 #Drive directly forward then turn into switch
58+
switch
59+
moveto (0, 128.4) #Back out from switch
60+
moveto (0, 80.4) (-9, 80.4) -90 #Drive toward cubes
61+
intake
62+
moveto (0, 80.4) #Back out from cubes
63+
moveto (0, 188.4) (-246.6, 188.4) (-246.6, 284.4) (-192.6, 284.4) 90 #Curve around switch + place at init distance to scale
64+
scale
65+
66+
RLRx:
67+
moveto (0, 284.4) (-24.6, 284.4) -90 #Drive directly forward and place at initial horizontal to scale
68+
scale
69+
moveto (0, 284.4) #Back out from switch
70+
moveto (0, 80.4) (-108, 80.4) -90 #Drive toward cubes
71+
intake
72+
moveto (0, 80.4) #Back out from cubes
73+
moveto (0, 188.4) (-210.6,188.4) (-210.6, 128.4) (-186.6, 128.4) #Drive toward switch
74+
switch
75+
76+
RLLx:
77+
moveto (0, 188.4) (-210.6,188.4) (-210.6, 128.4) (-186.6, 128.4) -90 #Curve around switch and then "ram" into switch
78+
switch
79+
moveto (-246.6, 128.4) #Back out from switch
80+
moveto (-246.6, 80.4) (-144, 80.4) #Drive toward cubes
81+
intake
82+
moveto (-246.6, 80.4) #Back out from cubes
83+
moveto (-246.6, 284.4) (-192.6, 284.4) 90 #Curve around switch + place at init distance to scale
84+
scale
85+
86+
#-------------------------------------------------
87+
88+
#Switch and Exchange
89+
RRxE:
90+
moveto (0, 128.4) (-41.4, 128.4) 90 #Drive directly forward then turn into switch
91+
switch
92+
moveto (-192, 128.4) #Back out from switch
93+
moveto (-192, 80.4) (-144, 80.4) #Drive toward cubes
94+
#intake
95+
moveto (0, 80.4) #Back out from cubes
96+
moveto (0, 188.4) (-210.6, 188.4) (-210.6, 44.4) (-123.6, 44.4) (-123.6, -39.6) 180 #Curve around switch for baseline #then go to
97+
exchange
98+
99+
RLxE:
100+
moveto (0, 188.4) (-210.6,188.4) (-210.6, 128.4) (-186.6, 128.4) 180 #Curve around switch and then "ram" into switch
101+
switch
102+
moveto (-246.6, 128.4) #Back out from switch
103+
moveto (-246.6, 80.4) (-12, 80.4) #Drive toward cubes
104+
#intake
105+
moveto (-246.6, 80.4) #Back out from cubes
106+
moveto (-246.6, 44.4) (-123.6, 44.4) (-123.6, -39.6) #Drive toward exchange
107+
exchange
108+
109+
# Naming Conventions
110+
# -------------------
111+
# 1. Robot's start position. R = right, C = center, L = left.
112+
# 2. Switch information. R = going for the right plate, L = going for the left plate, x = not going for switch
113+
# 3. Scale information. R = going for the right plate, L = going for the left plate, x = not going for scale
114+
# 4. Exchange. E = going for the exchange, x = not going for exchange
115+
116+
# 3.3(l) x 2.9(w)
117+
118+
#Cross Auto Line
119+
Lxxx:
120+
moveto (0, 120) #Drive past auto line
121+
122+
#-------------------------------------------------
123+
124+
#Switch
125+
LLxx:
126+
moveto (0, 129.8) (42.6, 129.8) -90 #Drive directly forward to switch and then ram into switch
127+
switch
128+
129+
LRxx:
130+
moveto (0, 188.4) (210.6,188.4) (210.6, 129.8) (186.6, 129.8) 90 #Curve around switch and then "ram" into switch
131+
switch
132+
133+
#-------------------------------------------------
134+
135+
#Scale
136+
LxLx:
137+
moveto (0, 284.4) (24.6, 284.4) -90 #Drive directly forward and place at initial horizontal to scale
138+
scale
139+
140+
LxRx:
141+
moveto (0, 188.4) (246.6, 188.4) (246.6, 284.4) (16.05, 284.4) 90 #Curve around switch + place at init distance to scale
142+
scale
143+
144+
#-------------------------------------------------
145+
146+
#Exchange
147+
LxxE
148+
moveto (0, 188.4) (210.6, 188.4) (210.6, 3.7) (124.8, 3.7) (124.8, -3.3) 180 #Curve around switch for baseline then go to exchange
149+
exchange
150+
151+
#-------------------------------------------------
152+
153+
#Switch and Scale
154+
LRRx:
155+
moveto (0, 188.4) (210.6,188.4) (210.6, 129.8) (186.6, 129.8) -90 #Curve around switch and then "ram" into switch
156+
switch
157+
moveto (246.6, 129.8) #Back out from switch
158+
moveto (246.6, 80.4) (12, 80.4) #Drive toward cubes
159+
intake
160+
moveto (246.6, 80.4) #Back out from cubes
161+
moveto (246.6, 284.4) (16.05, 284.4) 90 #Curve around switch + place at init distance to scale
162+
scale
163+
164+
LRLx:
165+
moveto (0, 284.4) (24.6, 284.4) -90 #Drive directly forward and place at initial horizontal to scale
166+
scale
167+
moveto (0, 284.4) #Back out from switch
168+
moveto (0, 80.4) (108, 80.4) -90 #Drive toward cubes
169+
intake
170+
moveto (0, 80.4) #Back out from cubes
171+
moveto (0, 188.4) (210.6,188.4) (210.6, 129.8) (186.6, 129.8) #Drive toward switch
172+
switch
173+
174+
LLRx:
175+
moveto (0, 129.8) (42.6, 129.8) 90 #Drive directly forward then turn into switch
176+
switch
177+
moveto (0, 129.8) #Back out from switch
178+
moveto (0, 80.4) (108, 80.4) -90 #Drive toward cubes
179+
intake
180+
moveto (0, 80.4) #Back out from cubes
181+
moveto (0, 188.4) (246.6, 188.4) (246.6, 284.4) (192.6, 284.4) 90 #Curve around switch and drive to scale
182+
scale
183+
184+
LLLx:
185+
moveto (0, 129.8) (42.6, 129.8) 90 #Drive directly forward then turn into switch
186+
switch
187+
moveto (0, 129.8) #Back out from switch
188+
moveto (0, 80.4) (108, 80.4) #Drive toward cubes
189+
intake
190+
moveto (0, 80.4) #Back out from cubes
191+
moveto (0, 284.4) (24.6, 284.4) -90 #Drive toward scale
192+
scale
193+
194+
#-------------------------------------------------
195+
196+
#Switch and Exchange
197+
LRxE:
198+
moveto (0, 188.4) (210.6,188.4) (210.6, 129.8) (186.6, 129.8) 180 #Curve around switch and then "ram" into switch
199+
switch
200+
moveto (246.6, 129.8) #Back out from switch
201+
moveto (246.6, 80.4) (12, 80.4) #Drive toward cubes
202+
intake
203+
moveto (246.6, 80.4) #Back out from cubes
204+
moveto (246.6, 3.7) (124.8, 3.7) (124.8, -39.6) #Drive toward exchange
205+
exchange
206+
207+
LLxE:
208+
moveto (0, 129.8) (42.6, 129.8) 90 #Drive directly forward then turn into switch
209+
switch
210+
moveto (17, 129.8) #Back out from switch
211+
moveto (17, 80.4) (12, 80.4) #Drive toward cubes
212+
intake
213+
moveto (0, 80.4) #Back out from cubes
214+
moveto (0, 188.4) (210.6, 188.4) (210.6, 44.4) (124.8, 44.4) (124.8, -39.6) 180 #Go to exchange
215+
exchange
216+
217+
# moveto
218+
# turn
219+
# move
220+
# switch
221+
# scale
222+
# exchange
223+
# wait
224+
# intake
225+
# jump
226+
# end
227+
228+
229+
230+
# 1. Robot's start position. R = right, C = center, L = left.
231+
# 2. Switch information. R = going for the right plate, L = going for the left plate, x = not going for # switch
232+
# 3. Scale information. R = going for the right plate, L = going for the left plate, x = not going for # scale
233+
# 4. Exchange. E = going for the exchange, x = not going for exchange
234+
235+
236+
# Location of Robot: rightmost next to exchange
237+
238+
# Cross Auto Line
239+
Cxxx:
240+
moveto (48,80.375) #cross baseline
241+
242+
243+
# Switch
244+
CRxx:
245+
moveto (0,60) 90 #5 feet forward, turn 90
246+
moveto (48,60) -90 #4 feet right,turn -90
247+
moveto(48,104.375) #7 feet forward until against switch enclosure, compensating for robot length
248+
switch #deploy switch
249+
250+
CLxx:
251+
moveto (0,60) -90 #5 feet forward, turn -90
252+
moveto (-48,60) 90 #4 feet left,turn 90
253+
moveto(-48,104.375) #7 feet forward until against switch enclosure,compensating for robot length
254+
switch #deploy switch
255+
256+
257+
# Scale
258+
CxRx:
259+
moveto (0,60) 90 #5 feet forward, turn 90
260+
moveto (114,60) -90 #9.5 feet right, turn -90
261+
move 224.375 #22 feet forward, compensating for robot length
262+
turn -90 #turn to face the switch
263+
scale #deploy scale
264+
265+
266+
CxLx:
267+
moveto (0,60) -90 #5 feet forward, turn -90
268+
moveto (-90,60) 90 #7.5 feet left, turn 90
269+
move 224.375 #22 feet forward, compensating for robot length
270+
turn 90 #turn to face the switch
271+
scale #deploy scale
272+
273+
274+
# Switch and Scale
275+
CRLx:
276+
moveto (0,60) 90 #5 feet forward, turn 90
277+
moveto (48,60) -90 #4 feet right,turn -90
278+
moveto(48,104.375) #7 feet forward until against switch enclosure
279+
switch #deploy switch
280+
move -39 #move 39 inches back
281+
turn -90 #turn -90 degrees
282+
move 48 #move 4 feet forward
283+
intake #intake
284+
turn -90 #turn -90
285+
move 45 # move 45 in. forward
286+
turn -90 #turn 90
287+
moveto (-90,60) 90 #7.5 feet left, turn 90
288+
move 264 #22 feet forward
289+
turn 90 #turn to face the switch
290+
scale #deploy scale2
291+
292+
293+
294+
CRRx:
295+
moveto (0,60) 90 #5 feet forward, turn 90
296+
moveto (48,60) -90 #4 feet right,turn -90
297+
moveto(48,104.375) #7 feet forward until against switch enclosure
298+
switch #deploy switch
299+
move -39 #move 39 inches back
300+
turn -90 #turn -90 degrees
301+
move 48 #move 4 feet forward
302+
intake
303+
turn -90 #turn -90nyu
304+
move 45 # move 45 in. forward
305+
turn -90 #turn -90 degrees
306+
moveto (114, 60) -90 #9.5 feet right, turn -90
307+
move 264 #22 feet forward
308+
turn -90 #turn to face the switch
309+
scale #deploy scale
310+
311+
312+
313+
CLRx:
314+
moveto (0,60) -90 #5 feet forward, turn -90
315+
moveto (-48,60) 90 #4 feet left,turn 90
316+
moveto(-48,104.375) #7 feet forward until against switch enclosure
317+
switch #deploy switch
318+
move -39 #move 39 inches back
319+
turn -90 #turn -90 degrees
320+
move 48 #move 4 feet forward
321+
intake #intake
322+
turn 90 #turn 90
323+
move 45 # move 45 in. forward
324+
turn 90 #turn 90 degrees
325+
moveto (114, 60) -90 #9.5 feet right, turn -90
326+
move 264 #22 feet forward
327+
turn -90 #turn to face the switch
328+
scale #deploy scale
329+
330+
331+
CLLx:
332+
moveto (0,60) -90 #5 feet forward, turn -90
333+
moveto (-48,60) 90 #4 feet left,turn 90
334+
moveto(-48,104.375) #7 feet forward until against switch enclosure
335+
switch #deploy switch
336+
move -39 #move 39 inches back
337+
turn 90 #turn 90 degrees
338+
move 48 #move 4 feet forward
339+
intake #intake
340+
turn 90 #turn -90
341+
move 45 # move 45 in. forward
342+
turn 90 #turn 90
343+
moveto (-90,60) -90 #7.5 feet right, turn -90
344+
move 264 #22 feet forward
345+
turn 90 #turn to face the switch
346+
scale #deploy scale2
347+
348+
349+
350+
351+
# Switch and Exchange
352+
CRxE:
353+
moveto (0,60) 90 #5 feet forward, turn 90
354+
moveto (48,60) -90 #4 feet right,turn -90
355+
moveto(48,104.375) #7 feet forward until against switch enclosure, compensating for robot length
356+
switch #deploy switch
357+
move -24 # 2 feet back
358+
turn -90
359+
move 12 # 1 ft forward
360+
intake
361+
turn -90
362+
move 72 #move 6 feet forwards
363+
turn 90
364+
move 60 #move 5 feet forward
365+
turn -90 #turn to face the exchange
366+
exchange
367+
368+
CLxE:
369+
moveto (0,60) -90 #5 feet forward, turn -90
370+
moveto (-48,60) 90 #3 feet left,turn 90
371+
moveto(-48,104.375) #7 feet forward until against switch enclosure,compensating for robot length
372+
switch #deploy switch
373+
move -24
374+
turn 90
375+
move 24
376+
intake
377+
turn 90
378+
move -84 #move 7 feet back
379+
turn 180 #turn 180 degrees to face the exchange
380+
exchange
381+
382+
# Exchange
383+
CxxE:
384+
moveto (0,60) -90 #5 feet forward, turn -90
385+
moveto (-48,60) 90 #3 feet left,turn 90
386+
moveto(-48,104.375) #7 feet forward until against switch enclosure,compensating for robot length
387+
move -96 #move 8 feet back
388+
turn 180 #turn 180 degrees to face the exchange
389+
exchange

Robot2018/lib/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/User_Libraries.properties
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#Sat Feb 17 17:04:37 PST 2018
2+
C\:\\Users\\dean\\git\\RobotCode2018\\Robot2018\\lib\\libpathfinderjava.so=4087ee38c338446b8305f67716260df4

Robot2018/lib/navx_frc.jar

231 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)