1 | // settings for pmsm_estim.cpp |
---|
2 | |
---|
3 | experiment={ |
---|
4 | ndat = 120000; |
---|
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 = [0, 3, 10, 10, 3, 0, 0, -3, -3, -3, -10, -10, -4, 0, 0]; |
---|
12 | profileM = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; |
---|
13 | // options = "modelu"; |
---|
14 | }; |
---|
15 | |
---|
16 | estimator = ( |
---|
17 | {type="EKF"; |
---|
18 | IM = {type="pmsmIM"; |
---|
19 | params = {type = "external";filename = "../cfg/zcu.cfg";path = "pmsm107";}; |
---|
20 | variant = "Mz"; |
---|
21 | }; |
---|
22 | OM = {type="pmsmOM";}; |
---|
23 | /* dQ : |
---|
24 | { |
---|
25 | elements = [ 0.001738643873, 0.001738643873, 1.00000004, 1.562501e-08, 1 ]; |
---|
26 | cols = 4; |
---|
27 | };*/ |
---|
28 | dQ=[0.017, 0.017, 0.00000004, 1e-14, 1e-1]; |
---|
29 | dR=[0.025, 0.025]; |
---|
30 | dP0=[0., 0., 0., 0., 0.]; |
---|
31 | //connect |
---|
32 | drv = {type="rv"; names=["o_ia","o_ib","o_ua","o_ub"];}; // observed u |
---|
33 | //drv = {type="rv"; names=["o_ia","o_ib","t_ua","t_ub"];}; // true u |
---|
34 | rv = {type="rv"; names=["EKFMz"]; sizes=[5];}; |
---|
35 | options="logll,logbounds"; |
---|
36 | }, |
---|
37 | // |
---|
38 | // |
---|
39 | {type="pmsmCRBMz"; |
---|
40 | IM = {type="pmsmIM"; |
---|
41 | params = {type = "external";filename = "../cfg/zcu.cfg";path = "pmsm107";}; |
---|
42 | variant = "Mz"; |
---|
43 | }; |
---|
44 | OM = {type="pmsmOM";}; |
---|
45 | dQ=[0.0017, 0.0017, 0.00000004, 1e-14, 1e-1]; |
---|
46 | // dQ=[0.017, 0.017, .1, 1e-6];//[0.017, 0.017, 100., 1e-4]; |
---|
47 | dR=[0.025, 0.025]; |
---|
48 | dP0=[0., 0., 0., 0., 0.]; |
---|
49 | //connect |
---|
50 | drv = {type="rv"; names=["o_ia","o_ib","t_ua","t_ub"];}; // observed u |
---|
51 | //drv = {type="rv"; names=["o_ia","o_ib","t_ua","t_ub"];}; // true u |
---|
52 | rv = {type="rv"; names=["CRB"]; sizes=[5];}; |
---|
53 | options="logll,logbounds"; |
---|
54 | }, |
---|
55 | |
---|
56 | {type="pmsmCRB"; |
---|
57 | IM = {type="pmsmIM"; |
---|
58 | params = {type = "external";filename = "../cfg/zcu.cfg";path = "pmsm107";}; |
---|
59 | variant = "2o"; |
---|
60 | }; |
---|
61 | OM = {type="pmsmOM";}; |
---|
62 | dQ=[0.0017, 0.0017, 1.00000004, 1e-8]; |
---|
63 | // dQ=[0.017, 0.017, .1, 1e-6];//[0.017, 0.017, 100., 1e-4]; |
---|
64 | dR=[0.025, 0.025]; |
---|
65 | dP0=[0., 0., 0., 0., 0.]; |
---|
66 | //connect |
---|
67 | drv = {type="rv"; names=["o_ia","o_ib","t_ua","t_ub"];}; // observed u |
---|
68 | //drv = {type="rv"; names=["o_ia","o_ib","t_ua","t_ub"];}; // true u |
---|
69 | rv = {type="rv"; names=["CRB2"]; sizes=[4];}; |
---|
70 | options="logll,logbounds"; |
---|
71 | } |
---|
72 | |
---|
73 | |
---|
74 | ); |
---|
75 | |
---|
76 | logger= { |
---|
77 | type="mexlog"; |
---|
78 | maxlen = 119999; |
---|
79 | }; |
---|