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:
4 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|