Hot answers tagged

5 votes

Stuck on "Installing rootfs" when installing leJOS on the brick

I was able to fix the problem by creating a smaller partition on the SD card. (The idea came from this forum post; it was not necessary for me to buy a different SD card, despite what many people say ...
3 votes
Accepted

How to get leJOS to run on macOS Sierra

I've managed to get leJOS working on macOS Sierra, minus Bluetooth support. Bluetooth support is officially broken and has been for a while. There also hasn't been a new release in years, so a fix ...
3 votes

Where can I find a good tutorial on programming with Lejos?

The makers of LeJOS maintain a blog on WordPress: https://lejosnews.wordpress.com/ where they also give tips and write howto's. I think that is the best place to get started, apart perhaps from the ...
  • 16.5k
3 votes

Two motors are driven forward, why are they rotating in different directions?

The "forward" and "backward" expressions are only interpreted in the reference frames of the motors themselves and translate to clockwise and counter-clockwise. In your case you must have mounted the ...
  • 14k
2 votes
Accepted

How to close color Sensor properly?

Looking at the stack trace in the exception you've posted, the error seems to be coming from a call to RemoteEV3.createRegulatedMotor: at lejos.remote.ev3.RemoteEV3.createRegulatedMotor(Unknown ...
2 votes

How to get leJOS to run on macOS Sierra

The one thing I needed to change to make the above solution work was this: LEJOS_NXT_JAVA_HOME="/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home" I hope this can be of help to someone. Wim
1 vote
Accepted

LEGO Mindstorm NXT memorize line followed (LeJos)

I will preface this by saying that I'm just going to summarize what I suggest you do, as writing out the code step-by-step would take quite a while, and you writing the code will help improve your ...
  • 161
1 vote

usage of ev3 ultrasonic sensor in lejos behavior based programming

You can use the lejos.ev3.robotics.RangeFinder abstraction class: EV3UltrasonicSensor sensorUS; RangeFinder sonar; public UltrasonicSensor(Port port) { sensorUS = new EV3UltrasonicSensor(port); ...
  • 1,121
1 vote
Accepted

EV3 RMIregulatedMotor Regulation Problems

Looking at your code, you're saying: Set the motors to a speed of 300, acceleration of 1000 Run the motors backwards Pause execution of your program for 500ms Stop the motors If you're not seeing ...

Only top scored, non community-wiki answers of a minimum length are eligible