User Tools

Site Tools


eeros_architecture:control_system:custom_blocks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
eeros_architecture:control_system:custom_blocks [2018/11/13 10:52] – [What Kind of Signals?] grafeeros_architecture:control_system:custom_blocks [2018/11/13 10:59] – [What Kind of Signals?] graf
Line 2: Line 2:
 If a certain functionality cannot be found in the [[eeros_architecture:control_system:available_blocks|]] you have to implement it in your own block. This is also the case if you want to create a[[eeros_architecture:control_system:subsystem|Subsystem]]. If a certain functionality cannot be found in the [[eeros_architecture:control_system:available_blocks|]] you have to implement it in your own block. This is also the case if you want to create a[[eeros_architecture:control_system:subsystem|Subsystem]].
  
-===== 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 ''Block1i'', ''Block1o'', or ''Block1i1o'', respectively. \\ If your block has one input, one output, or one input and one output, you should design your block as an extension of ''Block1i'', ''Block1o'', or ''Block1i1o'', respectively. \\
  
Line 10: Line 10:
 Depending on the type of the signals you will design your class as a template class or you will define it with a given type. Depending on the type of the signals you will design your class as a template class or you will define it with a given type.
  
 +==== How to Handle the Timestamp ====
 +If your block is not time dependent, you will simply set the timestamp of the output to the same value as the timestamp of the input. If sampling time matters, you will have to calculate the timestamp of the output from the timestamp of the input and inner workings of your block. \\
 +
 +There are cases that your blocks produces signals which do not depend on input signals from other blocks. It might generate its output signals from various other sources and will set its timestamp to a actual system time, or the time the original source signal was generated. 
eeros_architecture/control_system/custom_blocks.txt · Last modified: 2021/07/08 19:37 by ursgraf