Changeset 239
- Timestamp:
- 01/15/09 16:54:55 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pmsm/simulator_zdenek/simulator.cpp
r238 r239 249 249 usxf+=(*us-usxf)*h/h_reg; 250 250 usyf+=(*(us+1)-usyf)*h/h_reg; 251 251 252 252 // stator current components mean values - reference frame (alfa, beta) 253 253 sum_isx_av+=*x; … … 394 394 395 395 // uprava velikosti vzhledem k Uc!=Ucn 396 kor_Uc=Ucn/230.;397 *u*=kor_Uc; 396 /* kor_Uc=Ucn/230.; 397 *u*=kor_Uc; /**/ 398 398 399 399 pwm(modulace); 400 400 401 *us=ua; 402 *(us+1)=ub; 403 pmsm_model(0); 401 *us=*u*cos(*(u+1)); 402 *(us+1)=*u*sin(*(u+1));; 403 404 pmsm_model(5); 404 405 } 405 406 //////////////////////////////////////////////////////////////////////////////////////////////////////