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 | // log_level = "logvoltage"; |
---|
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=[0.002, 0.002, 5e-7, 3e-13, 1e-1]; |
---|
24 | dR=[0.0025, 0.0025]; |
---|
25 | dP0=[0., 0., 0., 0., 0.]; |
---|
26 | //connect |
---|
27 | drv = {type="rv"; names=["o_ia","o_ib","o_ua","o_ub"];}; // observed u |
---|
28 | //drv = {type="rv"; names=["o_ia","o_ib","t_ua","t_ub"];}; // true u |
---|
29 | rv = {type="rv"; names=["EKFMz"]; sizes=[5];}; |
---|
30 | log_level="logevidence,logbounds"; |
---|
31 | }, |
---|
32 | // |
---|
33 | // |
---|
34 | {type="pmsmCRBMz"; |
---|
35 | IM = {type="pmsmIM"; |
---|
36 | params = {type = "external";filename = "../cfg/zcu.cfg";path = "pmsm107";}; |
---|
37 | variant = "Mz"; |
---|
38 | }; |
---|
39 | OM = {type="pmsmOM";}; |
---|
40 | dQ=[0.002, 0.002, 5e-7, 3e-13, 1e-1]; |
---|
41 | dR=[0.0025, 0.0025]; |
---|
42 | dP0=[0., 0., 0., 0., 0.]; |
---|
43 | //connect |
---|
44 | drv = {type="rv"; names=["o_ia","o_ib","t_ua","t_ub"];}; // observed u |
---|
45 | //drv = {type="rv"; names=["o_ia","o_ib","t_ua","t_ub"];}; // true u |
---|
46 | rv = {type="rv"; names=["CRB"]; sizes=[5];}; |
---|
47 | log_level="logevidence,logbounds"; |
---|
48 | }, |
---|
49 | |
---|
50 | {type="pmsmCRB"; |
---|
51 | IM = {type="pmsmIM"; |
---|
52 | params = {type = "external";filename = "../cfg/zcu.cfg";path = "pmsm107";}; |
---|
53 | variant = "2o"; |
---|
54 | }; |
---|
55 | OM = {type="pmsmOM";}; |
---|
56 | dQ=[0.002, 0.002, 0.3, 5e-9]; |
---|
57 | dR=[0.025, 0.025]; |
---|
58 | dP0=[0., 0., 0., 0.]; |
---|
59 | //connect |
---|
60 | drv = {type="rv"; names=["o_ia","o_ib","t_ua","t_ub"];}; // observed u |
---|
61 | //drv = {type="rv"; names=["o_ia","o_ib","t_ua","t_ub"];}; // true u |
---|
62 | rv = {type="rv"; names=["CRB2"]; sizes=[4];}; |
---|
63 | log_level="logevidence,logbounds"; |
---|
64 | } |
---|
65 | |
---|
66 | |
---|
67 | ); |
---|
68 | |
---|
69 | logger= { |
---|
70 | type="mexlog"; |
---|
71 | maxlen = 119999; |
---|
72 | }; |
---|