-
Notifications
You must be signed in to change notification settings - Fork 0
/
data_init.m
27 lines (20 loc) · 808 Bytes
/
data_init.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
clear all
[data.numerical,data.rext]=xlsread(fullfile(pwd,'total_flight.xlsx'));
%setup the channel indexes into the csv file
ch_idx__accel_x = 57;
ch_idx__accel_y = 60;
ch_idx__accel_z = 63;
%setup the laser indexes
ch_idx_laser_l_aft_height = 39;
ch_idx_laser_r_aft_height = 42;
ch_idx_laser_aft_yaw = 45;
%read the laser data
data__laser_l_aft_height = data.numerical(:,39);
data__laser_r_aft_height = data.numerical(:,42);
data__laser_aft_yaw = data.numerical(:,45);
all_sensor_data = [data__laser_l_aft_height,data__laser_r_aft_height,data__laser_aft_yaw];
% data__laser_r_fore_height = flip(data__laser_r_aft_height);
% data__laser_l_fore_height = flip(data__laser_l_aft_height);
data__accel_x = data.numerical(:,57);
data__accel_y = data.numerical(:,60);
data__accel_z = data.numerical(:,63);