public class EddieControlBoard extends Service implements KeyListener, SerialDataListener, JoystickListener
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
log |
cfgDir, dnaPool, MESSAGE_RECORDING_FORMAT_BINARY, MESSAGE_RECORDING_FORMAT_XML
Constructor and Description |
---|
EddieControlBoard(java.lang.String n) |
Modifier and Type | Method and Description |
---|---|
void |
connect(java.lang.String port) |
java.lang.String |
getAnalogValues() |
java.lang.Float |
getBatteryLevel() |
java.lang.String |
getGPIOHighValues() |
java.lang.String |
getGPIOInputs() |
java.lang.String |
getGPIOLowValues() |
java.lang.String |
getGPIOOutputs() |
java.lang.String |
getHwVersion() |
static ServiceType |
getMetaData()
This static method returns all the details of the class without it having
to be constructed.
|
java.lang.String |
getPingValues() |
java.lang.String |
getVersion() |
void |
go(float left,
float right) |
static void |
main(java.lang.String[] args) |
java.lang.Integer |
onByte(java.lang.Integer newByte) |
void |
onConnect(java.lang.String portName) |
void |
onDisconnect(java.lang.String portName) |
void |
onJoystickInput(JoystickData input) |
void |
onKey(java.lang.String cmd) |
void |
onRY(java.lang.Float ry) |
void |
onY(java.lang.Float y) |
java.util.HashMap<java.lang.String,java.lang.Float> |
publishSensors(java.lang.String dataString) |
java.lang.String |
read() |
void |
sayBatterLevel(java.lang.Float buttonValue) |
java.lang.String |
sendCmd(java.lang.String cmd,
int expectedResponseLength) |
java.lang.String |
sendCommand(java.lang.String cmd)
sending a command when expecting a string response in the context of
blocking for response
|
void |
setMotorSpeed(float left,
float right) |
void |
startJoystick() |
void |
startRemoteAdapter() |
boolean |
startSensors() |
void |
startService() |
void |
startWebGUI() |
void |
stop() |
boolean |
stopSensors() |
addListener, addListener, addTask, addTask, addTask, addTaskOneShot, allowDisplay, allowDisplay, attach, attach, broadcastState, buildDna, buildDna, buildDnaKeys, buildDnaNames, clearLastError, close, containsTask, copyShallowFrom, createPeer, createPeer, createRootReserved, detach, detach, detach, echoHeartbeat, error, error, error, getAttached, getCfgDir, getComm, getDeclaredMethodNames, getDeclaredMethods, getDescription, getDna, getDnaString, getHostName, getInbox, getInstanceId, getIntanceName, getInterfaceSet, getLastError, getMessageSet, getMetaData, getMethodMap, getMethodNames, getMethods, getMethodToolTip, getMsg, getName, getNotifyList, getNotifyListKeySet, getOutbox, getPeerKey, getPeerName, getServiceResourceFile, getSimpleName, getTasks, getThisThread, getType, hasError, hasPeers, help, help, in, info, info, invoke, invoke, invoke, invokeOn, isAttached, isAttached, isLocal, isReady, isRunning, isRuntime, isVirtual, load, load, logTimeEnable, mergeDna, mergeDna, mergePeerDna, movePeerDna, out, out, preProcessHook, preRoutingHook, publishError, publishQueueStats, publishState, publishStats, publishStatus, purgeTask, purgeTasks, releasePeers, releaseService, removeAllListeners, removeListener, requiresSecurity, reserve, reserve, reserveRoot, reserveRoot, reserveRootAs, run, save, save, save, send, send, send, send, sendBlocking, sendBlocking, sendBlocking, sendBlocking, sendPeer, setInstanceId, setName, setPeer, setSecurityProvider, setState, setThisThread, setVirtual, sleep, stackToString, startHeartbeat, startPeer, startPeer, startRecording, stopHeartbeat, stopMsgRecording, stopService, subscribe, subscribe, subscribe, toString, unsubscribe, unsubscribe, unsubscribe, updateStats, warn, warn
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
publishStats, updateStats
getName
getName
public static void main(java.lang.String[] args)
public void connect(java.lang.String port) throws java.io.IOException
java.io.IOException
public java.lang.String getAnalogValues() throws java.lang.Exception
java.lang.Exception
public java.lang.Float getBatteryLevel()
public java.lang.String getGPIOHighValues() throws java.lang.Exception
java.lang.Exception
public java.lang.String getGPIOInputs() throws java.lang.Exception
java.lang.Exception
public java.lang.String getGPIOLowValues() throws java.lang.Exception
java.lang.Exception
public java.lang.String getGPIOOutputs() throws java.lang.Exception
java.lang.Exception
public java.lang.String getHwVersion() throws java.lang.Exception
java.lang.Exception
public java.lang.String getPingValues() throws java.lang.Exception
java.lang.Exception
public java.lang.String getVersion() throws java.lang.Exception
java.lang.Exception
public void go(float left, float right) throws java.lang.Exception
java.lang.Exception
public void onJoystickInput(JoystickData input) throws java.lang.Exception
onJoystickInput
in interface JoystickListener
java.lang.Exception
public void onKey(java.lang.String cmd) throws java.lang.Exception
onKey
in interface KeyListener
java.lang.Exception
public void onRY(java.lang.Float ry) throws java.lang.Exception
java.lang.Exception
public void onY(java.lang.Float y) throws java.lang.Exception
java.lang.Exception
public java.util.HashMap<java.lang.String,java.lang.Float> publishSensors(java.lang.String dataString)
public java.lang.String read() throws java.lang.Exception
java.lang.Exception
public void sayBatterLevel(java.lang.Float buttonValue)
public java.lang.String sendCmd(java.lang.String cmd, int expectedResponseLength) throws java.lang.Exception
java.lang.Exception
public java.lang.String sendCommand(java.lang.String cmd) throws java.lang.Exception
cmd
- to sendjava.lang.Exception
- epublic void setMotorSpeed(float left, float right)
public void startJoystick() throws java.lang.Exception
java.lang.Exception
public void startRemoteAdapter() throws java.lang.Exception
java.lang.Exception
public boolean startSensors()
public void startService()
startService
in interface ServiceInterface
startService
in class Service
public void startWebGUI() throws java.lang.Exception
java.lang.Exception
public void stop() throws java.lang.Exception
java.lang.Exception
public boolean stopSensors()
public final java.lang.Integer onByte(java.lang.Integer newByte) throws java.io.IOException
onByte
in interface SerialDataListener
java.io.IOException
public void onConnect(java.lang.String portName)
onConnect
in interface PortListener
public void onDisconnect(java.lang.String portName)
onDisconnect
in interface PortListener
public static ServiceType getMetaData()