Changeset 366

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

pmsm fixes

Location:
applications/pmsm
Files:
3 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 
  • 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 
  • applications/pmsm/pmsm_estim.cpp

    r357 r366  
    99#include "user_info.h" 
    1010#include "stat/loggers.h" 
     11#include "estim/libKF.h" 
     12#include "pmsmDS.h" 
     13 
    1114 
    1215using namespace bdm;