Show
Ignore:
Timestamp:
08/02/12 22:43:00 (12 years ago)
Author:
smidl
Message:

opraven test Ch

Files:
1 modified

Legend:

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

    r1464 r1466  
    1  
    21#include <estim/kalman.h> 
    3  
    42#include "ekf_obj.h" 
    53//#include "../simulator.h" 
     
    1210                        *I++ = M(i,j); 
    1311                } 
     12        } 
     13} 
     14void int16_to_mat(int16 *I, imat &M, int rows, int cols){ 
     15        M.set_size(rows,cols); 
     16        for (int16 i=0;i<M.rows(); i++){ 
     17                for (int16 j=0;j<M.cols(); j++){ 
     18                         M(i,j) = *I++; 
     19                } 
     20        } 
     21} 
     22void int16_to_vec(int16 *I, ivec &v, int len){ 
     23        v.set_size(len); 
     24        for (int16 i=0;i<v.length(); i++){ 
     25                        v(i) = *I++; 
    1426        } 
    1527} 
     
    10431055        } 
    10441056         
    1045          
    10461057        { 
    10471058                int Chi[4];     for (int i=0;i<4; i++) Chi[i]=(int)Chf[i];