Versions Compared

Key

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

...

Do not forget to flash the download leJOS firmware to the Mindstorms brick as explained in the tutorial!

Known issues

Linux

You can find a guide to install jelos and all dependencies here: https://wiki.ubuntuusers.de/LeJOS_f%C3%BCr_Lego_NXT/. You need to add the LEJOS_NXT_JAVA_HOME environment variable (which should point to your java 8 installation). Following this guide allows to connect via bluetooth.

Connection via usb does currently not work.

On Linux there is an issue when uploading the firmware because of a kernel module (http://ubuntuforums.org/showthread.php?t=1123633). If you can't upload the firmware with your Linux OS, add blacklist cdc_acm at the very end of the file /etc/modprobe.d/blacklist.conf. Afterwards execute sudo rmmod cdc_acm. This will remove the cdc_acm module from the kernel and prevent its restart. Now try to flash the firmware again.

Another issue is that the development package of libusb has to be installed. On Ubuntu you can do this by using sudo apt-get install libusb-dev.

You may have to restart your PC.

(Only necessary if your current java jdk has a higher version than java 8): If the ant tasks fails because jni.h is missing edit the build.xml in line 12 from  <condition property="jni.include.dir" value="${java.home}/../include"> to     <condition property="jni.include.dir" value="${java.home}/include"> if you use java 11 or later, since this was build for java 8 where the java executable was in /jre/bin and not in /bin.

...

The setup.exe of the current LEGO Fantom driver for Windows (1.2.0) has an awkward issue. If you get an error message (Developer Error) because an .msi file could not be found, don't panic. The file is part of the downladed archive (in the Products folder) but you have to start it manually.

Installing the fantom driver does not work, but a connection via bluetooth works.

Mac OS X

The leJOS NXJ tools require a 32 Bit version of Java. However, newer 32 Bit versions of Java are not longer available for Mac. Thus to use leJOS the installation of Java 1.6 is required, which is the last one that supports a 32 Bit mode. You can download the installer for Java 1.6 from https://support.apple.com/kb/dl1572?locale=en_US. It will install Java 1.6 to /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home so that the environment variable LEJOS_NXT_JAVA_HOME, which is set in the installation instructions, points to the correct path.

...

Code Block
languagesct
themeEclipse
titleFloodlight.sct
scchart Flashlight {
    
    @Wrapper TouchSensor, S4
    input bool button;
    
    @Wrapper Floodlight, S1
    output bool light;
    
    initial state lightOff
    --> lightOn withif button /do light = true; go to lightOn
    
    state lightOn
    --> lightOff withif !button /do light = false; go to lightOff
}

This model will start in the state lightOff. If the button is pressed, it will turn on the light and change to the corresponding state, where the light is turned off, as soon as the button is not pressed anymore.

...