Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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...)

After the installation, the plugin requires a little configuration. Go to Window > Preferences > leJOS NXJ and enter the base directory of your leJOS installation in the NXJ_HOME field.

...

Configure KIELER

With the Eclipse plugin for leJOS installed, you can now use KIELER SCCharts for an model-based approach of programming.

...

Hit the Variables button and search for nxj.home. If the variable exists, your good. If it does not exist, create a new variable (Edit Variables... > New) with that name and point it to the base folder of your leJOS installation. The variable is referenced by the shell commands of the environment.ensure that you installed and configured the Ecplise plugin for leJOS NXJ correctly.

Note: If you already created and launched a project, the settings of the environment are copied to the launch configuration. It is thus may be necessary to alter settings on the launch configuration as well as the environment.

Using the Remote Console (RConsole)

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.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.

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.

...

Creating an Example Project

...

For a deeper understanding of the project launch and initialization, take a look at the wiki page for Prom.

...

Using the Remote Console (RConsole)

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.

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.

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.