Changeset 1400 for applications/pmsm
- Timestamp:
- 10/04/11 16:45:04 (13 years ago)
- Location:
- applications/pmsm
- Files:
-
- 2 added
- 4 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/pmsm/experiments/ctrl_lq_dq2.cfg
r1399 r1400 14 14 // profileW = [0, 500, 1000, 1500, 2000, 2500, 3000 ]; 15 15 // profileW = [0, -10, 30, 60, 90, 60, 30, 0, -30, -60, -30]; 16 profileW = [0, -1, 3, 6, 9, 6, 3, 0, 0, 0, 0, 0,0,-3, -6, -3];17 //profileW = [1, 10, 50, 200, 200, 30, 0, 0, -30, -30, -100, -100, -40, 0, 0];16 // profileW = [0, -1, 3, 6, 9, 6, 3, 0, 0, 0, 0, 0,0,-3, -6, -3]; 17 profileW = [1, 10, 50, 200, 200, 30, 0, 0, -30, -30, -100, -100, -40, 0, 0]; 18 18 // profileW = [1, 10, 50, 200, 200, 30, 1, 1, -1, -10, -50, -200, -200, -30, 0]; 19 19 // profileW = [250, 500, 750, 1000, 1250, 1500, 1750, 2000, 2250, 2500, 2750, 3000, 3000]; 20 // profileM = [0, 3 0, 0, 0, 30, 0, 0, 0, 0, 0, 10, 0, 0];20 // profileM = [0, 3, 0, 0, 3, 0, 0, 0, 0, 0, 1, 0, 0]; 21 21 profileM = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]; 22 22 }; 23 23 24 24 UD = {class="EKF_UD"; 25 IM = {class="IMpmsm Stat";25 IM = {class="IMpmsm"; 26 26 params = "pmsm107@./cfg/zcu.cfg"; 27 compensate = 1; 27 28 }; 28 29 OM = {class="OMpmsm";}; 29 30 // dQ=[0.1, 0.1, 0.1, 0.001]; ///??????????????? 30 31 // dQ=[0.1, 0.1, 10.01, 10.01]; 31 // dQ=[0.1, 0.1, 0.005, 0.001];32 dQ=[0.1, 0.1, 0.1, 0.00001];33 //dR=[0.05, 0.05];34 dR=[0.00001, 0.00001];32 dQ=[0.1, 0.1, 0.005, 0.001];//, 0.0000000000000000001]; 33 // dQ=[0.1, 0.1, 0.1, 0.00001]; 34 dR=[0.05, 0.05]; 35 // dR=[0.00001, 0.00001]; 35 36 //connect 36 37 log_level="logmean,logU,logD,logC"; … … 105 106 bcbv = 6.0; // 11 - injektaz albe round sin resp. cos 106 107 //bcbv = 0.0; 107 biver = 12;//40;108 biver = 40; 108 109 injkon = 6.0; 109 110 injome = 16000.0; -
applications/pmsm/pmsmDS.h
r1387 r1400 256 256 for ( int i=0; i<Dt; i++ ) 257 257 { 258 pmsmsim_noreg_step (ua , ub );258 pmsmsim_noreg_step (ua , ub, Mz); 259 259 } 260 260 }; -
applications/pmsm/simulator_zdenek/simulator.cpp
r1387 r1400 465 465 } 466 466 467 void pmsmsim_noreg_step(double ua, double ub ) // you must link array KalmanObs[] to EKF modul467 void pmsmsim_noreg_step(double ua, double ub, double Mz) // you must link array KalmanObs[] to EKF modul 468 468 { 469 469 double kor_Uc; … … 479 479 480 480 pwm(modulace); 481 482 x[8] = Mz; 481 483 482 484 // *us=*u*cos(*(u+1)); -
applications/pmsm/simulator_zdenek/simulator.h
r1380 r1400 19 19 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); 20 20 extern void pmsmsim_step(double Ww, double Mz=0.0); 21 extern void pmsmsim_noreg_step(double ua, double ub );21 extern void pmsmsim_noreg_step(double ua, double ub, double Mz=0.0); 22 22 extern void pmsmsim_fill_parameters(double P[10]); 23 23 extern void pmsmsim_fill_xy(double xout[9], double yout[6]);