- Timestamp:
- 03/14/12 23:39:30 (12 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/pmsm/simulator_zdenek/ekf_example/mpf_double.h
r1381 r1438 5 5 #define N 20 6 6 7 #define Lsd Ls* 1.17 #define Lsd Ls*0.9 8 8 #define Lsq Ls 9 9 #define _dt 0.000125 10 #define _ad Rs*_dt/Lsd11 #define _aq Rs*_dt/Lsq10 #define _ad (1.-Rs*_dt/Lsd) 11 #define _aq (1.-Rs*_dt/Lsq) 12 12 #define _b Fmag/Lsq*_dt 13 13 #define _cd _dt/Lsd … … 21 21 void mpf_mean(double *Ecosth, double *Esinth, double *Eome); 22 22 void mpf_th(double th1[N]); 23 24 double kalman_om ( const double &isa, const double &isb , const double &usa, const double &usb, const double &th );