From d63f15a54a4cc20af773d35cbf467e203e60c22f Mon Sep 17 00:00:00 2001 From: FTC Engineering Date: Fri, 12 Apr 2019 13:55:29 -0400 Subject: [PATCH] Updated Using Sensors (Blocks) (markdown) --- Using-Sensors-(Blocks).md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Using-Sensors-(Blocks).md b/Using-Sensors-(Blocks).md index 90ad323..34690c0 100644 --- a/Using-Sensors-(Blocks).md +++ b/Using-Sensors-(Blocks).md @@ -36,9 +36,9 @@ Note that it will take an estimated 15 minutes to complete this task. | 3. Click on the “Logic” category. Find and click on the “if do else” block.

| | 4. Drag the “if do else” block to the position before the “telemetry.update” block.

| | 5. Click on the "Sensors" category to expand it (if it isn't already expanded). Click on the "Touch Sensor" subcategory, then find and select the ".isPressed" block.

| -| 6. Drag the “isPressed” block to the test condition of the “if do else” programming block.

| -| 7. Click on the “Utilities” category on the left-hand side of your browser. Find and click on the “Telemetry” subcategory.

Select the “call telemetry.addData” block (the text version) and drag it to the “do” clause of the “if do else” block. | -| 8. Change the “key” value to “testTouch” and the “text” value to “is pressed”.

| +| 6. Drag the “isPressed” block to the test condition of the “if do else” programming block.

| +| 7. Click on the “Utilities” category on the left-hand side of your browser. Find and click on the “Telemetry” subcategory.

Select the “call telemetry.addData” block (the text version) and drag it to the “do” clause of the “if do else” block. | +| 8. Change the “key” value to “testTouch” and the “text” value to “is pressed”.

| | 9. Insert another "telemetry.addData" block (the text version) to the "else" clause of the "if do else" block. Change the “key” value to “testTouch” and the “text” value to “is NOT pressed”.

| | 10. Save your op mode and verify that it was saved successfully to the Robot Controller.

| | 11. Follow the procedure outlined in the section titled [Running Your Op Mode](https://github.com/ftctechnh/ftc_app/wiki/Running-Your-Op-Mode) to run your updated op mode.

As you run the op mode and push or release the button, the telemetry message on the Driver Station should update to reflect the current state of the digital Touch Sensor. |