User Tools

Site Tools


eeros_architecture:control_system:available_blocks:sum

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
eeros_architecture:control_system:available_blocks:sum [2020/09/17 09:20] ursgrafeeros_architecture:control_system:available_blocks:sum [2021/05/16 14:29] (current) ursgraf
Line 2: Line 2:
 A sum block allows to add N input signals together to produce a single output signal. Each of the input signals can be negated if necessary with  A sum block allows to add N input signals together to produce a single output signal. Each of the input signals can be negated if necessary with 
 <code cpp> <code cpp>
-  void negateInput(uint8_t index);+void negateInput(uint8_t index);
 </code> </code>
  
 Situations can arise that a sum blocks draws one of its inputs from signals which are produced further down in the chain, e.g. feedback signals. [{{ :eeros_architecture:control_system:available_blocks:sumblock1.png?400 |//Feedback signal in a sum block//}}] Situations can arise that a sum blocks draws one of its inputs from signals which are produced further down in the chain, e.g. feedback signals. [{{ :eeros_architecture:control_system:available_blocks:sumblock1.png?400 |//Feedback signal in a sum block//}}]
 +In the first run the feedback signal generally has no value yet (is ''nan'') and its timestamp is not set. The output of the sum block would be ''nan'' as well. In such cases you can preset the signal of an input to the sum block with
  
 +<code cpp>
 +void setInitCondition(uint8_t index, T val);
 +</code>
eeros_architecture/control_system/available_blocks/sum.1600327206.txt.gz · Last modified: 2020/09/17 09:20 by ursgraf