L030

1 file(s) copied, then 2 change(s) in 1 file(s), 4 line(s) of code to write.

Copies

  • lessons/L030SpeedsOpMode.java to mytry/L030SpeedsOpMode.java

L030SpeedsOpMode

TeamCode/src/main/java/org/firstinspires/ftc/teamcode/mytry/L030SpeedsOpMode.java

A change

Delete 0 lines, write 2 lines.

--- before this change
+++ after it
@@ -62,6 +62,8 @@
         // When on L030S030, see
         // https://msb-stitt.github.io/ftc31459-26-27-biobuzz/guide/tasks/l030.html#l030s030
         // for what to do here.
+        double leftSpeed = -leftStickY;
+        Tracker.publish("speed/left", leftSpeed);
 
         // When on L030S040, see
         // https://msb-stitt.github.io/ftc31459-26-27-biobuzz/guide/tasks/l030.html#l030s040

A change

Delete 0 lines, write 2 lines.

--- before this change
+++ after it
@@ -68,6 +68,8 @@
         // When on L030S040, see
         // https://msb-stitt.github.io/ftc31459-26-27-biobuzz/guide/tasks/l030.html#l030s040
         // for what to do here.
+        double rightSpeed = -rightStickY;
+        Tracker.publish("speed/right", rightSpeed);
     }
 
     // 'public' to match the parent class. 'public' allows access from any code.