To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 643
642  |  644
Subject: 
Re: useful battery program
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Wed, 12 Jan 2000 01:58:25 GMT
Viewed: 
1131 times
  
Ben Jackson schrieb:
Here's a short program to display the battery voltage.  The get_battery_mv()
interface might be useful in the kernel itself.  Would it be appropriate for
the kernel to turn on the low battery indicator as well?  The A/D converter
that the RCX uses to measure this is pretty accurate.  I compared the output
against a Fluke multimeter and the RCX was consistently within 0.05v.

Yes, this is a good idea. The system timer handler will probably become
a C routine, anyway, as it does so many things now. It might as well
check for low battery power and display it.

I was thinking about a configuration option to change the view button's
function, too, make it more of a monitor of sensor data. This would fit
in nicely.

While writing this it occured to me that cls() would be more useful if it also
cleared the dots in the number output area.  Does that sound like a good idea?
I can submit the trivial diff if so...

Hmmm. Not sure. I had intended the text area to be available for user
programs while they run, so cls just clears that. lcd_clear() should be
used by the kernel to clear everything. I tend to think of the graphical
symbols as permanent or independent status displays.

A lot of people seem to need printf these days... I thought networking
and especially lnpd would alleviate the five-character situation
somewhat. A printf of less than 500 bytes code would be a nice
configuration option, I think, but anything larger is probably more of a
burden.

Markus.



Message has 1 Reply:
  Re: useful battery program
 
(...) Yes, the current behavior of displaying the return address for the interrupt handler isn't very useful. :-) I was considering making it display battery voltage. It would be neat if some combination of VIEW and other buttons could be used to do (...) (25 years ago, 12-Jan-00, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  useful battery program
 
Here's a short program to display the battery voltage. The get_battery_mv() interface might be useful in the kernel itself. Would it be appropriate for the kernel to turn on the low battery indicator as well? The A/D converter that the RCX uses to (...) (25 years ago, 12-Jan-00, to lugnet.robotics.rcx.legos)

4 Messages in This Thread:

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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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