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 / 1194
1193  |  1195
Subject: 
Re: battery life indicator
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Mon, 3 Jul 2000 10:35:19 GMT
Viewed: 
1225 times
  
if((BATTERY/0x0016)<700) dlcd_show(LCD_BATTERY_X);

I always put this line on my programs.

BATTERY/0x0016 gives the value in V*100 of all batteries open circuit voltage.

<700 is the limit for rotation sensors to work (all the other sensors have
lower limts) approximatelly 1.2V per battery

dlcd_show(LCD_BATTERY_X) lights up the display of dead battery.



Message is in Reply To:
  battery life indicator
 
Hello, Is there a way to find out the battery life on the RCX in legOS? I checked this group and the documentation, and I can't find this info. Thanks, Nils (24 years ago, 16-Jun-00, to lugnet.robotics.rcx.legos)

3 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