rcx.rcxdirect
Class Battery

java.lang.Object
  extended by rcx.rcxdirect.DirectSend
      extended by rcx.rcxdirect.Battery

public class Battery
extends DirectSend

Provides access to Battery.


Constructor Summary
Battery()
           
 
Method Summary
static float getVoltage()
           
static int getVoltageInternal()
           
static int getVoltageMilliVolt()
           
 
Methods inherited from class rcx.rcxdirect.DirectSend
getStream, getTimeout, getTimeoutStatic, init, lastResult, lastResultStatic, sendToRCX
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Battery

public Battery()
Method Detail

getVoltageInternal

public static int getVoltageInternal()
Returns:
Battery voltage.

getVoltageMilliVolt

public static int getVoltageMilliVolt()
Returns:
Battery voltage in mV.

getVoltage

public static float getVoltage()
Returns:
Battery voltage in Volt.