Changeset 1231 for applications/pmsm

Show
Ignore:
Timestamp:
10/25/10 10:03:54 (14 years ago)
Author:
smidl
Message:

fix

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • applications/pmsm/simulator_zdenek/ekf_example/matrix_vs.cpp

    r1230 r1231  
    274274        } 
    275275         
    276         if (sigma>16384<<15) sigma = 16384<<15; 
    277276        *D_i=sigma>>15; 
    278277        if (*D_i==0) *D_i=1; 
    279  
     278                if (*D_i>16384) *D_i = 16384; 
     279                 
    280280 
    281281        for (j=0;j<i;j++) {