|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JarolCoreInterface
The JarolCoreInterface should be implemented by the class that performs
the control operations.
Depending on the architecture some methods need not to be implemented, e.g.,
signalNavigation()
is only needed if your design requires
that the navigation unit is activated at a deterministic point.
NOTE: The internal Jarol components are called interfaces, e.g., sensor interface,
whereas the outside components are called units, e.g., navigation unit.
Method Summary | |
---|---|
void |
awaitNavigation()
Waits for a signal from the navigation interface that indicates that the control flow can continue. |
void |
awaitSensor()
Waits for a signal from the sensor interface that indicates that the control flow can continue. |
MessageInterface[] |
computeActuationData(MessageInterface[] sensorData,
MessageInterface[] navigationData)
Calculates the information (e.g., motor signals, thruster, fin positions, ...) and returns an array of messages containing this information. |
void |
controlLoop()
Should be called in the run() method and contain a
loop that calls all the necessary methods of JarolCoreInterface. |
void |
forwardToActuator(MessageInterface[] actuatorData)
Fordwards the actuation data to the actuator interface. |
void |
forwardToNavigation(MessageInterface[] sensorData)
Forwards sensorData to the navigation interface. |
void |
forwardToTerminal(MessageInterface[] dataBundle)
Forwarding a dataBundle to the terminal, e.g. |
MessageInterface[] |
readFromNavigation()
Reads navigation data from the navigation interface. |
MessageInterface[] |
readFromSensor()
Reads data from the sensor interface. |
void |
signalActuator()
Signals the actuator interface to continue. |
void |
signalNavigation()
Signals the navigation interface. |
void |
signalTerminal()
Signals the terminal interface to continue. |
Method Detail |
---|
MessageInterface[] computeActuationData(MessageInterface[] sensorData, MessageInterface[] navigationData)
sensorData
- data provided by the sensor interfacenavigationData
- data provided by the navigation interface
void controlLoop()
run()
method and contain a
loop that calls all the necessary methods of JarolCoreInterface.
void awaitSensor()
MessageInterface[] readFromSensor()
void signalActuator()
void forwardToActuator(MessageInterface[] actuatorData)
actuatorData
- actuation datavoid signalTerminal()
void forwardToTerminal(MessageInterface[] dataBundle)
void forwardToNavigation(MessageInterface[] sensorData)
sensorData
- void awaitNavigation()
MessageInterface[] readFromNavigation()
void signalNavigation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |