Changeset 223

Show
Ignore:
Timestamp:
01/05/09 19:55:33 (15 years ago)
Author:
smidl
Message:

new experiment in pmsm

Files:
1 added
7 modified

Legend:

Unmodified
Added
Removed
  • bdm/estim/libKF.h

    r215 r223  
    219219 
    220220class EKFCh : public KalmanCh { 
     221        protected: 
    221222        //! Internal Model f(x,u) 
    222223        diffbifn* pfxu; 
  • bdm/stat/libBM.h

    r219 r223  
    146146                return vec ( 0 ); 
    147147        }; 
     148         
     149        //! function substitutes given value into an appropriate position  
     150        virtual void condition(const vec &val){}; 
    148151 
    149152        //! access function 
  • pmsm/CMakeLists.txt

    r222 r223  
    2525EXEC (pmsm_sim2 pmsmsim) 
    2626EXEC (mpf_test pmsmsim) 
     27EXEC (mpf_u_weight pmsmsim) 
     28EXEC (mpf_u_delta pmsmsim) 
     29 
    2730EXEC (sim pmsmsim) 
    2831EXEC (sim_var pmsmsim) 
  • pmsm/pmsm.h

    r162 r223  
    1313// }; 
    1414 
    15 //! State evolution model for a PMSM drive and its derivative with respect to \f$x\f$$ 
     15//! State evolution model for a PMSM drive and its derivative with respect to \f$x\f$ 
    1616class IMpmsm : public diffbifn { 
    1717protected: 
  • pmsm/sim.cpp

    r218 r223  
    1 /* 
     1/*! 
    22  \file 
    3   \brief Models for synchronous electric drive using IT++ and BDM 
     3  \brief Simulation of disturbances in PMSM model, PWM and integration disturbances are distinguished 
    44  \author Vaclav Smidl. 
    55 
     
    7878         
    7979        double frg=0.9; 
    80         vec vecW="0. 0. 0.2 0.4 0.4 0.2 0.0 -0.4 -0.6 -0.6 -0.4 0.0 0.0"; 
     80//      vec vecW="0. 0. 0.2 0.4 0.4 0.2 0.0 -0.4 -0.6 -0.6 -0.4 0.0 0.0"; 
     81        vec vecW="1 2 4 9 4 2 0 -4 -9 -16 -4 0 0 0"; 
     82        vecW*=10.0; 
     83 
    8184        for ( int tK=1;tK<Ndat;tK++ ) { 
    8285                //Number of steps of a simulator for one step of Kalman 
  • pmsm/sim_profiles.h

    r218 r223  
    8080        static int ind=0; 
    8181        static double dW; 
    82         double tn=t; 
    83         if (t>0.1*ind) { 
     82        if (t>=0.1*ind) { 
    8483                ind++; 
    8584                dW = vecWw(ind)-vecWw(ind-1); 
  • pmsm/sim_var.cpp

    r221 r223  
    11/*! 
    22  \file 
    3   \brief Simulation of disturbances in PMSM model, PWM and integration disturbances are distinguished 
     3  \brief Simulation of disturbances in PMSM model, EKF runs with simulated covariances 
    44  \author Vaclav Smidl. 
    55 
     
    2424 
    2525using namespace itpp; 
    26 //!Extended Kalman filter with unknown \c Q 
    2726 
    2827int main() {