| 1 | // settings for pmsm_estim.cpp |
|---|
| 2 | |
|---|
| 3 | experiment={ |
|---|
| 4 | Ndat = 50000; |
|---|
| 5 | }; |
|---|
| 6 | |
|---|
| 7 | system= { |
|---|
| 8 | class= "pmsmDSctrl"; |
|---|
| 9 | params = "pmsm107@../cfg/zcu.cfg"; |
|---|
| 10 | tstep = 1; // steps for profile in [s] |
|---|
| 11 | profileW = [0, 50, 0, -50, 0, 50 ]; |
|---|
| 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="EKFfixedCh"; |
|---|
| 19 | IM = {class="IMpmsmStat"; |
|---|
| 20 | params = "pmsm107@../cfg/zcu.cfg"; |
|---|
| 21 | }; |
|---|
| 22 | OM = {class="OMpmsm";}; |
|---|
| 23 | name = "Est0"; |
|---|
| 24 | }; |
|---|
| 25 | |
|---|
| 26 | full = {class="EKFCh"; |
|---|
| 27 | IM = {class="IMpmsmStat"; |
|---|
| 28 | params = "pmsm107@../cfg/zcu.cfg"; |
|---|
| 29 | compensate = 1; |
|---|
| 30 | }; |
|---|
| 31 | OM = {class="OMpmsm";}; |
|---|
| 32 | dQ=[289., 289., 12630., 0.009]; // 0.01*170^2, 0.0005*5026^2, 0.001*3.14^2 |
|---|
| 33 | dR=[1445, 1445]; |
|---|
| 34 | dP0=[14450., 144500., 157000000., 10.]; |
|---|
| 35 | //connect |
|---|
| 36 | log_level="logmean,logU,logG,logD"; |
|---|
| 37 | name = "Est0"; |
|---|
| 38 | }; |
|---|
| 39 | |
|---|
| 40 | controllers=({ |
|---|
| 41 | class = "PMSM_PICtrl"; |
|---|
| 42 | estim = "UD"; |
|---|
| 43 | } |
|---|
| 44 | ); |
|---|
| 45 | |
|---|
| 46 | logger= { |
|---|
| 47 | class="dirfilelog"; |
|---|
| 48 | maxlen = 100; |
|---|
| 49 | dirname = "exp/ctrlPI"; |
|---|
| 50 | }; |
|---|