Changeset 366 for applications/pmsm/pmsmDS.h
- Timestamp:
- 06/08/09 18:02:02 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/pmsm/pmsmDS.h
r359 r366 15 15 #include "simulator_zdenek/simulator.h" 16 16 #include "pmsm.h" 17 18 using namespace bdm; 17 19 18 20 //! Simulator of PMSM machine with predefined profile on omega … … 165 167 void from_setting( const Setting &root ) 166 168 { 167 set_parameters ( root["params"]["Rs"], root["params"]["Ls"], root["params"]["Fmag"], \ 168 root["params"]["Bf"], root["params"]["p"], root["params"]["kp"], \ 169 root["params"]["J"], root["params"]["Uc"], root["params"]["DT"], 1.0e-6 ); 169 UI::SettingsResolver params_exp(root["params"]); 170 const Setting& params=params_exp.root(); 171 172 set_parameters ( params["Rs"], params["Ls"], params["Fmag"], \ 173 params["Bf"], params["p"], params["kp"], \ 174 params["J"], params["Uc"], params["DT"], 1.0e-6 ); 170 175 171 176 // Default values of profiles for omega and Mz