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.RemoteExceptionBasicMotorPort.FORWARD,
BasicMotorPort.BACKWARD,
BasicMotorPort.FLOAT,
BasicMotorPort.STOPint getTachoCount()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionvoid resetTachoCount()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionvoid setPWMMode(int mode)
throws java.rmi.RemoteException
java.rmi.RemoteExceptionvoid close()
throws java.rmi.RemoteException
java.rmi.RemoteException