eeros_architecture:control_system:custom_blocks
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Last revisionBoth sides next revision | ||
eeros_architecture:control_system:custom_blocks [2021/07/08 19:32] – [Custom Blocks] ursgraf | eeros_architecture:control_system:custom_blocks [2021/07/08 19:36] – [How Many Inputs and Outputs?] ursgraf | ||
---|---|---|---|
Line 3: | Line 3: | ||
==== How Many Inputs and Outputs? ==== | ==== How Many Inputs and Outputs? ==== | ||
- | If your block has one input, one output, or one input and one output, you should design your block as an extension of '' | + | You should design your block as an extension of '' |
For all other cases your block will have to define the necessary inputs and outputs as fields of your new block class. | For all other cases your block will have to define the necessary inputs and outputs as fields of your new block class. | ||
- | As a example we take a block which is of type '' | + | As a example we take a look at a new block |
<code cpp> | <code cpp> | ||
template < typename T = double > // make it available for many types | template < typename T = double > // make it available for many types | ||
- | class MyBlock : public | + | class MyBlock : public |
| | ||
MyBlock() { ... } // constructor | MyBlock() { ... } // constructor |
eeros_architecture/control_system/custom_blocks.txt · Last modified: 2021/07/08 19:37 by ursgraf