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/pmsmDS.h

    r359 r366  
    1515#include "simulator_zdenek/simulator.h" 
    1616#include "pmsm.h" 
     17 
     18using namespace bdm; 
    1719 
    1820//! Simulator of PMSM machine with predefined profile on omega 
     
    165167    void from_setting( const Setting &root ) 
    166168    { 
    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 ); 
    170175 
    171176        // Default values of profiles for omega and Mz