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

Commit 5992ed0

Browse files
committed
modify auto scripts for more efficiency
1 parent 17d3ec4 commit 5992ed0

2 files changed

Lines changed: 11 additions & 14 deletions

File tree

AAAScripts/scripts.txt

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ moveto (0,120) #Drive past auto line
77

88
#Switch
99
RRxx:
10-
moveto (0,155)
11-
turn -90
12-
switch
10+
moveto (0,148) -90
11+
switch 19
1312

1413
RLxx:
1514
move 56
@@ -76,9 +75,8 @@ moveto (0, 120) #Drive past auto line
7675

7776
#Switch
7877
LLxx:
79-
move 150
80-
turn 90
81-
switch
78+
moveto (0,148) 90
79+
switch 19
8280

8381
LRxx:
8482
move 56
@@ -139,17 +137,16 @@ exchange
139137

140138
# Cross Auto Line
141139
Cxxx:
142-
moveto (0,50) (48,50) (48,92) #cross baseline
143-
140+
moveto (0, 12) (40, 88)
144141

145142
# Switch
146143
CRxx:
147-
moveto (0,50) (48,50) (48,85)
148-
switch #deploy switch
144+
moveto (0,15) (50,85) 0
145+
switch 15
149146

150147
CLxx:
151-
moveto (0,50) (-56,50) (-56,85)
152-
switch #deploy switch
148+
moveto (0,15) (-60,85) 0
149+
switch 15
153150

154151

155152
# Switch and Exchange

Robot2018/src/org/usfirst/frc/team199/Robot2018/autonomous/aaa-reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Ex:
5050
| jump | Jumps to the specified script and continues the current script when finished. (Doesn’t make the robot go up.) | `jump MoveToRScale`
5151
| move | Move forward or backwards for the specified amount in inches, relative to the current position. | `move 24` |
5252
| moveto | Move to 1 or more points, sequentially, with an optional last value having a final angle to face towards, all relative to the starting position. | `moveto (12,0) (36,12)` <br> `moveto (0,12) 90` |
53-
| scale | Place a cube at scale height after moving forward by the specified amount with the lift up. | `scale 24` |
54-
| switch | Place a cube at switch height after moving forward by the specified amount with the lift up. | `switch 24` |
53+
| scale | Place a cube at scale height after moving forward by the specified amount with the lift up, and after moves 12 inches back. | `scale 24` |
54+
| switch | Place a cube at switch height after moving forward by the specified amount with the lift up, and after moves 12 inches back. | `switch 24` |
5555
| turn | Turn towards a relative point or rotate clockwise by an angle in degrees, relative to the current position. <br> Negative angle for counterclockwise. | `turn (36,48)` <br> `turn 45` |
5656
| wait | Waits for the number of seconds before proceeding to next command. | `wait 5` |

0 commit comments

Comments
 (0)