Using FTC Blocks Offline Editor: Difference between revisions

From ORTOP Wiki
(Created initial sequence of screen shots)
 
(Added some step-by-step sequence)
Line 1: Line 1:
[[File:Extracting.png|800px]]
A. [https://github.com/ftctechnh/ftc_app/wiki/Connecting-a-Laptop-to-the-Program-&-Manage-Network Connect to your Robot Controller app via WiFi].


[[File:UploadOpMode.png|800px]]
B. [https://github.com/ftctechnh/ftc_app/wiki/Writing-an-Op-Mode-with-FTC-Blocks#creating-your-first-op-mode Use a web browser to open 192.168.49.1:8080 and click on Block]


[[File:MainScreen.png|800px]]
[[File:MainScreen.png|800px]]


C. Click on "Download Offline Blocks Editor".
[[File:BlocksScreen.png|800px]]
[[File:BlocksScreen.png|800px]]
This will place a Zip file in the Download folder of your PC.
D. You can now disconnect from the Robot Controller phone.
E. When you are ready to perform offline editing proceed as follows:
1. Find the downloaded zip file in your Download folder.


[[File:ZipFile.png|800px]]
[[File:ZipFile.png|800px]]
2. Unzip the downloaded zip file to a new directory by right clicking on the zip file and clicking on Extract All


[[File:Extract.png|800px]]
[[File:Extract.png|800px]]
You should see an extracting progress screen:
[[File:Extracting.png|800px]]
3. Open Google Chrome browser
4. Open the index.html file in the new directory that holds the unzipped editor:
* type control-O to get a file dialog box and navigate to the directory and click on Open


[[File:ChromeControl-O.png|800px]]
[[File:ChromeControl-O.png|800px]]
* Double click on "index.html" or click on "index.html" and then click on Open


[[File:Open-Index.png|800px]]
[[File:Open-Index.png|800px]]


[[File:OfflineList.png|800px]]
5. Use Blocks as usual to edit an op mode
 
6. When you are finished editing an op mode, click on "Download Op Mode".  This will save a BLK file in your download directory.
 
F. To edit other op modes repeat steps 4 and 5 above.
 
When you are finished with offline editing and have access to your robot controller phone, reconnect to the Robot Controller phone via WiFi.
 
1. Use your web browser to open 192.168.49.1:8080
 
2. Click on Upload Op Mode
 
[[File:UploadOpMode.png|800px]]


[[File:DownLoad Op Mode.png|800px]]
3. Click on Choose File


[[File:ChooseFile.png|800px]]
[[File:ChooseFile.png|800px]]
4. Navigate to where you saved the op mode as a BLK file -- probably your Download directory -- and choose the BLK file you downloaded earlier.


[[File:FileChosen.png|800px]]
[[File:FileChosen.png|800px]]
5. Click on OK
If you saved additional BLK files, click on "Blocks" and repeat steps 2 through 5.
Note: There are some subtleties of using the "Download Offline Blocks Editor" button more than once will be explained here later.
[[File:OfflineList.png|800px]]
[[File:DownLoad Op Mode.png|800px]]

Revision as of 18:13, 28 September 2020

A. Connect to your Robot Controller app via WiFi.

B. Use a web browser to open 192.168.49.1:8080 and click on Block

MainScreen.png

C. Click on "Download Offline Blocks Editor". BlocksScreen.png This will place a Zip file in the Download folder of your PC.

D. You can now disconnect from the Robot Controller phone.

E. When you are ready to perform offline editing proceed as follows:

1. Find the downloaded zip file in your Download folder.

ZipFile.png

2. Unzip the downloaded zip file to a new directory by right clicking on the zip file and clicking on Extract All

Extract.png

You should see an extracting progress screen: Extracting.png

3. Open Google Chrome browser

4. Open the index.html file in the new directory that holds the unzipped editor:

  • type control-O to get a file dialog box and navigate to the directory and click on Open

ChromeControl-O.png

  • Double click on "index.html" or click on "index.html" and then click on Open

Open-Index.png

5. Use Blocks as usual to edit an op mode

6. When you are finished editing an op mode, click on "Download Op Mode".  This will save a BLK file in your download directory.

F. To edit other op modes repeat steps 4 and 5 above.

When you are finished with offline editing and have access to your robot controller phone, reconnect to the Robot Controller phone via WiFi.

1. Use your web browser to open 192.168.49.1:8080

2. Click on Upload Op Mode

UploadOpMode.png

3. Click on Choose File

ChooseFile.png

4. Navigate to where you saved the op mode as a BLK file -- probably your Download directory -- and choose the BLK file you downloaded earlier.

FileChosen.png

5. Click on OK

If you saved additional BLK files, click on "Blocks" and repeat steps 2 through 5.

Note: There are some subtleties of using the "Download Offline Blocks Editor" button more than once will be explained here later.


OfflineList.png

DownLoad Op Mode.png