Show
Ignore:
Timestamp:
11/14/10 23:11:36 (14 years ago)
Author:
smidl
Message:

save voltage in no_reg()

Files:
1 modified

Legend:

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

    r1243 r1250  
    485485  pmsm_model(5); 
    486486 
    487   KalmanObs[0]=ualfa; //debug_pwm;                     // usx 
    488   KalmanObs[1]=ubeta;    // usy 
     487  double Umk=*u*Uc/Ucn;// !!!! 
     488   
     489  KalmanObs[0]=Umk*cos(*(u+1));            // usx = usa 
     490  KalmanObs[1]=(KalmanObs[0]+2.*ub)/sqrt(3.);    // usy 
    489491   
    490492  KalmanObs[2]=x[0];