J - type of Servopublic abstract class SerialServoController<Id,ServoConf extends ServoConfig<Id>,S extends Servo<Id,ServoConf>,ControllerConf extends SerialServoControllerConfig<Id,ServoConf>> extends AbstractServoController<Id,ServoConf,S,ControllerConf>
ServoController.Id, ServoController.ServoId<ServoIdType>| Modifier and Type | Field and Description |
|---|---|
protected RXTXSerialPort |
myPort
Underlying serial port.
|
protected int |
myTimeoutLength
Port timeout length.
|
myChangeMonitor, myConfig, myConnectionStatus, myServoMap, myServosPROP_CONNECTION_STATUS, PROP_ENABLED, PROP_ERROR_MESSAGES, PROP_SERVO_ADD, PROP_SERVO_REMOVE, PROP_SERVOS, PROP_VERSION| Constructor and Description |
|---|
SerialServoController(ControllerConf config)
Creates a new SerialServoController from the SerialServoControllerConfig.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
connect() |
boolean |
disconnect() |
List<String> |
getErrorMessages() |
protected abstract boolean |
setServos()
Sets the Servo List and Servo Map of the underlying
AbstractServoController.
|
void |
setTimeoutLength(int timeout)
Sets the port timeout length.
|
addingServo, addServo, changeServoId, connectServo, containsId, containsIds, disconnectServo, getConfig, getConnectionStatus, getId, getServo, getServos, removeServo, removingServo, servoId, setConnectStatusaddPropertyChangeListener, addPropertyChangeListener, clearAllListeners, clearListeners, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, getPropertyChangeListeners, hasListeners, removePropertyChangeListener, removePropertyChangeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEnabled, getServoIdClass, moveAllServos, moveServo, moveServos, setEnabledprotected RXTXSerialPort myPort
protected int myTimeoutLength
public SerialServoController(ControllerConf config)
config - ControllerConfig for the new controllerpublic void setTimeoutLength(int timeout)
timeout - timeout length in millisecondspublic boolean connect()
protected abstract boolean setServos()
public boolean disconnect()
Copyright © 2011-2016. All Rights Reserved.