Package lejos.remote.ev3
Interface RMIBattery
-
- All Superinterfaces:
java.rmi.Remote
- All Known Implementing Classes:
RMIRemoteBattery
public interface RMIBattery extends java.rmi.Remote
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description floatgetBatteryCurrent()Return the current draw from the batteryfloatgetMotorCurrent()return the motor current drawfloatgetVoltage()The NXT uses 6 batteries of 1.5 V each.intgetVoltageMilliVolt()The NXT uses 6 batteries of 1500 mV each.
-
-
-
Method Detail
-
getVoltageMilliVolt
int getVoltageMilliVolt() throws java.rmi.RemoteExceptionThe NXT uses 6 batteries of 1500 mV each.- Returns:
- Battery voltage in mV. ~9000 = full.
- Throws:
java.rmi.RemoteException
-
getVoltage
float getVoltage() throws java.rmi.RemoteExceptionThe NXT uses 6 batteries of 1.5 V each.- Returns:
- Battery voltage in Volt. ~9V = full.
- Throws:
java.rmi.RemoteException
-
getBatteryCurrent
float getBatteryCurrent() throws java.rmi.RemoteExceptionReturn the current draw from the battery- Returns:
- current in Amps
- Throws:
java.rmi.RemoteException
-
getMotorCurrent
float getMotorCurrent() throws java.rmi.RemoteExceptionreturn the motor current draw- Returns:
- current in Amps
- Throws:
java.rmi.RemoteException
-
-