Changeset 1387 for applications/pmsm/pmsmDS.h
- Timestamp:
- 09/09/11 12:50:56 (13 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/pmsm/pmsmDS.h
r1380 r1387 38 38 int Dt; 39 39 public: 40 double x[ 8];41 double KalmanObs[ 8];40 double x[9]; 41 double KalmanObs[6]; 42 42 //! Constructor with fixed sampling period 43 43 pmsmDS () : DS() … … 216 216 void step() 217 217 { 218 double t=pmsmsim_get_t(); 218 pmsmsim_fill_xy(x,KalmanObs); 219 double t; 219 220 220 221 static int ind=0; 221 222 static double dW; // increase of W 222 223 static double Mz; // W 223 t +=125e-6;224 t=pmsmsim_get_t(); 224 225 if ( t>=dt_prof*ind ) 225 226 {