Changes for page LEGO Mindstorms with leJOS and SCCharts
Last modified by Alexander Schulz-Rosengarten on 2023/09/11 16:17
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -36,18 +36,34 @@ 36 36 37 37 == The Eclipse plugin for leJOS == 38 38 39 -Todo 39 +There is an Eclipse plugin for leJOS which adds a project creation wizard and launch configuration to the platform. You can install it via the Eclipse Marketplace (//Help > Eclipse Marketplace...//) 40 40 41 +[[image:attach:lejos_eclipse_plugin.png]] 42 + 41 41 ---- 42 42 43 43 == Configure KIELER == 44 44 45 - Environment setup.Sampleprojectcreation.Projectlaunch.47 +With the Eclipse plugin for leJOS installed, you can now use KIELER SCCharts for an model-based approach of programming. 46 46 49 +First check the environment settings for NXJ of the KIELER tool (//Window > Preferences > KIELER > Environments//). Ensure that the commands of the execute tab have correct paths. They have to use the lib directory of your leJOS installation. 50 + 51 +[[image:attach:lejos_nxj_environment.png]] 52 + 53 +Create a first project using the SCChart project wizard (//File > New > Project > KIELER SCCharts > SCT Project//) and select the environment for leJOS NXJ. When pressing the finish button, the project wizard of the leJOS plugin will start. Set the project name and hit finish. The project will be created by the leJOS plugin and initialized by the KIELER plugin, giving it a model file and a file with wrapper code to initalize and run the model. 54 + 55 +When you choose //Debug As > KiCo Compilation// on the model, it is compiled by the KIELER Compiler to Java code and further compiled and deployed to the NXT brick using the commands from aforesaid environment. 56 + 57 +For a deeper understanding of the project launch and initialization, take a look at the [[wiki page for Prom>>url:http://rtsys.informatik.uni-kiel.de/confluence/pages/viewpage.action?pageId=13762626||shape="rect"]]. 58 + 47 47 ---- 48 48 49 49 == Using the Remote Console (RConsole) == 50 50 51 -n xjconsoleviewer63 +The display of the NXT brick is rather small compared to a Monitor. To ease debugging, one can print to a Remote Console (RConsole), if the USB cable is connected. This enables easier collection for example of sensor data. 52 52 65 +To use the RConsole, **uncomment** the **RConsole** lines in the wrapper code template **Main.ftl**. Start the **nxjconsoleviewer** tool in the bin directory of your **leJOS installation**. 66 + 67 +Now, when **starting the application**, the brick tries to connect with the nxjconsoleviewer. **Press the //Connect//** button. If connected succesfully, RConsole.println(...) commands will be written to this window. 68 + 53 53
- Confluence.Code.ConfluencePageClass[0]
-
- Id
-
... ... @@ -1,1 +1,1 @@ 1 -137627 291 +13762737 - URL
-
... ... @@ -1,1 +1,1 @@ 1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/137627 29/LEGO Mindstorms with leJOS and SCCharts1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/13762737/LEGO Mindstorms with leJOS and SCCharts