Changeset 238 for pmsm/simulator_zdenek
- Timestamp:
- 01/15/09 16:49:46 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pmsm/simulator_zdenek/simulator.cpp
r237 r238 229 229 sum_usx_av=0.; 230 230 sum_usy_av=0.; 231 231 232 232 // stator current components mean values - reference frame (alfa, beta) 233 233 isx_av=h/h_reg*sum_isx_av; … … 240 240 citac+=smer; 241 241 citac2+=smer2; 242 242 243 243 // calculation of stator voltage components mean values - sum 244 244 sum_usx_av+=*us; 245 245 sum_usy_av+=*(us+1); 246 246 247 247 // stator voltage components filtering 248 248 //if (start_filter==1) … … 398 398 399 399 pwm(modulace); 400 pmsm_model(5); 400 401 *us=ua; 402 *(us+1)=ub; 403 pmsm_model(0); 401 404 } 402 405 //////////////////////////////////////////////////////////////////////////////////////////////////////