1 | // settings for pmsm_estim.cpp |
---|
2 | |
---|
3 | experiment={ |
---|
4 | Ndat = 120000; |
---|
5 | // Ndat = 50000; |
---|
6 | }; |
---|
7 | |
---|
8 | system= { |
---|
9 | class= "pmsmDSctrl"; |
---|
10 | params = "pmsm107@./cfg/zcu.cfg"; |
---|
11 | tstep = 1; // steps for profile in [s] |
---|
12 | // profileW = [0, 10, 0, 2 ]; |
---|
13 | // profileW = [0, 500, 1000, 1500, 2000, 2500, 3000 ]; |
---|
14 | // profileW = [0, -10, 30, 60, 90, 60, 30, 0, -30, -60, -30]; |
---|
15 | profileW = [1, 10, 50, 200, 200, 30, 0, 0, -30, -30, -100, -100, -40, 0, 0]; |
---|
16 | // profileM = [0, 30, 0, 0, 30, 0, 0, 0, 0, 0, 10, 0, 0]; |
---|
17 | profileM = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; |
---|
18 | }; |
---|
19 | |
---|
20 | UD = {class="EKFfull"; |
---|
21 | IM = {class="IMpmsmStat"; |
---|
22 | params = "pmsm107@./cfg/zcu.cfg"; |
---|
23 | }; |
---|
24 | OM = {class="OMpmsm";}; |
---|
25 | dQ=[0.1, 0.1, 0.1, 0.01]; ///??????????????? |
---|
26 | dR=[0.05, 0.05]; |
---|
27 | //connect |
---|
28 | log_level="logmean"; |
---|
29 | name = "Est0"; |
---|
30 | }; |
---|
31 | |
---|
32 | OT= {class="EKFfull"; |
---|
33 | IM = {class="IMpmsmOT"; |
---|
34 | params = "pmsm107@./cfg/zcu.cfg"; |
---|
35 | }; |
---|
36 | name = "ekf"; |
---|
37 | OM = {class="OMpmsmOT"; |
---|
38 | params = "pmsm107@./cfg/zcu.cfg"; |
---|
39 | }; |
---|
40 | dQ=[0.1, 0.01]; ///////// <====== OK |
---|
41 | dR=[0.5, 0.5]; |
---|
42 | dP0=[0.1, 0.1]; |
---|
43 | //connect |
---|
44 | log_level="logmean,logevidence,logbounds"; |
---|
45 | }; |
---|
46 | |
---|
47 | PF= {class = "PF";name="pf"; |
---|
48 | particle = {class ="BootstrapParticle"; |
---|
49 | parameter_pdf = {class="mgnorm<ldmat>"; |
---|
50 | g={class="IMpmsmOT"; |
---|
51 | params = "pmsm107@./cfg/zcu.cfg"; |
---|
52 | }; |
---|
53 | dR=[0.001,0.0001]; |
---|
54 | rv ={class="RV";names=("om","th");}; |
---|
55 | rvc ={class="RV";names=("om","th","o_ua","o_ub","o_ia","o_ib");times=[-1,-1,0,0,-1,-1];}; |
---|
56 | }; |
---|
57 | observation_pdf= {class="mgnorm<ldmat>"; |
---|
58 | g={class="OMpmsmOT"; |
---|
59 | params = "pmsm107@./cfg/zcu.cfg"; |
---|
60 | }; |
---|
61 | dR=[0.5,0.5]; |
---|
62 | rv ={class="RV";names=("o_ia","o_ib");}; |
---|
63 | rvc = {class="RV";names=("om","th","o_ua","o_ub","o_ia","o_ib");times=[0,0,0,0,-1,-1];}; |
---|
64 | }; |
---|
65 | }; |
---|
66 | n = 100; |
---|
67 | log_level="logbounds,logmean"; |
---|
68 | prior = {class="euni"; |
---|
69 | high = [ 0.1, 1.0]; |
---|
70 | low = [ -0.1, -1.0]; |
---|
71 | rv ={class="RV";names=("om","th");}; |
---|
72 | }; |
---|
73 | }; |
---|
74 | |
---|
75 | |
---|
76 | |
---|
77 | controllers=({ |
---|
78 | // class = "PMSM_PICtrl"; |
---|
79 | // class = "PMSM_LQCtrl_dq"; |
---|
80 | class = "PMSM_LQCtrl_dq2"; |
---|
81 | estim = "UD"; |
---|
82 | // estim = "PF"; |
---|
83 | // r = 0.0001; |
---|
84 | r = 0.001; |
---|
85 | // r = 0.04; |
---|
86 | h = 10; |
---|
87 | MAXu = 400; |
---|
88 | MAXuflag = 2; |
---|
89 | rpd = 0;//.1; |
---|
90 | } |
---|
91 | ); |
---|
92 | |
---|
93 | logger= { |
---|
94 | class="dirfilelog"; |
---|
95 | maxlen = 100; |
---|
96 | // dirname = "exp/ctrlPI"; |
---|
97 | // dirname = "exp/ctrlLQdq"; |
---|
98 | dirname = "exp/ctrlLQdq2"; |
---|
99 | }; |
---|