00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef M_PI
00015 #define M_PI 3.14159265358979323846
00016 #endif
00017
00018
00019 extern void pmsmsim_set_parameters(double Rs0, double Ls0, double Fmag0, double Bf0, double p0, double kp0, double J0, double Uc0, double DT0, double dt0);
00020 extern void pmsmsim_step(double Ww);
00021 extern void pmsmsim_noreg_step(double ua, double ub);
00022
00023 extern double x[9];
00024 extern double t;
00025 extern double KalmanObs[10];