1 | //
|
2 | // Created by alexn on 23.06.2023.
|
3 | //
|
4 |
|
5 | #ifndef REGELUNGSTECHNIK_REGELUNGSTECHNIK_H
|
6 | #define REGELUNGSTECHNIK_REGELUNGSTECHNIK_H
|
7 |
|
8 | typedef struct Integrator{
|
9 | float val;
|
10 | float K;
|
11 | }Integrator;
|
12 |
|
13 | typedef struct P{
|
14 | float K;
|
15 | float val;
|
16 | }P;
|
17 |
|
18 | typedef struct PI{
|
19 | Integrator I;
|
20 | P P;
|
21 | float val;
|
22 | }PI;
|
23 |
|
24 | void config_Integrator(Integrator *data,float K);
|
25 |
|
26 | void add_val_Integrator(Integrator *data,float newval,float dt);
|
27 |
|
28 | void config_P(P *data,float K);
|
29 |
|
30 | void recall_P(P *data,float val);
|
31 |
|
32 | void config_PI(PI *data,float KP,float KI);
|
33 |
|
34 | void add_val_PI(PI *data,float newval,float dt);
|
35 |
|
36 |
|
37 | #endif //REGELUNGSTECHNIK_REGELUNGSTECHNIK_H
|