Hallo,
we have to do an easy eclipse projekt with the NXT for school.
So far I have made a Java-Projekt, but it doesn´t really work.
Normally the NXT schould drive with a speed of 720 for two seconds, but the wheels just turn for a very short moment
What could be my mistake?
import lejos.nxt.Motor;
public class Motoren {
public static void main(String [] args) {
Motor.A.setSpeed(720);
Motor.C.setSpeed(720);
Motor.A.forward();
Motor.C.forward();
Motor.A.stop();
Motor.C.stop();
try {
Thread.sleep(2000);
}catch (InterruptedException e) {
}
}
}
For the presentation it would be good to have a more difficult Projekt.
Could you please give me a prjekt where the NXT drives around obstacels with his ultrasonic sensor?
Sry for my bad englisch^^
