# settings for sim.cpp

experiment={
	ndat = 90000;
};

system= {
	type = "pmsmDS";
	params : {type = "external";filename = "cfg/zcu.cfg";path = "pmsm107";};
	tstep = 1.0; // steps for profile in [s]
	profile = [1, 5, 0, -3, 8];
	opt = "u";
};

estimator = (
			 {type="EKF";
			 IM = {type="pmsmIM";
				params : {type = "external";filename = "cfg/zcu.cfg";path = "pmsm107";};
			 };
			 OM = {type="pmsmOM";};
			 dQ=[62., 66., 44., 0.03];
			 dR=[100, 100];
			 //connect
			 drv = {type="rv"; names=["o_ia","o_ib","o_ua","o_ub"];};  // observed u
			 //drv = {type="rv"; names=["o_ia","o_ib","t_ua","t_ub"];}; // true u
			 rv = {type="rv"; names=["EKF"]; sizes=[4];};
			 }
);
	
logger= {
	type="dirfilelog";
	maxlen = 1000;
	dirname = "exp/sim";
};
