Changeset 215 for pmsm/sim_profiles.h

Show
Ignore:
Timestamp:
11/27/08 23:32:45 (15 years ago)
Author:
smidl
Message:

PMSM new sim.cpp

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pmsm/sim_profiles.h

    r119 r215  
    6363        if (!load) x[8]=0.0; 
    6464} 
     65 
     66void sim_profile_2slowrevs(double &Ww,bool load=false) { 
     67        static int k_rampa=1; 
     68 
     69        if ((t>0.2)&&(t<0.8)) { 
     70                if ((t>0.4)&&(t<0.7)) 
     71                        Ww+=k_rampa*2.*M_PI*4e-5;    //1000Hz/s 
     72                else 
     73                        Ww-=k_rampa*2.*M_PI*4e-5;    //1000Hz/s 
     74        }        
     75         
     76        if (!load) x[8]=0.0; 
     77}