To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.javaOpen lugnet.robotics.rcx.java in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / Java / 373
    lejos program terminating immediately —Jason Quint
   Hi, I'm trying to use leJOS to display the current value of the rotation sensor I have hooked up to Sensor Port 1, but when I run the program, the RCX just beeps and ends the program immediately. Here's my code: import josx.platform.rcx.*; public (...) (19 years ago, 10-Aug-05, to lugnet.robotics.rcx.java)
   
        AW: lejos program terminating immediately —Jochen Hiller
   Hi Jason, you have to loop within your main program, otherwise main() will be left. E.g. use while (true) { Thread.sleep (1000); } or, use a button listener, and exit when some button has been pressed. HTH, Jochen (...) (19 years ago, 11-Aug-05, to lugnet.robotics.rcx.java)
 

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR