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

Commit 091b6b2

Browse files
authored
Merge pull request #83 from Barmaluk/patch-1
Fixed All Scripts
2 parents 64b5912 + 64927f2 commit 091b6b2

File tree

1 file changed

+78
-89
lines changed

1 file changed

+78
-89
lines changed

AAAScripts/scripts.txt

Lines changed: 78 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -9,101 +9,100 @@
99

1010
#Cross Auto Line
1111
Rxxx:
12-
moveto (0, 120) #Drive past auto line
12+
moveto (0,120) #Drive past auto line
1313

1414
#-------------------------------------------------
1515

1616
#Switch
1717
RRxx:
18-
moveto (0, 128.4) (-42.6, 128.4) -90 #Drive directly forward to switch and then ram into switch
18+
moveto (0,128.4) (-42.6,128.4) -90 #Drive directly forward to switch and then ram into switch
1919
switch
2020

2121
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
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
2323
switch
2424

2525
#-------------------------------------------------
2626

2727
#Scale
2828
RxRx:
29-
moveto (0, 284.4) (-24.6, 284.4) -90 #Drive directly forward and place at initial horizontal to scale
29+
moveto (0,284.4) (-24.6,284.4) -90 #Drive directly forward and place at initial horizontal to scale
3030
scale
3131

3232
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
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
3434
scale
3535

3636
#-------------------------------------------------
3737

3838
#Exchange
3939
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
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
4141
exchange
4242

4343
#-------------------------------------------------
4444

4545
#Switch and Scale
4646
RRRx:
47-
moveto (0, 128.4) (-41.4, 128.4) 90 #Drive directly forward then turn into switch
47+
moveto (0,128.4) (-41.4,128.4) -90 #Drive directly forward then turn into switch
4848
switch
49-
moveto (0, 128.4) #Back out from switch
50-
moveto (0, 80.4) (-9, 80.4) #Drive toward cubes
49+
moveto (0,128.4) #Back out from switch
50+
moveto (0,80.4) (-9,80.4) #Drive toward cubes
5151
intake
52-
moveto (0, 80.4) #Back out from cubes
53-
moveto (0, 284.4) (-24.6, 284.4) -90 #Drive toward scale
52+
moveto (0,80.4) #Back out from cubes
53+
moveto (0,284.4) (-24.6,284.4) -90 #Drive toward scale
5454
scale
5555

5656
RRLx:
57-
moveto (0, 128.4) (-41.4, 128.4) 90 #Drive directly forward then turn into switch
57+
moveto (0,128.4) (-41.4,128.4) -90 #Drive directly forward then turn into switch
5858
switch
59-
moveto (0, 128.4) #Back out from switch
60-
moveto (0, 80.4) (-9, 80.4) -90 #Drive toward cubes
59+
moveto (0,128.4) #Back out from switch
60+
moveto (0,80.4) (-9,80.4) -90 #Drive toward cubes
6161
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
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
6464
scale
6565

6666
RLRx:
67-
moveto (0, 284.4) (-24.6, 284.4) -90 #Drive directly forward and place at initial horizontal to scale
67+
moveto (0,284.4) (-24.6,284.4) -90 #Drive directly forward and place at initial horizontal to scale
6868
scale
69-
moveto (0, 284.4) #Back out from switch
70-
moveto (0, 80.4) (-108, 80.4) -90 #Drive toward cubes
69+
moveto (0,284.4) #Back out from switch
70+
moveto (0,80.4) (-108,80.4) -90 #Drive toward cubes
7171
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
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
7474
switch
7575

7676
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
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
7878
switch
79-
moveto (-246.6, 128.4) #Back out from switch
80-
moveto (-246.6, 80.4) (-144, 80.4) #Drive toward cubes
79+
moveto (-246.6,128.4) #Back out from switch
80+
moveto (-246.6,80.4) (-144,80.4) #Drive toward cubes
8181
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
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
8484
scale
8585

8686
#-------------------------------------------------
8787

8888
#Switch and Exchange
8989
RRxE:
90-
moveto (0, 128.4) (-41.4, 128.4) 90 #Drive directly forward then turn into switch
90+
moveto (0,128.4) (-41.4,128.4) -90 #Drive directly forward then turn into switch
9191
switch
92-
moveto (-192, 128.4) #Back out from switch
93-
moveto (-192, 80.4) (-144, 80.4) #Drive toward cubes
94-
#intake
92+
moveto (0,128.4) (0,80.4) (-144,80.4) #Back out from switch
93+
intake
9594
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
95+
moveto (0,188.4) (-210.6,188.4) (-210.6,44.4) (-123.6,44.4) 180 #Curve around switch for baseline #then go to
9796
exchange
9897

9998
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
99+
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
101100
switch
102-
moveto (-246.6, 128.4) #Back out from switch
103-
moveto (-246.6, 80.4) (-12, 80.4) #Drive toward cubes
101+
moveto (-246.6,128.4) #Back out from switch
102+
moveto (-246.6,80.4) (-12, 80.4) #Drive toward cubes
104103
#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
104+
moveto (-246.6,80.4) #Back out from cubes
105+
moveto (-246.6,44.4) (-123.6,44.4) (-123.6,-39.6) #Drive toward exchange
107106
exchange
108107

109108
# Naming Conventions
@@ -123,22 +122,22 @@ Lxxx:
123122

124123
#Switch
125124
LLxx:
126-
moveto (0, 129.8) (42.6, 129.8) -90 #Drive directly forward to switch and then ram into switch
125+
moveto (0, 129.8) (42.6, 129.8) 90 #Drive directly forward to switch and then ram into switch
127126
switch
128127

129128
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
129+
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
131130
switch
132131

133132
#-------------------------------------------------
134133

135134
#Scale
136135
LxLx:
137-
moveto (0, 284.4) (24.6, 284.4) -90 #Drive directly forward and place at initial horizontal to scale
136+
moveto (0, 284.4) (24.6, 284.4) 90 #Drive directly forward and place at initial horizontal to scale
138137
scale
139138

140139
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
140+
moveto (0, 188.4) (246.6, 188.4) (246.6, 284.4) (216.05, 284.4) -90 #Curve around switch + place at init distance to scale
142141
scale
143142

144143
#-------------------------------------------------
@@ -158,7 +157,7 @@ LRRx:
158157
moveto (246.6, 80.4) (12, 80.4) #Drive toward cubes
159158
intake
160159
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
160+
moveto (246.6, 284.4) (16.05, 284.4) -90 #Curve around switch + place at init distance to scale
162161
scale
163162

164163
LRLx:
@@ -168,50 +167,50 @@ LRLx:
168167
moveto (0, 80.4) (108, 80.4) -90 #Drive toward cubes
169168
intake
170169
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
170+
moveto (0, 188.4) (210.6,188.4) (210.6, 129.8) (186.6, 129.8) 90 #Drive toward switch
172171
switch
173172

174173
LLRx:
175174
moveto (0, 129.8) (42.6, 129.8) 90 #Drive directly forward then turn into switch
176175
switch
177176
moveto (0, 129.8) #Back out from switch
178-
moveto (0, 80.4) (108, 80.4) -90 #Drive toward cubes
177+
moveto (0, 80.4) (108, 80.4) 90 #Drive toward cubes
179178
intake
180179
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
180+
moveto (0, 188.4) (246.6, 188.4) (246.6, 284.4) (192.6, 284.4) -90 #Curve around switch and drive to scale
182181
scale
183182

184183
LLLx:
185184
moveto (0, 129.8) (42.6, 129.8) 90 #Drive directly forward then turn into switch
186185
switch
187186
moveto (0, 129.8) #Back out from switch
188-
moveto (0, 80.4) (108, 80.4) #Drive toward cubes
187+
moveto (0, 80.4) (108, 80.4) 90 #Drive toward cubes
189188
intake
190189
moveto (0, 80.4) #Back out from cubes
191-
moveto (0, 284.4) (24.6, 284.4) -90 #Drive toward scale
190+
moveto (0, 284.4) (24.6, 284.4) 90 #Drive toward scale
192191
scale
193192

194193
#-------------------------------------------------
195194

196195
#Switch and Exchange
197196
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
197+
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
199198
switch
200199
moveto (246.6, 129.8) #Back out from switch
201200
moveto (246.6, 80.4) (12, 80.4) #Drive toward cubes
202201
intake
203202
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
203+
moveto (246.6, 3.7) (124.8, 3.7) 180 #Drive toward exchange
205204
exchange
206205

207206
LLxE:
208207
moveto (0, 129.8) (42.6, 129.8) 90 #Drive directly forward then turn into switch
209208
switch
210-
moveto (17, 129.8) #Back out from switch
211-
moveto (17, 80.4) (12, 80.4) #Drive toward cubes
209+
moveto (0, 129.8) #Back out from switch
210+
moveto (102, 80.4) 90 #Drive toward cubes
212211
intake
213212
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
213+
moveto (0, 36) (96,36) 180 #Go to exchange
215214
exchange
216215

217216
# moveto
@@ -242,40 +241,34 @@ moveto (48,80.375) #cross baseline
242241

243242
# Switch
244243
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
244+
245+
moveto (0,60) (48,60) (-48,104.375)#5 feet forward, 4 right, 7 forward
248246
switch #deploy switch
249247

250248
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
249+
moveto (0,60) (-48,60) (-48,104.375)#5 feet forward, 4 left, 7 forward
254250
switch #deploy switch
255251

256-
257252
# Scale
258253
CxRx:
259-
moveto (0,60) 90 #5 feet forward, turn 90
260-
moveto (114,60) -90 #9.5 feet right, turn -90
254+
moveto (0,60) (114,60)#5 feet forward, 9.5 right
255+
turn -90
261256
move 224.375 #22 feet forward, compensating for robot length
262257
turn -90 #turn to face the switch
263258
scale #deploy scale
264259

265260

266261
CxLx:
267-
moveto (0,60) -90 #5 feet forward, turn -90
268-
moveto (-90,60) 90 #7.5 feet left, turn 90
262+
moveto (0,60) (-90,60) #5 feet forward, 90in left
263+
turn 90
269264
move 224.375 #22 feet forward, compensating for robot length
270265
turn 90 #turn to face the switch
271266
scale #deploy scale
272267

273268

274269
# Switch and Scale
275270
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
271+
moveto (0,60) (48,60) (48,104.375) #5 feet forward, 4 right, 7 forward
279272
switch #deploy switch
280273
move -39 #move 39 inches back
281274
turn -90 #turn -90 degrees
@@ -284,36 +277,35 @@ intake #intake
284277
turn -90 #turn -90
285278
move 45 # move 45 in. forward
286279
turn -90 #turn 90
287-
moveto (-90,60) 90 #7.5 feet left, turn 90
280+
moveto (-90,60)#7.5 feet left
281+
turn 90
288282
move 264 #22 feet forward
289283
turn 90 #turn to face the switch
290284
scale #deploy scale2
291285

292286

293287

294288
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
289+
moveto (0,60) (48,60) (48,104.375)#5 feet forward, 4 right, 7 forward
298290
switch #deploy switch
299291
move -39 #move 39 inches back
300292
turn -90 #turn -90 degrees
301293
move 48 #move 4 feet forward
302294
intake
303-
turn -90 #turn -90nyu
295+
turn -90 #turn -90
304296
move 45 # move 45 in. forward
305297
turn -90 #turn -90 degrees
306-
moveto (114, 60) -90 #9.5 feet right, turn -90
298+
moveto (114, 60)#9.5 feet right
299+
turn -90
307300
move 264 #22 feet forward
308301
turn -90 #turn to face the switch
309302
scale #deploy scale
310303

311304

312305

313306
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
307+
308+
moveto (0,60) (-48,60) (-48,104.375) #5 feet forward, 4 left, 7 for
317309
switch #deploy switch
318310
move -39 #move 39 inches back
319311
turn -90 #turn -90 degrees
@@ -322,16 +314,16 @@ intake #intake
322314
turn 90 #turn 90
323315
move 45 # move 45 in. forward
324316
turn 90 #turn 90 degrees
325-
moveto (114, 60) -90 #9.5 feet right, turn -90
317+
moveto (114, 60)#9.5 feet right
318+
turn -90
326319
move 264 #22 feet forward
327320
turn -90 #turn to face the switch
328321
scale #deploy scale
329322

330323

331324
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
325+
326+
moveto (0,60) (-48,60) (-48,104.375) #5 feet forward, 4 left, 7 forward
335327
switch #deploy switch
336328
move -39 #move 39 inches back
337329
turn 90 #turn 90 degrees
@@ -340,7 +332,8 @@ intake #intake
340332
turn 90 #turn -90
341333
move 45 # move 45 in. forward
342334
turn 90 #turn 90
343-
moveto (-90,60) -90 #7.5 feet right, turn -90
335+
moveto (-90,60)#7.5 feet right
336+
turn -90
344337
move 264 #22 feet forward
345338
turn 90 #turn to face the switch
346339
scale #deploy scale2
@@ -350,9 +343,8 @@ scale #deploy scale2
350343

351344
# Switch and Exchange
352345
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
346+
347+
moveto (0,60) (48,60) (48,104.375)#5 feet forward, 4 right, 7 forward
356348
switch #deploy switch
357349
move -24 # 2 feet back
358350
turn -90
@@ -366,9 +358,8 @@ turn -90 #turn to face the exchange
366358
exchange
367359

368360
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
361+
362+
moveto (0,60) (-48,60) (-48,104.375)#5 feet forward, 4 left, 7 forward
372363
switch #deploy switch
373364
move -24
374365
turn 90
@@ -381,9 +372,7 @@ exchange
381372

382373
# Exchange
383374
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
375+
moveto (0,60) (-48,60) (-48,104.375) #5 feet forward, 3 left, 7 feet forward until against switch enclosure,compensating for robot length
387376
move -96 #move 8 feet back
388377
turn 180 #turn 180 degrees to face the exchange
389-
exchange
378+
exchange

0 commit comments

Comments
 (0)