1 | // settings for pmsm_estim.cpp |
---|
2 | |
---|
3 | experiment={ |
---|
4 | ndat = 60000; |
---|
5 | }; |
---|
6 | |
---|
7 | system= { |
---|
8 | type = "pmsmDS"; |
---|
9 | params = {type = "external";filename = "../cfg/zcu.cfg";path = "pmsm107";}; |
---|
10 | tstep = 1.0; // steps for profile in [s] |
---|
11 | profileW = [1, 5, 10, 10, 10, 3, 0, 0]; |
---|
12 | profileM = [0, 0, 10, 0, 10, 0, 10, 0]; |
---|
13 | }; |
---|
14 | |
---|
15 | E1={type="EKF"; |
---|
16 | IM = {type="pmsmIM"; |
---|
17 | params = {type = "external";filename = "../cfg/zcu.cfg";path = "pmsm107";}; |
---|
18 | variant = "2o"; |
---|
19 | }; |
---|
20 | OM = {type="pmsmOM";}; |
---|
21 | dQ=[1.7, 1.7, 0.004, 1e-5]; |
---|
22 | dR=[0.025, 0.025]; |
---|
23 | dP0=[1., 1., 1., 1.]; |
---|
24 | //connect |
---|
25 | drv = {type="rv"; names=["o_ia","o_ib","o_ua","o_ub"];}; // observed u |
---|
26 | //drv = {type="rv"; names=["o_ia","o_ib","t_ua","t_ub"];}; // true u |
---|
27 | rv = {type="rv"; names=["EKF"]; sizes=[4];}; |
---|
28 | log_level="logevidence"; |
---|
29 | }; |
---|
30 | E2= {type="EKF"; |
---|
31 | IM = {type="pmsmIM"; |
---|
32 | params = {type = "external";filename = "../cfg/zcu.cfg";path = "pmsm107";}; |
---|
33 | variant = "Stat"; |
---|
34 | }; |
---|
35 | OM = {type="pmsmOM";}; |
---|
36 | dQ=[1.7, 1.7, 0.004, 1e-5]; |
---|
37 | dR=[0.025, 0.025]; |
---|
38 | dP0=[1., 1., 1., 1.]; |
---|
39 | //connect |
---|
40 | drv = {type="rv"; names=["o_ia","o_ib","o_ua","o_ub"];}; // observed u |
---|
41 | //drv = {type="rv"; names=["o_ia","o_ib","t_ua","t_ub"];}; // true u |
---|
42 | rv = {type="rv"; names=["EKFw"]; sizes=[4];}; |
---|
43 | log_level="logevidence"; |
---|
44 | }; |
---|
45 | |
---|
46 | estimator = ( |
---|
47 | {type="internal";path="E1";}, |
---|
48 | {type="internal";path="E2";}, |
---|
49 | {type="MultiModel"; |
---|
50 | models=( |
---|
51 | {type="internal";path="E1";}, |
---|
52 | {type="internal";path="E2";}); |
---|
53 | log_level="logevidence"; |
---|
54 | }); |
---|
55 | |
---|
56 | logger= { |
---|
57 | ` type="dirfilelog"; |
---|
58 | maxlen = 1; |
---|
59 | dirname = "MM"; |
---|
60 | }; |
---|