File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed
TeamCode2028/src/main/java/com/technodot/ftc/twentyfive Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff 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);
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments