Show
Ignore:
Timestamp:
03/14/11 09:32:33 (13 years ago)
Author:
smidl
Message:

zmeny v experimentech

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • applications/pmsm/simulator_zdenek/ekf_example/ekf_obj.cpp

    r1245 r1294  
    505505{ 
    506506        // Tuning of matrix Q 
    507         Q[0]=prevod(.01,15);       // 0.05 
     507        Q[0]=prevod(.001,15);       // 0.05 
    508508        Q[5]=Q[0]; 
    509509        Q[10]=prevod(0.0005,15);      // 1e-3 
    510         Q[15]=prevod(0.001,15);      // 1e-3 
     510        Q[15]=prevod(0.0001,15);      // 1e-3 
    511511 
    512512        Uf[0]=0x7FFF;// !       // 0.05 
     
    603603        mmultACh(PSI,Chf,PSICh,4,4); 
    604604        //thorton(int16 *U, int16 *D, int16 *PSIU, int16 *Q, int16 *G, int16 *Dold, unsigned int16 dimx); 
    605         householder(PSICh,Q,4); 
    606         //givens(PSICh,Q,4); 
     605        //householder(PSICh,Q,4); 
     606        givens_fast(PSICh,Q,4); 
    607607        // COPY  
    608608        for (int16 ii=0; ii<16; ii++){Chf[ii]=PSICh[ii];} 
     
    629629        //int16 xb[4]; xb[0]=x_est[0]<<2; xb[1]=x_est[1]<<2;  xb[2]=x_est[2]<<2;  xb[3]=x_est[3];   
    630630 
    631         carlson(difz,x_est,Chf,dR,2,4); 
     631        carlson_fast(difz,x_est,Chf,dR,2,4); 
    632632        //x_est[0] = xb[0]>>2; x_est[1]=xb[1]>>2; x_est[2]=xb[2]>>2; x_est[3]=xb[3]; 
    633633         
     
    649649        Q[0]=prevod(.01,15);       // 0.05 
    650650        Q[5]=Q[0]; 
    651         Q[10]=prevod(0.01,15);      // 1e-3 
    652         Q[15]=prevod(0.01,15);      // 1e-3 
     651        Q[10]=prevod(0.0005,15);      // 1e-3 
     652        Q[15]=prevod(0.001,15);      // 1e-3 
    653653         
    654654        Chf[0]=0x3FFF;// !       // 0.05 
     
    661661                 
    662662        // Tuning of matrix R 
    663         R[0]=prevod(0.1,15);         // 0.05 
     663        R[0]=prevod(0.05,15);         // 0.05 
    664664        R[3]=R[0]; 
    665665