|
| 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 (0,128.4) (0,80.4) (-144,80.4) #Back out from switch |
| 93 | + intake |
| 94 | + moveto (0, 80.4) #Back out from cubes |
| 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 |
| 96 | + exchange |
| 97 | + |
| 98 | +RLxE: |
| 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 |
| 100 | + switch |
| 101 | + moveto (-246.6,128.4) #Back out from switch |
| 102 | + moveto (-246.6,80.4) (-12, 80.4) #Drive toward cubes |
| 103 | + #intake |
| 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 |
| 106 | + exchange |
| 107 | + |
| 108 | +# Naming Conventions |
| 109 | +# ------------------- |
| 110 | +# 1. Robot's start position. R = right, C = center, L = left. |
| 111 | +# 2. Switch information. R = going for the right plate, L = going for the left plate, x = not going for switch |
| 112 | +# 3. Scale information. R = going for the right plate, L = going for the left plate, x = not going for scale |
| 113 | +# 4. Exchange. E = going for the exchange, x = not going for exchange |
| 114 | + |
| 115 | +# 3.3(l) x 2.9(w) |
| 116 | + |
| 117 | +#Cross Auto Line |
| 118 | +Lxxx: |
| 119 | + moveto (0, 120) #Drive past auto line |
| 120 | + |
| 121 | +#------------------------------------------------- |
| 122 | + |
| 123 | +#Switch |
| 124 | +LLxx: |
| 125 | + moveto (0, 129.8) (42.6, 129.8) 90 #Drive directly forward to switch and then ram into switch |
| 126 | + switch |
| 127 | + |
| 128 | +LRxx: |
| 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 |
| 130 | + switch |
| 131 | + |
| 132 | +#------------------------------------------------- |
| 133 | + |
| 134 | +#Scale |
| 135 | +LxLx: |
| 136 | + moveto (0, 284.4) (24.6, 284.4) 90 #Drive directly forward and place at initial horizontal to scale |
| 137 | + scale |
| 138 | + |
| 139 | +LxRx: |
| 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 |
| 141 | + scale |
| 142 | + |
| 143 | +#------------------------------------------------- |
| 144 | + |
| 145 | +#Exchange |
| 146 | +LxxE: |
| 147 | + 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 |
| 148 | + exchange |
| 149 | + |
| 150 | +#------------------------------------------------- |
| 151 | + |
| 152 | +#Switch and Scale |
| 153 | +LRRx: |
| 154 | + 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 |
| 155 | + switch |
| 156 | + moveto (246.6, 129.8) #Back out from switch |
| 157 | + moveto (246.6, 80.4) (12, 80.4) #Drive toward cubes |
| 158 | + intake |
| 159 | + moveto (246.6, 80.4) #Back out from cubes |
| 160 | + moveto (246.6, 284.4) (16.05, 284.4) -90 #Curve around switch + place at init distance to scale |
| 161 | + scale |
| 162 | + |
| 163 | +LRLx: |
| 164 | + moveto (0, 284.4) (24.6, 284.4) -90 #Drive directly forward and place at initial horizontal to scale |
| 165 | + scale |
| 166 | + moveto (0, 284.4) #Back out from switch |
| 167 | + moveto (0, 80.4) (108, 80.4) -90 #Drive toward cubes |
| 168 | + intake |
| 169 | + moveto (0, 80.4) #Back out from cubes |
| 170 | + moveto (0, 188.4) (210.6,188.4) (210.6, 129.8) (186.6, 129.8) 90 #Drive toward switch |
| 171 | + switch |
| 172 | + |
| 173 | +LLRx: |
| 174 | + moveto (0, 129.8) (42.6, 129.8) 90 #Drive directly forward then turn into switch |
| 175 | + switch |
| 176 | + moveto (0, 129.8) #Back out from switch |
| 177 | + moveto (0, 80.4) (108, 80.4) 90 #Drive toward cubes |
| 178 | + intake |
| 179 | + moveto (0, 80.4) #Back out from cubes |
| 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 |
| 181 | + scale |
| 182 | + |
| 183 | +LLLx: |
| 184 | + moveto (0, 129.8) (42.6, 129.8) 90 #Drive directly forward then turn into switch |
| 185 | + switch |
| 186 | + moveto (0, 129.8) #Back out from switch |
| 187 | + moveto (0, 80.4) (108, 80.4) 90 #Drive toward cubes |
| 188 | + intake |
| 189 | + moveto (0, 80.4) #Back out from cubes |
| 190 | + moveto (0, 284.4) (24.6, 284.4) 90 #Drive toward scale |
| 191 | + scale |
| 192 | + |
| 193 | +#------------------------------------------------- |
| 194 | + |
| 195 | +#Switch and Exchange |
| 196 | +LRxE: |
| 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 |
| 198 | + switch |
| 199 | + moveto (246.6, 129.8) #Back out from switch |
| 200 | + moveto (246.6, 80.4) (12, 80.4) #Drive toward cubes |
| 201 | + intake |
| 202 | + moveto (246.6, 80.4) #Back out from cubes |
| 203 | + moveto (246.6, 3.7) (124.8, 3.7) 180 #Drive toward exchange |
| 204 | + exchange |
| 205 | + |
| 206 | +LLxE: |
| 207 | + moveto (0, 129.8) (42.6, 129.8) 90 #Drive directly forward then turn into switch |
| 208 | + switch |
| 209 | + moveto (0, 129.8) #Back out from switch |
| 210 | + moveto (102, 80.4) 90 #Drive toward cubes |
| 211 | + intake |
| 212 | + moveto (0, 80.4) #Back out from cubes |
| 213 | + moveto (0, 36) (96,36) 180 #Go to exchange |
| 214 | + exchange |
| 215 | + |
| 216 | +# moveto |
| 217 | +# turn |
| 218 | +# move |
| 219 | +# switch |
| 220 | +# scale |
| 221 | +# exchange |
| 222 | +# wait |
| 223 | +# intake |
| 224 | +# jump |
| 225 | +# end |
| 226 | + |
| 227 | + |
| 228 | + |
| 229 | +# 1. Robot's start position. R = right, C = center, L = left. |
| 230 | +# 2. Switch information. R = going for the right plate, L = going for the left plate, x = not going for # switch |
| 231 | +# 3. Scale information. R = going for the right plate, L = going for the left plate, x = not going for # scale |
| 232 | +# 4. Exchange. E = going for the exchange, x = not going for exchange |
| 233 | + |
| 234 | + |
| 235 | +# Location of Robot: rightmost next to exchange |
| 236 | + |
| 237 | +# Cross Auto Line |
| 238 | +Cxxx: |
| 239 | +moveto (48,80.375) #cross baseline |
| 240 | + |
| 241 | + |
| 242 | +# Switch |
| 243 | +CRxx: |
| 244 | + |
| 245 | +moveto (0,60) (48,60) (-48,104.375)#5 feet forward, 4 right, 7 forward |
| 246 | +switch #deploy switch |
| 247 | + |
| 248 | +CLxx: |
| 249 | +moveto (0,60) (-48,60) (-48,104.375)#5 feet forward, 4 left, 7 forward |
| 250 | +switch #deploy switch |
| 251 | + |
| 252 | +# Scale |
| 253 | +CxRx: |
| 254 | +moveto (0,60) (114,60)#5 feet forward, 9.5 right |
| 255 | +turn -90 |
| 256 | +move 224.375 #22 feet forward, compensating for robot length |
| 257 | +turn -90 #turn to face the switch |
| 258 | +scale #deploy scale |
| 259 | + |
| 260 | + |
| 261 | +CxLx: |
| 262 | +moveto (0,60) (-90,60) #5 feet forward, 90in left |
| 263 | +turn 90 |
| 264 | +move 224.375 #22 feet forward, compensating for robot length |
| 265 | +turn 90 #turn to face the switch |
| 266 | +scale #deploy scale |
| 267 | + |
| 268 | + |
| 269 | +# Switch and Scale |
| 270 | +CRLx: |
| 271 | +moveto (0,60) (48,60) (48,104.375) #5 feet forward, 4 right, 7 forward |
| 272 | +switch #deploy switch |
| 273 | +move -39 #move 39 inches back |
| 274 | +turn -90 #turn -90 degrees |
| 275 | +move 48 #move 4 feet forward |
| 276 | +intake #intake |
| 277 | +turn -90 #turn -90 |
| 278 | +move 45 # move 45 in. forward |
| 279 | +turn -90 #turn 90 |
| 280 | +moveto (-90,60)#7.5 feet left |
| 281 | +turn 90 |
| 282 | +move 264 #22 feet forward |
| 283 | +turn 90 #turn to face the switch |
| 284 | +scale #deploy scale2 |
| 285 | + |
| 286 | + |
| 287 | + |
| 288 | +CRRx: |
| 289 | +moveto (0,60) (48,60) (48,104.375)#5 feet forward, 4 right, 7 forward |
| 290 | +switch #deploy switch |
| 291 | +move -39 #move 39 inches back |
| 292 | +turn -90 #turn -90 degrees |
| 293 | +move 48 #move 4 feet forward |
| 294 | +intake |
| 295 | +turn -90 #turn -90 |
| 296 | +move 45 # move 45 in. forward |
| 297 | +turn -90 #turn -90 degrees |
| 298 | +moveto (114, 60)#9.5 feet right |
| 299 | +turn -90 |
| 300 | +move 264 #22 feet forward |
| 301 | +turn -90 #turn to face the switch |
| 302 | +scale #deploy scale |
| 303 | + |
| 304 | + |
| 305 | + |
| 306 | +CLRx: |
| 307 | + |
| 308 | +moveto (0,60) (-48,60) (-48,104.375) #5 feet forward, 4 left, 7 for |
| 309 | +switch #deploy switch |
| 310 | +move -39 #move 39 inches back |
| 311 | +turn -90 #turn -90 degrees |
| 312 | +move 48 #move 4 feet forward |
| 313 | +intake #intake |
| 314 | +turn 90 #turn 90 |
| 315 | +move 45 # move 45 in. forward |
| 316 | +turn 90 #turn 90 degrees |
| 317 | +moveto (114, 60)#9.5 feet right |
| 318 | +turn -90 |
| 319 | +move 264 #22 feet forward |
| 320 | +turn -90 #turn to face the switch |
| 321 | +scale #deploy scale |
| 322 | + |
| 323 | + |
| 324 | +CLLx: |
| 325 | + |
| 326 | +moveto (0,60) (-48,60) (-48,104.375) #5 feet forward, 4 left, 7 forward |
| 327 | +switch #deploy switch |
| 328 | +move -39 #move 39 inches back |
| 329 | +turn 90 #turn 90 degrees |
| 330 | +move 48 #move 4 feet forward |
| 331 | +intake #intake |
| 332 | +turn 90 #turn -90 |
| 333 | +move 45 # move 45 in. forward |
| 334 | +turn 90 #turn 90 |
| 335 | +moveto (-90,60)#7.5 feet right |
| 336 | +turn -90 |
| 337 | +move 264 #22 feet forward |
| 338 | +turn 90 #turn to face the switch |
| 339 | +scale #deploy scale2 |
| 340 | + |
| 341 | + |
| 342 | + |
| 343 | + |
| 344 | +# Switch and Exchange |
| 345 | +CRxE: |
| 346 | + |
| 347 | +moveto (0,60) (48,60) (48,104.375)#5 feet forward, 4 right, 7 forward |
| 348 | +switch #deploy switch |
| 349 | +move -24 # 2 feet back |
| 350 | +turn -90 |
| 351 | +move 12 # 1 ft forward |
| 352 | +intake |
| 353 | +turn -90 |
| 354 | +move 72 #move 6 feet forwards |
| 355 | +turn 90 |
| 356 | +move 60 #move 5 feet forward |
| 357 | +turn -90 #turn to face the exchange |
| 358 | +exchange |
| 359 | + |
| 360 | +CLxE: |
| 361 | + |
| 362 | +moveto (0,60) (-48,60) (-48,104.375)#5 feet forward, 4 left, 7 forward |
| 363 | +switch #deploy switch |
| 364 | +move -24 |
| 365 | +turn 90 |
| 366 | +move 24 |
| 367 | +intake |
| 368 | +turn 90 |
| 369 | +move -84 #move 7 feet back |
| 370 | +turn 180 #turn 180 degrees to face the exchange |
| 371 | +exchange |
| 372 | + |
| 373 | +# Exchange |
| 374 | +CxxE: |
| 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 |
| 376 | +move -96 #move 8 feet back |
| 377 | +turn 180 #turn 180 degrees to face the exchange |
| 378 | +exchange |
0 commit comments