lejos.remote.ev3.RMIBattery 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.remote.ev3;
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface RMIBattery extends Remote {
/**
* The NXT uses 6 batteries of 1500 mV each.
* @return Battery voltage in mV. ~9000 = full.
*/
public int getVoltageMilliVolt() throws RemoteException;
/**
* The NXT uses 6 batteries of 1.5 V each.
* @return Battery voltage in Volt. ~9V = full.
*/
public float getVoltage() throws RemoteException;
/**
* Return the current draw from the battery
* @return current in Amps
*/
public float getBatteryCurrent() throws RemoteException;
/**
* return the motor current draw
* @return current in Amps
*/
public float getMotorCurrent() throws RemoteException;
}