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 / 292
291  |  293
Subject: 
Re: leJOS auto power-off
Newsgroups: 
lugnet.robotics.rcx.java
Date: 
Thu, 9 Oct 2003 12:35:40 GMT
Viewed: 
5235 times
  
"John Hansen" <JohnBinder@aol.com> writes:
In lugnet.robotics.rcx.java, Brian B. Alano wrote:
How does one disable the auto power-off feature in leJOS?
I've scanned the API and can't find it. Thanks.
-Brian

It can't be done.

http://news.lugnet.com/robotics/rcx/java/?n=213

But it is probably a good idea in most cases to build a timeout into
your programs, lest you forget to turn off the RCX while a program is
running and waste a set of batteries ...

Like

while(System.currentTimeMillis() < 600000) { // 10 minutes timeout
    ...
}

as a main loop instead of while(true){...}


Jürgen

--
Jürgen Stuber <stuber@loria.fr>
http://www.loria.fr/~stuber/

rot 13 "fr"
"se"



Message is in Reply To:
  Re: leJOS auto power-off
 
(...) It can't be done. (URL) Hansen (URL) (21 years ago, 8-Oct-03, to lugnet.robotics.rcx.java)

4 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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