eeros_architecture:control_system:subsystem
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
eeros_architecture:control_system:subsystem [2023/06/28 13:12] – [Using Subio Block] ursgraf | eeros_architecture:control_system:subsystem [2023/06/28 13:18] (current) – [Using Subio Block] ursgraf | ||
---|---|---|---|
Line 8: | Line 8: | ||
==== Using Subio Block ==== | ==== Using Subio Block ==== | ||
- | Define the necessary inner blocks in your custom class. In the constructor you create the inner blocks and connect them among each other. The run-method must call all the run-methods of the inner blocks. | + | Define |
<code cpp> | <code cpp> | ||
class Observer : public eeros:: | class Observer : public eeros:: | ||
Line 15: | Line 15: | ||
sum1.getIn(1).connect(sum2.getOut()); | sum1.getIn(1).connect(sum2.getOut()); | ||
sum1.negateInput(1); | sum1.negateInput(1); | ||
+ | setOut(sum1.getOut()); | ||
... | ... | ||
} | } |
eeros_architecture/control_system/subsystem.txt · Last modified: 2023/06/28 13:18 by ursgraf