-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathImportRawData.m
71 lines (71 loc) · 1.99 KB
/
ImportRawData.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
function [ AMBTMP, ET, FX, FY, FZ, IA, MX, MZ, N, NFX, NFY, P, RE, RL, RST, SA, SR, TSTC, TSTI, TSTO, V] = ImportRawData( fileid )
%ImportRawData This function imports raw tire data from a tiredata *.dat
[~ , ~ , ext ] = fileparts(fileid);
if ext=='.dat'
lat_test = importdata(fileid);
%%
% * AMBTMP: Ambient Temperature
AMBTMP = lat_test.data(:,20);
%%
% * ET: Elapsed Time [s]
ET = lat_test.data(:,1);
%%
% * FX: Traction Force [N]
FX = lat_test.data(:,9);
%%
% * FY: Lateral Force [N]
FY = lat_test.data(:,10);
%%
% * FZ: Vertical Force [N]
FZ = -lat_test.data(:,11);
%%
% * IA: Inclination Angle [deg]
IA = lat_test.data(:,5);
%%
% * MX: Overturning Moment [Nm]
MX = lat_test.data(:,12);
%%
% * MZ: Aligning Moment [Nm]
MZ = lat_test.data(:,13);
%%
% * N: Wheel rotational speed [rpm]
N = lat_test.data(:,3);
%%
% * NFX: Normal Force in X [normalized against vectorial load]
NFX = lat_test.data(:,14);
%%
% * NFY: Normal Force in Y [normalized against vectorial load]
NFY = lat_test.data(:,15);
%%
% * P: Pressure [kPa]
P = lat_test.data(:,8);
%%
% * RE: Effective Radius [cm]
RE = lat_test.data(:,7);
%%
% * RL: Loaded Radius [cm]
RL = 0.01*lat_test.data(:,6);
%%
% * RST: Road Surface Temperature [°C]
RST = lat_test.data(:,16);
%%
% * SA: Slip Angle [deg]
SA = lat_test.data(:,4);
%%
% * SR: Slip Ratio [none]
SR = lat_test.data(:,21);
%%
% * TSTC: Tire Surface Temperature Center [°C]
TSTC = lat_test.data(:,18);
%%
% * TSTI: Tire Surface Temperature Inner [°C]
TSTI = lat_test.data(:,17);
%%
% * TSTO: Tire Surface Temperature Outer [°C]
TSTO = lat_test.data(:,19);
%%
% * V: Road Velocity [m/s]
V = 3.6*lat_test.data(:,2);
elseif ext=='.mat'
load(fileid);
end