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