Problems with running programms

This is where you talk about the NXJ software itself, installation issues, and programming talk.

Moderators: 99jonathan, roger, imaqine

Problems with running programms

Postby ghostdex » Mon Jun 04, 2007 12:08 pm

Hi,

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]
ghostdex
New User
 
Posts: 1
Joined: Thu Apr 26, 2007 12:16 pm

Return to NXJ Software

Who is online

Users browsing this forum: Yahoo [Bot] and 4 guests

more stuff