涂 桂旺 / AutomationElements

Fork of AutomationElements by TVZ Mechatronics Team

Embed: (wiki syntax)

« Back to documentation index

I Class Reference

I Class Reference

Transfer function of an integrator. More...

#include <I.h>

Public Member Functions

 I ()
 Default constructor.
 I (double K_I, double sampleTime)
 Integrator gain and sample time in seconds.
void setParameters (double K_I, double sampleTime)
 Update integrator gain and sample time.
double out ()
 Calculate the output y.
void in (double u)
 Set the input u.

Detailed Description

Transfer function of an integrator.

G(s) = Y(s) / U(s) = K_I / s

Author(s): TVZ Mechatronics Team

Definition at line 12 of file I.h.


Constructor & Destructor Documentation

I (  )

Default constructor.

K_I = 1, sampleTime = 0.1

Definition at line 3 of file I.cpp.

I ( double  K_I,
double  sampleTime 
)

Integrator gain and sample time in seconds.

Definition at line 8 of file I.cpp.


Member Function Documentation

void in ( double  u )

Set the input u.

Definition at line 28 of file I.cpp.

double out (  )

Calculate the output y.

Definition at line 21 of file I.cpp.

void setParameters ( double  K_I,
double  sampleTime 
)

Update integrator gain and sample time.

Definition at line 13 of file I.cpp.