Updated Writing an Op Mode with FTC Blocks (markdown)

FTC Engineering
2019-07-09 11:43:21 -04:00
parent 8ae2ef2888
commit 6d6930e5ff

@ -29,7 +29,7 @@ Note that it will take an estimated 10 minutes to create your first op mode.
| Creating Your First Op Mode | | Creating Your First Op Mode |
| ---- | | ---- |
| 1. Launch the web browser on your laptop (FIRST recommends using Google Chrome) and find the web address that is displayed on the Program & Manage screen of the Robot Controller. <br/><br/>Important Note: If your Robot Controller is an Android smartphone, then the address to access the Program & Manage server is "192.168.49.1:8080".<br/><br/><p align="center">[[/images/Writing-an-Op-Mode-with-FTC-Blocks/WritingFirstOpModeStep1a.jpg]] </p>Important Note: If your Robot Controller is a Control Hub, then the address to access the Program & Manage server is "192.168.43.1:8080". Notice the difference in the third octet of the IP addresses (the Control Hub has a "43" instead of a "49"). <br/><br/><p align="center">[[/images/Writing-an-Op-Mode-with-FTC-Blocks/WritingFirstOpModeStep1aControlHub.jpg]] </p>Type this web address into the address field of your browser and press RETURN to navigate to the Program & Manage web server.<br/><br/><p align="center">[[/images/Writing-an-Op-Mode-with-FTC-Blocks/WritingFirstOpModeStep1bControlHub.jpg]] </p>| | 1. Launch the web browser on your laptop (FIRST recommends using Google Chrome) and find the web address that is displayed on the Program & Manage screen of the Robot Controller. <br/><br/>**Important Note:** If your Robot Controller is an Android smartphone, then the address to access the Program & Manage server is "192.168.49.1:8080".<br/><br/><p align="center">[[/images/Writing-an-Op-Mode-with-FTC-Blocks/WritingFirstOpModeStep1a.jpg]] </p>**Important Note:** If your Robot Controller is a Control Hub, then the address to access the Program & Manage server is "192.168.43.1:8080". Notice the difference in the third octet of the IP addresses (the Control Hub has a "43" instead of a "49"). <br/><br/><p align="center">[[/images/Writing-an-Op-Mode-with-FTC-Blocks/WritingFirstOpModeStep1aControlHub.jpg]] </p>Type this web address into the address field of your browser and press RETURN to navigate to the Program & Manage web server.<br/><br/><p align="center">[[/images/Writing-an-Op-Mode-with-FTC-Blocks/WritingFirstOpModeStep1bControlHub.jpg]] </p>|
| 2. Verify that your web browser is connected to the programming mode server. If it is connected to the programming mode server successfully, the Robot Controller Console should be displayed.<br/><br/><p align="center">[[/images/Writing-an-Op-Mode-with-FTC-Blocks/WritingFirstOpModeStep2ControlHub.jpg]] | | 2. Verify that your web browser is connected to the programming mode server. If it is connected to the programming mode server successfully, the Robot Controller Console should be displayed.<br/><br/><p align="center">[[/images/Writing-an-Op-Mode-with-FTC-Blocks/WritingFirstOpModeStep2ControlHub.jpg]] |
| 3. Press the **Blocks** link towards the top of the Console to navigate to the main Blocks Programming screen. <br/><br/><p align="center">[[/images/Writing-an-Op-Mode-with-FTC-Blocks/WritingFirstOpModeStep3aControlHub.jpg]]</p>The main Blocks Programming screen is where you create new op modes. It is also the screen where you can see a list of existing Blocks Op Modes on a Robot Controller. Initially this list will be empty until you create and save your first op mode.<br/><br/><p align="center">[[/images/Writing-an-Op-Mode-with-FTC-Blocks/WritingFirstOpModeStep3bControlHub.jpg]]</p>| | 3. Press the **Blocks** link towards the top of the Console to navigate to the main Blocks Programming screen. <br/><br/><p align="center">[[/images/Writing-an-Op-Mode-with-FTC-Blocks/WritingFirstOpModeStep3aControlHub.jpg]]</p>The main Blocks Programming screen is where you create new op modes. It is also the screen where you can see a list of existing Blocks Op Modes on a Robot Controller. Initially this list will be empty until you create and save your first op mode.<br/><br/><p align="center">[[/images/Writing-an-Op-Mode-with-FTC-Blocks/WritingFirstOpModeStep3bControlHub.jpg]]</p>|
| 4. Press the “Create New Op Mode” button which should be visible towards the upper left hand corner of the browser window.<br/><br/><p align="center">[[/images/Writing-an-Op-Mode-with-FTC-Blocks/WritingFirstOpModeStep4ControlHub.jpg]]</p>When prompted, specify a name for the op mode and hit “OK” to continue. | | 4. Press the “Create New Op Mode” button which should be visible towards the upper left hand corner of the browser window.<br/><br/><p align="center">[[/images/Writing-an-Op-Mode-with-FTC-Blocks/WritingFirstOpModeStep4ControlHub.jpg]]</p>When prompted, specify a name for the op mode and hit “OK” to continue. |
@ -75,7 +75,7 @@ In this section, you will add some blocks to your op mode that will allow you to
Note that you will need an estimated 15 minutes to complete this task. Note that you will need an estimated 15 minutes to complete this task.
Important Note: The programming blocks for user configured devices (motors, servos and sensors) will only be visible in the Blocks tool if there is an active configuration file with the configured devices included in the file. If a type of device is not included in the active configuration file, then its programming blocks will be missing from the palette of blocks. **Important Note:** The programming blocks for user configured devices (motors, servos and sensors) will only be visible in the Blocks tool if there is an active configuration file with the configured devices included in the file. If a type of device is not included in the active configuration file, then its programming blocks will be missing from the palette of blocks.
If you did not [create and activate a configuration file yet](Configuring-Your-Hardware), then you should follow the [instructions in the wiki](Configuring-Your-Hardware) to do so. After you created and activated your configuration file, you can close and then reopen your op mode so that the programming blocks for the newly configured devices will be visible. If you did not [create and activate a configuration file yet](Configuring-Your-Hardware), then you should follow the [instructions in the wiki](Configuring-Your-Hardware) to do so. After you created and activated your configuration file, you can close and then reopen your op mode so that the programming blocks for the newly configured devices will be visible.