Skip to content

Commit 4d77120

Browse files
committed
26855 finish, lr=5th rs=2.50
1 parent 154c1af commit 4d77120

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

TeamCode2028/src/main/java/com/technodot/ftc/twentyfive/BaboAuto.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@ public class BaboAuto extends OpMode {
2525
public DeviceExtake deviceExtake = new DeviceExtake();
2626

2727
public MultipleTelemetry t;
28-
2928
public Batch runtime = new Batch();
3029
public ArrayDeque<Artifact> artifactQuene = new ArrayDeque<>();
3130

31+
private boolean nextShotLeft = true;
32+
3233
public Team team = Team.BLUE;
3334
public Obelisk obelisk = Obelisk.PPG;
3435

@@ -69,6 +70,7 @@ public void init() {
6970
obelisk = deviceCamera.getObelisk();
7071
artifactQuene.clear();
7172
if (obelisk == null) return false; // we're cooked
73+
7274
switch (obelisk) {
7375
case GPP:
7476
artifactQuene.add(Artifact.GREEN);
@@ -88,6 +90,11 @@ public void init() {
8890
break;
8991
}
9092

93+
// TODO: ts obelisk solver doesnt work, fix
94+
if (!obelisk.equals(Obelisk.GPP)) {
95+
nextShotLeft = false;
96+
}
97+
9198
return false;
9299
});
93100

@@ -181,9 +188,6 @@ public void config() {
181188
team = Team.BLUE;
182189
}
183190

184-
// Simple left/right sequence for autonomous shooting; ignores color sensors.
185-
private boolean nextShotLeft = true;
186-
187191
private boolean shootNext() {
188192
// Artifact next = artifactQuene.pollFirst();
189193
// t.addData("shoot/queued", nextShotLeft);

TeamCode2028/src/main/java/com/technodot/ftc/twentyfive/BaboOS.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public void loop() {
7373
telemetry.addData("rx", gamepad1.right_stick_x);
7474
telemetry.addData("ry", gamepad1.right_stick_y);
7575

76+
telemetry.addData("exv", deviceExtake.motorExtake.getVelocity());
7677
t.addData("exv", deviceExtake.motorExtake.getVelocity());
7778

7879
delta = now - last;

TeamCode2028/src/main/java/com/technodot/ftc/twentyfive/robocore/DeviceExtake.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class DeviceExtake extends Device {
1212
private boolean pressingShootLow;
1313
private boolean pressingShootHigh;
1414

15-
public final double velocityHigh = 1420; // target ticks/sec (tune as needed)
15+
public final double velocityHigh = 1460; // target ticks/sec (tune as needed)
1616
public final double velocityLow = 1200; // target ticks/sec (tune as needed)
1717

1818
// Autonomous can request a specific target velocity, but we pass it straight to the SDK.

0 commit comments

Comments
 (0)