Show
Ignore:
Timestamp:
06/08/09 18:02:02 (15 years ago)
Author:
smidl
Message:

pmsm fixes

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • applications/pmsm/pmsm.h

    r357 r366  
    9898        void from_setting( const Setting &root ) 
    9999        {        
    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 );*/ 
    102108        }; 
    103109