To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 1228
1227  |  1229
Subject: 
Battery status
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Fri, 14 Sep 2001 19:43:39 GMT
Viewed: 
2422 times
  
Hello,

can i check the battery status directly in NQC without connecting  the PC.
Can i use a trick to get the voltage

Br

Kalle



Message has 2 Replies:
  Re: Battery status
 
Kalle - (...) In NQC version 2.3r1 (and probably higher), using the RIS2.0 firmware, you can use x = BatteryLevel(); to set variable 'x' equal to the battery level in millivolts. Cheers, JP (23 years ago, 22-Sep-01, to lugnet.robotics.rcx.nqc)
  Re: Battery status
 
(...) Here's a quick little program that will tell you. Make sure it's the 2.x firmware. ---8<--- task main() { while (true) { SetUserDisplay(BatteryLevel(), 3); } } ---8<--- Dean (23 years ago, 24-Sep-01, to lugnet.robotics.rcx.nqc)

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