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, 100, 3, 3, 0, 0]; |
---|
12 | //profileM = [0, 0, 10, 10, 10, 0, 10, 0]; |
---|
13 | opt = "modelu"; |
---|
14 | }; |
---|
15 | |
---|
16 | estimator = ( |
---|
17 | {type="EKF"; |
---|
18 | IM = {type="pmsmIM"; |
---|
19 | params = {type = "external";filename = "../cfg/zcu.cfg";path = "pmsm107";}; |
---|
20 | variant = "2o"; |
---|
21 | }; |
---|
22 | OM = {type="pmsmOM";}; |
---|
23 | dQ=[0.17, 0.17, 0.0000004, 1e-11]; |
---|
24 | dR=[0.0001, 0.0001]; |
---|
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=["EKF"]; sizes=[4];}; |
---|
29 | options="logbounds"; |
---|
30 | }, |
---|
31 | /////////// |
---|
32 | {type="pmsmCRB"; |
---|
33 | IM = {type="pmsmIM"; |
---|
34 | params = {type = "external";filename = "../cfg/zcu.cfg";path = "pmsm107";}; |
---|
35 | variant = "2o";// 2nd order Taylor |
---|
36 | }; |
---|
37 | OM = {type="pmsmOM";}; |
---|
38 | dQ=[0.017, 0.017, 0.00000004, 1e-12]; |
---|
39 | dR=[0.0000000001, 0.000000001]; |
---|
40 | //connect |
---|
41 | drv = {type="rv"; names=["o_ia","o_ib","o_ua","o_ub"];}; // observed u |
---|
42 | //drv = {type="rv"; names=["o_ia","o_ib","t_ua","t_ub"];}; // true u |
---|
43 | rv = {type="rv"; names=["EKF"]; sizes=[4];}; |
---|
44 | }, |
---|
45 | /////////// |
---|
46 | {type="EKF"; |
---|
47 | IM = {type="pmsmIM"; |
---|
48 | params = {type = "external";filename = "../cfg/zcu.cfg";path = "pmsm107";}; |
---|
49 | variant = "2o";// 2nd order Taylor |
---|
50 | }; |
---|
51 | OM = {type="pmsmOM4";}; |
---|
52 | dQ=[0.017, 0.017, 0.00000004, 1e-12]; |
---|
53 | dR=[0.0000000001, 0.000000001, 0.000000001, 0.000000001]; |
---|
54 | //connect |
---|
55 | drv = {type="rv"; names=["o_ia","o_ib","o_om","o_th","o_ua","o_ub"];}; // observed u |
---|
56 | //drv = {type="rv"; names=["o_ia","o_ib","t_ua","t_ub"];}; // true u |
---|
57 | rv = {type="rv"; names=["ekff"]; sizes=[4];}; |
---|
58 | } |
---|
59 | |
---|
60 | |
---|
61 | ); |
---|
62 | |
---|
63 | logger= { |
---|
64 | type="dirfilelog"; |
---|
65 | maxlen = 1; |
---|
66 | dirname = "exp/pwm"; |
---|
67 | }; |
---|