1 | // settings for pmsm_estim.cpp |
---|
2 | |
---|
3 | experiment={ |
---|
4 | ndat = 90000; |
---|
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, 3, 0, -3, -10, -10, 3, 0]; |
---|
12 | profileM = [0, 10, 0, 0, 10, 0, 10, 0, 10, 0]; |
---|
13 | }; |
---|
14 | |
---|
15 | estimator = ( |
---|
16 | {type="EKF"; |
---|
17 | IM = {type="pmsmIM"; |
---|
18 | params = {type = "external";filename = "../cfg/zcu.cfg";path = "pmsm107";}; |
---|
19 | variant = "Mz"; |
---|
20 | }; |
---|
21 | OM = {type="pmsmOM";}; |
---|
22 | dQ=[0.17, 0.17, 0.004, 1e-6, 1e-1]; |
---|
23 | dR=[0.025, 0.025]; |
---|
24 | dP0=[1., 1., 1., 1., 1e-2]; |
---|
25 | //connect |
---|
26 | drv = {type="rv"; names=["o_ia","o_ib","o_ua","o_ub"];}; // observed u |
---|
27 | //drv = {type="rv"; names=["o_ia","o_ib","t_ua","t_ub"];}; // true u |
---|
28 | rv = {type="rv"; names=["EKFMz"]; sizes=[5];}; |
---|
29 | options="logll"; |
---|
30 | }, |
---|
31 | // |
---|
32 | {type="EKF"; |
---|
33 | IM = {type="pmsmIM"; |
---|
34 | params = {type = "external";filename = "../cfg/zcu.cfg";path = "pmsm107";}; |
---|
35 | variant = "2o"; |
---|
36 | }; |
---|
37 | OM = {type="pmsmOM";}; |
---|
38 | dQ=[0.17, 0.17, 0.00004, 1e-8]; |
---|
39 | dR=[0.025, 0.025]; |
---|
40 | dP0=[1., 1., 1., 1.]; |
---|
41 | //connect |
---|
42 | drv = {type="rv"; names=["o_ia","o_ib","o_ua","o_ub"];}; // observed u |
---|
43 | //drv = {type="rv"; names=["o_ia","o_ib","t_ua","t_ub"];}; // true u |
---|
44 | rv = {type="rv"; names=["EKF"]; sizes=[4];}; |
---|
45 | options="logll"; |
---|
46 | }, |
---|
47 | // |
---|
48 | {type="EKF"; |
---|
49 | IM = {type="pmsmIM"; |
---|
50 | params = {type = "external";filename = "../cfg/zcu.cfg";path = "pmsm107";}; |
---|
51 | variant = "Stat"; |
---|
52 | }; |
---|
53 | OM = {type="pmsmOM";}; |
---|
54 | dQ=[0.17, 0.17, 0.004, 1e-5]; |
---|
55 | dR=[0.025, 0.025]; |
---|
56 | dP0=[1., 1., 1., 1.]; |
---|
57 | //connect |
---|
58 | drv = {type="rv"; names=["o_ia","o_ib","o_ua","o_ub"];}; // observed u |
---|
59 | //drv = {type="rv"; names=["o_ia","o_ib","t_ua","t_ub"];}; // true u |
---|
60 | rv = {type="rv"; names=["EKFw"]; sizes=[4];}; |
---|
61 | options="logll"; |
---|
62 | } |
---|
63 | |
---|
64 | |
---|
65 | ); |
---|
66 | |
---|
67 | logger= { |
---|
68 | type="dirfilelog"; |
---|
69 | maxlen = 1; |
---|
70 | dirname = "exp/Mz"; |
---|
71 | }; |
---|