Changeset 767 for applications/pmsm
- Timestamp:
- 01/11/10 23:01:37 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/pmsm/filters.h
r706 r767 56 56 PMSMlin ( MPFpmsm &p0 ) :p ( p0 ) {}; 57 57 PMSMlin ( const PMSMlin &P0 ) : KalmanFull ( P0 ), p ( P0.p ), thm ( P0.thm ) {} 58 BM* _copy_() const {return new PMSMlin ( *this );} 58 59 PMSMlin* _copy() const { 60 return new PMSMlin ( *this ); 61 } 59 62 60 63 void fillA() { … … 177 180 if ( ind ( i ) != i ) {//replace the current Bm by a new one 178 181 delete BMs ( i ); 179 BMs ( i ) = BMs ( ind ( i ) )->_copy _(); //copy constructor182 BMs ( i ) = BMs ( ind ( i ) )->_copy(); //copy constructor 180 183 } 181 184 };