Changeset 1297 for applications/pmsm

Show
Ignore:
Timestamp:
03/15/11 17:15:43 (13 years ago)
Author:
smidl
Message:

pokus o opravu test_UD

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • applications/pmsm/simulator_zdenek/test_UD.cpp

    r1245 r1297  
    4949        cout << "PSIU: "; for (i=0; i<25;i++) cout << PSIU[i] << ","; cout <<endl;*/ 
    5050         
    51         imat PUcmp(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; 
    5353         
    5454        mat_to_int16(round_i(PhiU*multip/(1<<(15-qAU))),PSIU); //<< make is same 
     
    9696//      cout << "Df: "; for (i=0; i<5;i++) cout << Df[i] << ","; cout << endl; 
    9797 
    98         imat Ucmp(Uf,5,5); 
    99         ivec Dcmp(Df,5); 
     98        Mat<int16> Ucmp(Uf,5,5); 
     99        Vec<int16> Dcmp(Df,5); 
    100100        cout << "Delta U: " << round_i(U*multip-Ucmp) << endl; 
    101101        cout << "Delat D: " << round_i(D*multip-Dcmp) << endl;