# settings for sim.cpp

experiment={
	ndat = 90000;
};

system= {
	class = "pmsmDS";
	params = "pmsm107@cfg/zcu.cfg";
	tstep = 1.0; // steps for profile in [s]
	profileW = [1, 40, 0, -40, 0, 0, 0, 1, 0, 0 ];
	opt = "u";
};

estimator = (
	 {class="EKFfull";
		IM = {class="IMpmsm";
			params = "pmsm107@cfg/zcu.cfg";
		};
		OM = {class="OMpmsm";};
		dQ=[0.17, 0.17, 0.0000004, 1e-11];
		dR=[0.0006, 0.0006];
		//connect
		yrv = {class="RV"; names=("o_ia","o_ib");};  // observed i
		rvc = {class="RV"; names=("o_ua","o_ub");};  // observed u
		//rvc = {type="RV"; names=("t_ua","t_ub");}; // true u
		rv = {class="RV"; names=("EKF"); sizes=[4];};
		log_level = "logbounds";
	 }                                       
);
	
logger= {
	class="dirfilelog";
	maxlen = 1000;
	dirname = "kst/sim";
};
