lejos.hardware.Power Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lejos-ev3-api Show documentation
Show all versions of lejos-ev3-api Show documentation
leJOS (pronounced like the Spanish word "lejos" for "far") is a tiny Java Virtual Machine. In 2013 it was ported to the LEGO EV3 brick.
The newest version!
package lejos.hardware;
/**
* Interface used to access information about the EV3 battery and current usage.
* @author Brian Bagnall, Lawrie Griffiths Andy Shaw
*
*/
public interface Power {
/**
* The NXT uses 6 batteries of 1500 mV each.
* @return Battery voltage in mV. ~9000 = full.
*/
public int getVoltageMilliVolt();
/**
* The NXT uses 6 batteries of 1.5 V each.
* @return Battery voltage in Volt. ~9V = full.
*/
public float getVoltage();
/**
* Return the current draw from the battery
* @return current in Amps
*/
public float getBatteryCurrent();
/**
* return the motor current draw
* @return current in Amps
*/
public float getMotorCurrent();
}