lejos.remote.ev3.RMIMotorPort 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;
import lejos.hardware.port.BasicMotorPort;
public interface RMIMotorPort extends Remote {
/**
* Low-level method to control a motor.
*
* @param power power from 0-100
* @param mode defined in BasicMotorPort
. 1=forward, 2=backward, 3=stop, 4=float.
* @see BasicMotorPort#FORWARD
* @see BasicMotorPort#BACKWARD
* @see BasicMotorPort#FLOAT
* @see BasicMotorPort#STOP
*/
public void controlMotor(int power, int mode) throws RemoteException;
/**
* returns tachometer count
*/
public int getTachoCount() throws RemoteException;
/**
*resets the tachometer count to 0;
*/
public void resetTachoCount() throws RemoteException;
public void setPWMMode(int mode) throws RemoteException;
public void close() throws RemoteException;
}