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

Commit 71efb41

Browse files
committed
raise lift earlier
1 parent e1281cc commit 71efb41

3 files changed

Lines changed: 12 additions & 16 deletions

File tree

AAAScripts/scripts.txt

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,14 @@ moveto (0,120) #Drive past auto line
99
RRxx:
1010
moveto (0,155)
1111
turn -90
12-
move 10
1312
switch
1413

1514
RLxx:
1615
move 56
1716
turn -90
1817
move 170
1918
turn 90
20-
move 35
19+
move 25
2120
switch
2221

2322

@@ -35,7 +34,6 @@ exchange
3534
RRxE:
3635
moveto (0,155)
3736
turn -90
38-
move 12
3937
switch
4038
turn -90
4139
move 105
@@ -55,7 +53,7 @@ move 56
5553
turn -90
5654
move 170
5755
turn 90
58-
move 35
56+
move 25
5957
switch
6058
move -40
6159
turn 90
@@ -80,15 +78,14 @@ moveto (0, 120) #Drive past auto line
8078
LLxx:
8179
move 150
8280
turn 90
83-
move 12
8481
switch
8582

8683
LRxx:
8784
move 56
8885
turn 90
8986
move 170
9087
turn -90
91-
move 35
88+
move 25
9289
switch
9390

9491

@@ -106,7 +103,6 @@ exchange
106103
LLxE:
107104
move 150
108105
turn 90
109-
move 12
110106
switch
111107
turn 90
112108
move 95
@@ -126,7 +122,7 @@ move 56
126122
turn 90
127123
move 170
128124
turn -90
129-
move 35
125+
move 25
130126
switch
131127
move -40
132128
turn -90
@@ -148,17 +144,17 @@ moveto (0,50) (48,50) (48,92) #cross baseline
148144

149145
# Switch
150146
CRxx:
151-
moveto (0,50) (48,50) (48,95)
147+
moveto (0,50) (48,50) (48,85)
152148
switch #deploy switch
153149

154150
CLxx:
155-
moveto (0,50) (-56,50) (-56,95)
151+
moveto (0,50) (-56,50) (-56,85)
156152
switch #deploy switch
157153

158154

159155
# Switch and Exchange
160156
CRxE:
161-
moveto (0,50) (48,50) (48,95)
157+
moveto (0,50) (48,50) (48,85)
162158
switch #deploy switch
163159
move -48 # 3 feet back
164160
turn -90
@@ -173,7 +169,7 @@ exchange
173169

174170

175171
CLxE:
176-
moveto (0,50) (-56,50) (-56,95)
172+
moveto (0,50) (-56,50) (-56,85)
177173
switch #deploy switch
178174
move -48 # 3 feet back
179175
turn 90

Robot2018/src/org/usfirst/frc/team199/Robot2018/commands/EjectToScale.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ public class EjectToScale extends CommandGroup {
1212
public EjectToScale() {
1313
addSequential(new AutoLift(Robot.lift, "SCALE"));
1414
addSequential(
15-
new PIDMove(Robot.getConst("Auto Scale Move Dist", 12), Robot.dt, Robot.sd, Robot.dt.getDistEncAvg()));
15+
new PIDMove(Robot.getConst("Auto Scale Move Dist", 18), Robot.dt, Robot.sd, Robot.dt.getDistEncAvg()));
1616
addSequential(new OuttakeCube());
17-
addSequential(new PIDMove(-1 * Robot.getConst("Auto Scale Move Dist", 12), Robot.dt, Robot.sd,
17+
addSequential(new PIDMove(-1 * Robot.getConst("Auto Scale Move Dist", 18), Robot.dt, Robot.sd,
1818
Robot.dt.getDistEncAvg()));
1919
addSequential(new AutoLift(Robot.lift, "GROUND"));
2020
}

Robot2018/src/org/usfirst/frc/team199/Robot2018/commands/EjectToSwitch.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ public class EjectToSwitch extends CommandGroup {
1212
public EjectToSwitch() {
1313
addSequential(new AutoLift(Robot.lift, "SWITCH"));
1414
addSequential(
15-
new PIDMove(Robot.getConst("Auto Switch Move Dist", 12), Robot.dt, Robot.sd, Robot.dt.getDistEncAvg()));
15+
new PIDMove(Robot.getConst("Auto Switch Move Dist", 18), Robot.dt, Robot.sd, Robot.dt.getDistEncAvg()));
1616
addSequential(new OuttakeCube());
17-
addSequential(new PIDMove(-1 * Robot.getConst("Auto Switch Move Dist", 12), Robot.dt, Robot.sd,
17+
addSequential(new PIDMove(-1 * Robot.getConst("Auto Switch Move Dist", 18), Robot.dt, Robot.sd,
1818
Robot.dt.getDistEncAvg()));
1919
addSequential(new AutoLift(Robot.lift, "GROUND"));
2020
}

0 commit comments

Comments
 (0)