Changeset 676 for applications/pmsm/pmsm_estim.cpp
- Timestamp:
- 10/22/09 01:13:47 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
applications/pmsm/pmsm_estim.cpp
r666 r676 30 30 F.lookupValue ( "experiment.ndat",Ndat ); 31 31 32 pDS->log_ add ( *L);33 string nic="";32 pDS->log_register ( *L, "true" ); 33 string Ename; 34 34 for (int i=0; i<nE; i++){ 35 Es(i)->log_add(*L,nic); // estimate 35 try { 36 UI::get ( Ename, F.getRoot()["estimators"][i], "name",UI::optional ); 37 } catch ( ...) { 38 Ename="Est"+num2str ( i ); 39 } 40 Es(i)->log_register(*L,Ename); // estimate 36 41 } 37 42 L->init(); … … 48 53 pDS->step(); // simulator step 49 54 pDS->getdata ( dt ); // read data 50 pDS->log it ( *L);55 pDS->log_write (); 51 56 52 57 // Estimators … … 54 59 Es(i)->bayes ( Dls(i)->pushdown ( dt ) ); // update estimates 55 60 56 Es(i)->log it (*L);61 Es(i)->log_write (); 57 62 } 58 63 // Regulators