Package lejos.remote.ev3
Interface RMIMotorPort
-
- All Superinterfaces:
java.rmi.Remote
- All Known Implementing Classes:
RMIRemoteMotorPort
public interface RMIMotorPort extends java.rmi.Remote
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()voidcontrolMotor(int power, int mode)Low-level method to control a motor.intgetTachoCount()returns tachometer countvoidresetTachoCount()resets the tachometer count to 0;voidsetPWMMode(int mode)
-
-
-
Method Detail
-
controlMotor
void controlMotor(int power, int mode) throws java.rmi.RemoteExceptionLow-level method to control a motor.- Parameters:
power- power from 0-100mode- defined inBasicMotorPort. 1=forward, 2=backward, 3=stop, 4=float.- Throws:
java.rmi.RemoteException- See Also:
BasicMotorPort.FORWARD,BasicMotorPort.BACKWARD,BasicMotorPort.FLOAT,BasicMotorPort.STOP
-
getTachoCount
int getTachoCount() throws java.rmi.RemoteExceptionreturns tachometer count- Throws:
java.rmi.RemoteException
-
resetTachoCount
void resetTachoCount() throws java.rmi.RemoteExceptionresets the tachometer count to 0;- Throws:
java.rmi.RemoteException
-
setPWMMode
void setPWMMode(int mode) throws java.rmi.RemoteException- Throws:
java.rmi.RemoteException
-
close
void close() throws java.rmi.RemoteException- Throws:
java.rmi.RemoteException
-
-