public interface RMIMotorPort
extends java.rmi.Remote
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
controlMotor(int power,
int mode)
Low-level method to control a motor.
|
int |
getTachoCount()
returns tachometer count
|
void |
resetTachoCount()
resets the tachometer count to 0;
|
void |
setPWMMode(int mode) |
void controlMotor(int power, int mode) throws java.rmi.RemoteException
power
- power from 0-100mode
- defined in BasicMotorPort
. 1=forward, 2=backward, 3=stop, 4=float.java.rmi.RemoteException
BasicMotorPort.FORWARD
,
BasicMotorPort.BACKWARD
,
BasicMotorPort.FLOAT
,
BasicMotorPort.STOP
int getTachoCount() throws java.rmi.RemoteException
java.rmi.RemoteException
void resetTachoCount() throws java.rmi.RemoteException
java.rmi.RemoteException
void setPWMMode(int mode) throws java.rmi.RemoteException
java.rmi.RemoteException
void close() throws java.rmi.RemoteException
java.rmi.RemoteException