-
Notifications
You must be signed in to change notification settings - Fork 35
/
TrimGPS.m
27 lines (17 loc) · 1.28 KB
/
TrimGPS.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
function gps = TrimGPS(start_time, end_time, gps_in)
gps.utime = TrimTimes(start_time, end_time, gps_in.logtime, gps_in.utime);
gps.gps_lock = TrimTimes(start_time, end_time, gps_in.logtime, gps_in.gps_lock);
gps.longitude = TrimTimes(start_time, end_time, gps_in.logtime, gps_in.longitude);
gps.latitude = TrimTimes(start_time, end_time, gps_in.logtime, gps_in.latitude);
gps.elev = TrimTimes(start_time, end_time, gps_in.logtime, gps_in.elev);
gps.horizontal_accuracy = TrimTimes(start_time, end_time, gps_in.logtime, gps_in.horizontal_accuracy);
gps.vertical_accuracy = TrimTimes(start_time, end_time, gps_in.logtime, gps_in.vertical_accuracy);
gps.num_staellites = TrimTimes(start_time, end_time, gps_in.logtime, gps_in.num_staellites);
gps.speed = TrimTimes(start_time, end_time, gps_in.logtime, gps_in.speed);
gps.heading = TrimTimes(start_time, end_time, gps_in.logtime, gps_in.heading);
gps.x = TrimTimes(start_time, end_time, gps_in.logtime, gps_in.x);
gps.y = TrimTimes(start_time, end_time, gps_in.logtime, gps_in.y);
gps.z = TrimTimes(start_time, end_time, gps_in.logtime, gps_in.z);
gps.gps_time = TrimTimes(start_time, end_time, gps_in.logtime, gps_in.gps_time);
gps.logtime = TrimTimes(start_time, end_time, gps_in.logtime, gps_in.logtime);
end