Changeset 1304 for applications

Show
Ignore:
Timestamp:
03/23/11 22:23:14 (13 years ago)
Author:
smidl
Message:

correction of mistake in bierman (negligible influence on results)

Location:
applications/pmsm/simulator_zdenek/ekf_example
Files:
2 modified

Legend:

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

    r1294 r1304  
    165165                         
    166166                        set_dim(4); 
     167                        dimy = 2; 
     168                        dimc = 2; 
    167169                        E._mu()=zeros(4); 
    168170                        E._R()=zeros(4,4); 
  • applications/pmsm/simulator_zdenek/ekf_example/matrix_vs.cpp

    r1294 r1304  
    6666    int32 z_pom; 
    6767    int16 z_pom_int16; 
    68  
    69     a = U; // iyth row of U 
     68         
     69        int16 Ucopy[16]; 
     70         
     71        /* copy U for vector a */ 
     72        int16 *Uc_i=Ucopy; 
     73        int16 *U_i=U; 
     74        for (i=0;i<dimx*dimx;i++) *(Uc_i++)=*(U_i++); 
     75 
     76    a = Ucopy; // iyth row of U 
    7077    for (iy=0; iy<dimy; iy++, a+=dimx) { 
    7178        // a is a row