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