Package lejos.remote.ev3
Class RemoteRequestBattery
- java.lang.Object
-
- lejos.remote.ev3.RemoteRequestBattery
-
-
Constructor Summary
Constructors Constructor Description RemoteRequestBattery(java.io.ObjectInputStream is, java.io.ObjectOutputStream os)
-
Method Summary
All Methods Instance Methods Concrete 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
public int getVoltageMilliVolt()
Description copied from interface:PowerThe NXT uses 6 batteries of 1500 mV each.- Specified by:
getVoltageMilliVoltin interfacePower- Returns:
- Battery voltage in mV. ~9000 = full.
-
getVoltage
public float getVoltage()
Description copied from interface:PowerThe NXT uses 6 batteries of 1.5 V each.- Specified by:
getVoltagein interfacePower- Returns:
- Battery voltage in Volt. ~9V = full.
-
getBatteryCurrent
public float getBatteryCurrent()
Description copied from interface:PowerReturn the current draw from the battery- Specified by:
getBatteryCurrentin interfacePower- Returns:
- current in Amps
-
getMotorCurrent
public float getMotorCurrent()
Description copied from interface:Powerreturn the motor current draw- Specified by:
getMotorCurrentin interfacePower- Returns:
- current in Amps
-
-