Show
Ignore:
Timestamp:
10/12/09 19:38:57 (15 years ago)
Author:
smidl
Message:

PMSM compiles again

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • applications/pmsm/pmsm.h

    r384 r654  
    22#define PMSM_H 
    33 
    4 #include <stat/functions.h> 
    5 #include "user_info.h" 
     4#include <math/functions.h> 
     5#include "base/user_info.h" 
    66 
    77/*! \defgroup PMSM  
     
    9898        void from_setting( const Setting &root ) 
    9999        {        
    100                 UI::SettingResolver params_exp(root["params"]); 
    101                 const Setting& params=params_exp.result; 
    102  
    103                 set_parameters ( params["Rs"], params["Ls"], 125e-6, params["Fmag"], \ 
     100 
     101                const SettingResolver& params_b=root["params"]; 
     102                const Setting& params=params_b.result; 
     103                 
     104                set_parameters ( params["Rs"], params["Ls"], 125e-6, params["Fmag"], \ 
    104105                         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 );*/ 
    108106        }; 
    109107