Changeset 1264

Show
Ignore:
Timestamp:
12/16/10 15:27:56 (13 years ago)
Author:
smidl
Message:

experiments

Location:
applications/pmsm
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • applications/pmsm/experiments/EKFfixed.cfg

    r1247 r1264  
    1010        tstep = 1; // steps for profile in [s] 
    1111//      profileW = [0, 0, -30, -200, -90, -60, -30, 0, 30, 200]; 
    12         profileW = [30];//[30, 30, 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]; 
     12//      profileW = [30];//[30, 30, 30, 60, 90, 60, 30, 0, -30, -60, -30]; 
     13        profileW = [0,0,1, 1, 5, 2, 2, 3, 0, 0, -3, -3, -1, -1, -4, 0, 0]; 
    1414//      profileM = [0, 30, 0, 0, 30, 0, 0, 0, 0, 0, 10, 0, 0]; 
    1515        profileM = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; 
     
    2121                params = "pmsm107@../cfg/zcu.cfg"; 
    2222         }; 
    23          OM = {class="OMpmsm";}; 
    24 //      dQ=[0.01, 0.01, 0.0001, 0.0001]; 
    25         dQ=[18., 18., 157., 0.001]; 
    26 //      dR=[0.05, 0.05]; 
    27         dR=[90., 90.]; 
    28         dP0=[1800., 1800., 1570000., 10.]; 
     23         OM = {class="OMpmsmRO";}; 
     24        dQ=[0.01, 0.01, 0.0005, 0.001]; 
     25//      dQ=[18., 18., 157., 0.001]; 
     26        dR=[0.05, 0.05]; 
     27//      dR=[90., 90.]; 
     28        dP0=[18000., 18000., 157000000., 10.]; 
    2929         //connect 
    3030         yrv = {class="RV"; names=("o_ia","o_ib");};  // observed u 
    31          rvc = {class="RV"; names=("t_ua","t_ub");};  // observed u 
     31         rvc = {class="RV"; names=("o_ua","o_ub");};  // observed u 
    3232         rv = {class="RV"; names=("ia","ib","om","th");}; 
    3333         log_level="logmean,logevidence,logU,logG,logD"; 
  • applications/pmsm/experiments/EKFfixedCh.cfg

    r1247 r1264  
    1010        tstep = 1; // steps for profile in [s] 
    1111//      profileW = [0, 0, -30, -60, -90, -60, -30, 0, 30, 60]; 
    12         profileW = [0, 0, 0, 0, 30, 60, 30, 0, -30, -60, -30]; 
     12        profileW = [0, 0, 0, 0, 10, 20, 10, 0, -10, -20, -10]; 
    1313//      profileW = [1, 10, 50, 200, 200, 30, 0, 0, -30, -30, -100, -100, -40, 0, 0]; 
    1414//      profileM = [0, 30, 0, 0, 30, 0, 0, 0, 0, 0, 10, 0, 0]; 
     
    2222         }; 
    2323         OM = {class="OMpmsm";}; 
    24 //      dQ=[0.01, 0.01, 0.0001, 0.0001]; 
    25         dQ=[18., 18., 157., 0.001]; 
    26 //      dR=[0.05, 0.05]; 
    27         dR=[90., 90.]; 
     24        dQ=[0.001, 0.001, 0.00001, 0.00000001]; 
     25//      dQ=[18., 18., 157., 0.001]; 
     26        dR=[0.05, 0.05]; 
     27//      dR=[90., 90.]; 
    2828        dP0=[1800., 1800., 1570000., 10.]; 
    2929         //connect 
    3030         yrv = {class="RV"; names=("o_ia","o_ib");};  // observed u 
    31          rvc = {class="RV"; names=("t_ua","t_ub");};  // observed u 
     31         rvc = {class="RV"; names=("o_ua","o_ub");};  // observed u 
    3232         rv = {class="RV"; names=("ia","ib","om","th");}; 
    33          log_level="logmean,logevidence,logU,logG,logD"; 
     33         log_level="logmean,logevidence,logbounds"; 
    3434         name = "Est0"; 
    3535         }, 
    36          {class="EKFfixedCh"; 
     36         {class="EKFfixedUD"; 
    3737         //connect 
    3838         yrv = {class="RV"; names=("o_ia","o_ib");};  // observed u 
  • applications/pmsm/simulator_zdenek/ekf_example/ekf_obj.h

    r1240 r1264  
    104104 
    105105#endif 
     106 
     107//! EKF for testing q44 
     108class EKFtest: public EKFfull{ 
     109        void bayes ( const vec &yt, const vec &cond ) { 
     110                EKFfull::bayes(yt,cond); 
     111                mat &P = est._R(); 
     112                if (P(3,3)>3.14)  
     113                        P(3,3)=3.14;             
     114        } 
     115}; 
     116UIREGISTER(EKFtest); 
    106117 
    107118/*!