資源簡介
從IMU中提取數據,計算出速度、位移,從而得到運動軌跡,實現定位功能
代碼片段和文件信息
newData?=?importdata(‘Data150901100854—wandao1?-改1.txt‘?‘\t‘?2);
data=newData.data;
%subplot(221);
figure(1);
plot(data(:1)data(:9:11));grid?on;xlabel(‘時間/s‘);ylabel(‘加速度/g‘);title(‘加速度曲線-彎道1th‘);
%plot(data(:7)data(:9:11));grid?on;xlabel(‘時間/s‘);ylabel(‘加速度/g‘);title(‘加速度曲線-彎道1th‘);
%subplot(222);plot(data(:1)data(:5:7));grid?on;xlabel(‘時間/s‘);ylabel(‘角速度/°/s‘);title(‘角速度曲線‘);
%subplot(223);
figure(2);
plot(data(:1)data(:15:17));grid?on;xlabel(‘時間/s‘);ylabel(‘角度/°‘);title(‘角度曲線-彎道2th‘);
%plot(data(:7)data(:15:17));grid?on;xlabel(‘時間/s‘);ylabel(‘角度/°‘);title(‘角度曲線-彎道1th‘);
%subplot(224);plot(data(:1)data(:11));grid?on;xlabel(‘時間/s‘);ylabel(‘溫度/°‘);title(‘溫度曲線‘);
%**************消除IMU自身誤差*************************************%
sz=size(data(:9));
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????2455??2015-10-28?19:33??DataPlot.m
-----------?---------??----------?-----??----
?????????????????2455????????????????????1
- 上一篇:ddd 六階狀態空間模型
- 下一篇:spectral-ratio
評論
共有 條評論