User Tools

Site Tools


eeros_architecture:control_system:available_blocks:gain

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
eeros_architecture:control_system:available_blocks:gain [2022/04/21 13:36] – [Gain] ursgrafeeros_architecture:control_system:available_blocks:gain [2026/03/19 12:01] (current) ursgraf
Line 6: Line 6:
 Gain<Matrix<2,1>, Matrix<2,2>> g1({1,2.5,-1,-0.5});  // result will be of type Matrix<2,1> Gain<Matrix<2,1>, Matrix<2,2>> g1({1,2.5,-1,-0.5});  // result will be of type Matrix<2,1>
 </code> </code>
-The first template parameter denotes the type of the input and output signal. The second template parameter is the type of the gain, which here is a 2x2-matrix.+The first template parameter denotes the type of the input and output signal. The second template parameter is the type of the gain, which here is a 2x2-matrix. The gain block will calculate output[2,1] = gain[2,2] x input[2,1]
 <code cpp> <code cpp>
 Gain<Matrix<1,2>, Matrix<2,2>> g1({1,2.5,-1,-0.5});  // not allowed Gain<Matrix<1,2>, Matrix<2,2>> g1({1,2.5,-1,-0.5});  // not allowed
eeros_architecture/control_system/available_blocks/gain.1650540973.txt.gz · Last modified: 2022/04/21 13:36 by ursgraf