Changeset 1306 for applications

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

compute Kalman the same way it is done in pmsm_estim.

TODO: check ZP

Files:
1 modified

Legend:

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

    r1294 r1306  
    485485  pmsm_model(5); 
    486486 
     487  // TODO - check ZP 
    487488  double Umk=*u*Uc/Ucn;// !!!! 
     489  ualfa=Umk*cos(*(u+1));                   // usx = usa 
     490  ub=Umk*cos(*(u+1)-2./3.*M_PI); 
     491  ubeta=(ualfa+2.*ub)/sqrt(3.);    // usy 
     492   
    488493   
    489494//  KalmanObs[0]=Umk*cos(*(u+1));                  // usx = usa 
    490495//  KalmanObs[1]=(KalmanObs[0]+2.*ub)/sqrt(3.);    // usy 
    491496 
    492   KalmanObs[0]=ua;//Umk*cos(*(u+1));               // usx = usa 
    493   KalmanObs[1]=ub;//(KalmanObs[0]+2.*Umk*cos(*(u+1)-2./3.*M_PI))/sqrt(3.);    // usy 
     497  KalmanObs[0]=ualfa;//Umk*cos(*(u+1));            // usx = usa 
     498  KalmanObs[1]=ubeta;//(KalmanObs[0]+2.*Umk*cos(*(u+1)-2./3.*M_PI))/sqrt(3.);    // usy 
    494499   
    495500  KalmanObs[2]=x[0];