Changeset 1304
- Timestamp:
- 03/23/11 22:23:14 (14 years ago)
- 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 165 165 166 166 set_dim(4); 167 dimy = 2; 168 dimc = 2; 167 169 E._mu()=zeros(4); 168 170 E._R()=zeros(4,4); -
applications/pmsm/simulator_zdenek/ekf_example/matrix_vs.cpp
r1294 r1304 66 66 int32 z_pom; 67 67 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 70 77 for (iy=0; iy<dimy; iy++, a+=dimx) { 71 78 // a is a row