Changeset 1297 for applications/pmsm
- Timestamp:
- 03/15/11 17:15:43 (14 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/pmsm/simulator_zdenek/test_UD.cpp
r1245 r1297 49 49 cout << "PSIU: "; for (i=0; i<25;i++) cout << PSIU[i] << ","; cout <<endl;*/ 50 50 51 imatPUcmp(PSIU,5,5);52 cout << "Delta PSI: " << round_i(PhiU*multip-(1<<(15-qAU))*PUcmp) <<endl;51 Mat<int16> PUcmp(PSIU,5,5); 52 // cout << "Delta PSI: " << round_i(PhiU*multip-(1<<(15-qAU))*PUcmp) <<endl; 53 53 54 54 mat_to_int16(round_i(PhiU*multip/(1<<(15-qAU))),PSIU); //<< make is same … … 96 96 // cout << "Df: "; for (i=0; i<5;i++) cout << Df[i] << ","; cout << endl; 97 97 98 imatUcmp(Uf,5,5);99 ivecDcmp(Df,5);98 Mat<int16> Ucmp(Uf,5,5); 99 Vec<int16> Dcmp(Df,5); 100 100 cout << "Delta U: " << round_i(U*multip-Ucmp) << endl; 101 101 cout << "Delat D: " << round_i(D*multip-Dcmp) << endl;