Changeset 1239 for applications/pmsm/simulator_zdenek
- Timestamp:
- 10/29/10 16:20:01 (14 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/pmsm/simulator_zdenek/ekf_example/matrix_vs.cpp
r1237 r1239 486 486 // double ab=(double)alpha*beta/32768./32768.; 487 487 // double s_ab=sqrt(ab); 488 gamma= sqrt((double)((long)alpha*beta))+0.5; // predelat v DSP488 gamma=(int)(sqrt((double)((long)alpha*beta))+0.5); // predelat v DSP 489 489 //gamma = round(s_ab*(1<<15)); 490 490 // eta=((long)beta<<15) / gamma;