Changeset 366 for applications
- Timestamp:
- 06/08/09 18:02:02 (16 years ago)
- Location:
- applications/pmsm
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/pmsm/pmsm.h
r357 r366 98 98 void from_setting( const Setting &root ) 99 99 { 100 set_parameters ( root["params"]["Rs"], root["params"]["Ls"], 125e-6, root["params"]["Fmag"], \ 101 root["params"]["kp"], root["params"]["p"], root["params"]["J"], 0.0 ); 100 UI::SettingsResolver params_exp(root["params"]); 101 const Setting& params=params_exp.root(); 102 103 set_parameters ( params["Rs"], params["Ls"], 125e-6, params["Fmag"], \ 104 params["kp"], params["p"], params["J"], 0.0); 105 106 /* set_parameters ( root["params"]["Rs"], root["params"]["Ls"], 125e-6, root["params"]["Fmag"], \ 107 root["params"]["kp"], root["params"]["p"], root["params"]["J"], 0.0 );*/ 102 108 }; 103 109 -
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 -
applications/pmsm/pmsm_estim.cpp
r357 r366 9 9 #include "user_info.h" 10 10 #include "stat/loggers.h" 11 #include "estim/libKF.h" 12 #include "pmsmDS.h" 13 11 14 12 15 using namespace bdm;