root/applications/pmsm/Barcelona/real_pmsm.m @ 1113

Revision 706, 0.8 kB (checked in by smidl, 15 years ago)

eol-native

  • Property svn:eol-style set to native
Line 
1M=pmsm_estim_mex('real_mx.cfg');
2
3ids = [1:size(M.mean_EKFMz,1)];
4kftime=[ids-ids(1)]*0.000125;
5
6figure(1);
7subplot(2,1,1);
8hold off
9plot(kftime,M.mean_EKFMz(ids,3)/2/pi,'-.');
10hold on
11plot(kftime,M.mean_EKF(ids,3)/2/pi,'r');
12
13title('Measured and estimated \omega_{me}');
14xlabel('time [s]')
15
16subplot(2,1,2);
17plot(kftime, M.mean_EKFMz(ids,5));
18title('Estimated load T_L');
19
20
21% -----
22
23load ~/work/vs/Pohony/DATA_MERENI/DATA_MCU/data9.dat -ascii
24
25data=data9;
26
27subplot(2,1,1);
28setime=[0:799]*0.004666; % fitted on currents
29plot(setime,data([0:799]+711,6),'--k','LineWidth',3);
30%plot(setime,data([0:799]+711,11),'--g','LineWidth',3);
31%plot(setime,2*pi*data1([0:799]+620,6),'--k','LineWidth',3);
32
33legend('EKF T_L estimate','EKF estimate','Sensor readings')
34
35set(gca,'XLim',[0,kftime(end)])
Note: See TracBrowser for help on using the browser.