Update description of minor/internal edits to a myBlock.

Westside Robotics
2022-05-26 12:47:36 -07:00
parent 7187eca156
commit d417f31556

@ -203,7 +203,7 @@ If your Java change <u>does</u> affect external features, its updated myBlock is
<p align="center">[[/images/Custom-FTC-Blocks-(myBlocks)/a0260-editing-error-Blocks.png|editing error message]]<p> <p align="center">[[/images/Custom-FTC-Blocks-(myBlocks)/a0260-editing-error-Blocks.png|editing error message]]<p>
If your edit affects only the myBlock's internal processing, it **will update** automatically after "Build Everything". In that case, it doesn't need to be replaced with a fresh version from the Java Classes menu. In fact, you don't even need to click Save OpMode in the Blocks screen. You can **simply re-run the OpMode** on the Driver Station, without re-selecting it from the list of OpModes. Just click INIT and Start; the edited myBlock will run. Really! This allows very fast testing of minor/internal changes to the myBlock. If your edit affects only the myBlock's **internal** processing, it might update automatically after "Build Everything", without needing a fresh replacement from the Java Classes menu. In some cases you might not even need to click Save OpMode in the Blocks screen -- you could simply re-run the OpMode on the Driver Station with INIT and Start. This can allow very fast testing of minor/internal changes to the myBlock.
In any case, consider adding **versions** to your myBlock names, such as myGreeting_v01. Copy and paste before editing, to keep all related myBlock methods in the **same Java class**. In Blocks, all uniquely named versions will be available in the Java Classes menu, under that single class name. In any case, consider adding **versions** to your myBlock names, such as myGreeting_v01. Copy and paste before editing, to keep all related myBlock methods in the **same Java class**. In Blocks, all uniquely named versions will be available in the Java Classes menu, under that single class name.