Package lejos.hardware
Interface Power
-
- All Known Implementing Classes:
RemoteBattery,RemoteNXTBattery,RemoteRequestBattery
public interface PowerInterface used to access information about the EV3 battery and current usage.- Author:
- Brian Bagnall, Lawrie Griffiths Andy Shaw
-
-
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()
The NXT uses 6 batteries of 1500 mV each.- Returns:
- Battery voltage in mV. ~9000 = full.
-
getVoltage
float getVoltage()
The NXT uses 6 batteries of 1.5 V each.- Returns:
- Battery voltage in Volt. ~9V = full.
-
getBatteryCurrent
float getBatteryCurrent()
Return the current draw from the battery- Returns:
- current in Amps
-
getMotorCurrent
float getMotorCurrent()
return the motor current draw- Returns:
- current in Amps
-
-