my NXT works great with the Lego Firmware.
But when I download some Lejos programms it doesn't work really good. Sometimes nothing happens and an other time it will work for a few seconds.
Example:
When the robot should drive for 5 seconds, the wheels turn only a little bit.
- Code: Select all
import lejos.nxt.*;
public class drive {
public static void main(String[] args) throws Exception {
// vorwärts
Motor.A.setSpeed(300);
Motor.C.setSpeed(300);
Motor.A.forward();
Motor.C.forward();
Thread.sleep (5000);
Motor.A.stop();
Motor.C.stop();
}
}
There are the same problems when I use the sample programms from Lejos.
What can I do?
Thanks!
[/code]
