From 958afd7943d2e19f0dc037c0eb5d6fcfd0615b1e Mon Sep 17 00:00:00 2001 From: Westside Robotics Date: Mon, 15 Nov 2021 20:34:39 -0800 Subject: [PATCH] edit the image folder name --- External-Libraries-in-OnBot-Java-and-Blocks.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/External-Libraries-in-OnBot-Java-and-Blocks.md b/External-Libraries-in-OnBot-Java-and-Blocks.md index 57c1a88..15eb322 100644 --- a/External-Libraries-in-OnBot-Java-and-Blocks.md +++ b/External-Libraries-in-OnBot-Java-and-Blocks.md @@ -58,7 +58,7 @@ Instead of a Java file, select the .jar or .aar library file to upload from the OnBot Java will recognize that it's an archive file, and will automatically create a folder called `ExternalLibraries`. This folder will appear above the `teamcode` folder. -

[[/images/external-libraries-in-onbot-java-and-blocks/400-folder-and-wrench.png|ExternalLibraries folder and Build Everything icon]] +

[[/images/External-Libraries-in-OnBot-Java-and-Blocks/400-folder-and-wrench.png|ExternalLibraries folder and Build Everything icon]]
ExternalLibraries folder and Build Everything icon

[

Return to Top](#introduction)

@@ -112,7 +112,7 @@ For Step 3B or Step 3C, your **Blocks users** must be taught how to use the new Start with good documentation. For myBlocks, use the existing tools to make helpful labels (for input parameters), clear tooltips and detailed comments. The comments appear in a text box that expands after clicking the blue question-mark icon on that Block. Tell your users it's there. -

[[/images/external-libraries-in-onbot-java-and-blocks/450-wiggle-myBlock.png|wiggle servo myBlock]] +

[[/images/External-Libraries-in-OnBot-Java-and-Blocks/450-wiggle-myBlock.png|wiggle servo myBlock]]
myBlock documented using comment, tooltip and input labels

Meet with your team's Blocks programmer(s) to explain the new features. Consider writing a short description, for their future reference. Encourage users to give you feedback, to improve your code. Congratulations, you are now a Java developer! @@ -186,12 +186,12 @@ Note that myHypotenuse() is a ```static``` method, required for all myBlock meth Here is the myBlock that will appear in the Blocks toolbox (menu): -

[[/images/external-libraries-in-onbot-java-and-blocks/460-myHypotenuse-myBlock.png|myHypotenuse myBlock]] +

[[/images/External-Libraries-in-OnBot-Java-and-Blocks/460-myHypotenuse-myBlock.png|myHypotenuse myBlock]]
myBlock using library method Geometry.hypot()

On your own, you can try this with the two remaining methods. Use myBlocks to show telemetry output of various input values. -

[[/images/external-libraries-in-onbot-java-and-blocks/470-myBlocks-telemetry.png|myBlocks telemetry]] +

[[/images/External-Libraries-in-OnBot-Java-and-Blocks/470-myBlocks-telemetry.png|myBlocks telemetry]]
Telemetry of myBlocks using Geometry library

[

Return to Top](#introduction)

@@ -204,7 +204,7 @@ This library contains a class name ```com.example.google.ftc.MoreMath```, with p This library **is annotated** specifically for FTC use, as described above. After you upload the .aar file and `Build Everything`, its 4 "pass-through" methods will automatically appear as Blocks: -

[[/images/external-libraries-in-onbot-java-and-blocks/510-MoreMath-Blocks.png|MoreMath Blocks]] +

[[/images/External-Libraries-in-OnBot-Java-and-Blocks/510-MoreMath-Blocks.png|MoreMath Blocks]]
Pass-through methods from class MoreMath in annotated library Arithmetic For Blocks

You **could** also use these methods in OnBot Java, including to create a myBlock. For example, perhaps you want to also provide a custom version of a pass-through method. But you **don't need** an OnBot Java file to support this library or its methods; that's done automatically by OnBot Java when it processes the library at upload.