L020

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

Copies

  • lessons/L020SticksOpMode.java to mytry/L020SticksOpMode.java

L020SticksOpMode

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

A change

Delete 0 lines, write 1 line.

--- before this change
+++ after it
@@ -7,6 +7,7 @@
 import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
 
 import org.firstinspires.ftc.teamcode.base.CorbelsTeleOp;
+import org.firstinspires.ftc.teamcode.base.Tracker;
 
 /**
  * L020: read the two sticks and write down what they say. Nothing moves.

A change

Delete 0 lines, write 1 line.

--- before this change
+++ after it
@@ -57,6 +57,7 @@
         // When on L020S030, see
         // https://msb-stitt.github.io/ftc31459-26-27-biobuzz/guide/tasks/l020.html#l020s030
         // for what to do here.
+        double leftStickY = gamepad1.left_stick_y;
 
         // When on L020S040, see
         // https://msb-stitt.github.io/ftc31459-26-27-biobuzz/guide/tasks/l020.html#l020s040

A change

Delete 0 lines, write 1 line.

--- before this change
+++ after it
@@ -62,6 +62,7 @@
         // When on L020S040, see
         // https://msb-stitt.github.io/ftc31459-26-27-biobuzz/guide/tasks/l020.html#l020s040
         // for what to do here.
+        Tracker.publish("stick/leftY", leftStickY);
 
         // When on L020S050, see
         // https://msb-stitt.github.io/ftc31459-26-27-biobuzz/guide/tasks/l020.html#l020s050

A change

Delete 0 lines, write 2 lines.

--- before this change
+++ after it
@@ -67,6 +67,8 @@
         // When on L020S050, see
         // https://msb-stitt.github.io/ftc31459-26-27-biobuzz/guide/tasks/l020.html#l020s050
         // for what to do here.
+        double rightStickY = gamepad1.right_stick_y;
+        Tracker.publish("stick/rightY", rightStickY);
     }
 
     // 'public' to match the parent class. 'public' allows access from any code.