[1290] | 1 | // settings for pmsm_estim.cpp |
---|
| 2 | |
---|
| 3 | experiment={ |
---|
[1298] | 4 | Ndat = 120000; |
---|
[1385] | 5 | // Ndat = 100000; |
---|
[1303] | 6 | // Ndat = 50000; |
---|
[1290] | 7 | }; |
---|
| 8 | |
---|
| 9 | system= { |
---|
| 10 | class= "pmsmDSctrl"; |
---|
| 11 | params = "pmsm107@./cfg/zcu.cfg"; |
---|
| 12 | tstep = 1; // steps for profile in [s] |
---|
[1298] | 13 | // profileW = [0, 10, 0, 2 ]; |
---|
[1303] | 14 | // profileW = [0, 500, 1000, 1500, 2000, 2500, 3000 ]; |
---|
[1290] | 15 | // profileW = [0, -10, 30, 60, 90, 60, 30, 0, -30, -60, -30]; |
---|
[1385] | 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]; |
---|
[1290] | 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";}; |
---|
[1385] | 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]; |
---|
[1290] | 31 | dR=[0.05, 0.05]; |
---|
| 32 | //connect |
---|
| 33 | log_level="logmean"; |
---|
| 34 | name = "Est0"; |
---|
| 35 | }; |
---|
| 36 | |
---|
[1298] | 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 | |
---|
[1290] | 82 | controllers=({ |
---|
[1298] | 83 | // class = "PMSM_PICtrl"; |
---|
[1385] | 84 | // class = "PMSM_LQCtrl"; |
---|
[1303] | 85 | // class = "PMSM_LQCtrl_dq"; |
---|
[1385] | 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"; |
---|
[1303] | 91 | estim = "UD"; |
---|
| 92 | // estim = "PF"; |
---|
[1317] | 93 | // r = 0.0001; |
---|
| 94 | r = 0.001; |
---|
[1303] | 95 | // r = 0.04; |
---|
[1290] | 96 | h = 10; |
---|
[1303] | 97 | MAXu = 400; |
---|
[1385] | 98 | // MAXu = 100; |
---|
[1303] | 99 | MAXuflag = 2; |
---|
[1385] | 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; |
---|
[1290] | 108 | } |
---|
| 109 | ); |
---|
| 110 | |
---|
| 111 | logger= { |
---|
| 112 | class="dirfilelog"; |
---|
| 113 | maxlen = 100; |
---|
[1303] | 114 | // dirname = "exp/ctrlPI"; |
---|
[1385] | 115 | // dirname = "exp/ctrlLQ"; |
---|
[1303] | 116 | // dirname = "exp/ctrlLQdq"; |
---|
[1385] | 117 | // dirname = "exp/ctrlLQdq2"; |
---|
| 118 | // dirname = "exp/ctrlLQbic"; |
---|
| 119 | // dirname = "exp/ctrlLQbic2"; |
---|
| 120 | dirname = "exp/ctrlLQbic3"; |
---|
| 121 | // dirname = "exp/ctrlLQEKFInj"; |
---|
| 122 | |
---|
[1290] | 123 | }; |
---|