aboutsummaryrefslogtreecommitdiff
path: root/Tools/logconv.m
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2013-08-08 11:24:57 +0200
committerLorenz Meier <lm@inf.ethz.ch>2013-08-08 11:24:57 +0200
commit7861caf482584afcc19ad235bcbedf26386c05dd (patch)
tree79ce235f236ad51a8f5856457026d5f3871af8df /Tools/logconv.m
parent4b342c4a1f4adf47fd34144992a787107ecc539e (diff)
downloadpx4-firmware-7861caf482584afcc19ad235bcbedf26386c05dd.tar.gz
px4-firmware-7861caf482584afcc19ad235bcbedf26386c05dd.tar.bz2
px4-firmware-7861caf482584afcc19ad235bcbedf26386c05dd.zip
Hotfix: Cleanup / revision of log conversion scripts
Diffstat (limited to 'Tools/logconv.m')
-rw-r--r--Tools/logconv.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tools/logconv.m b/Tools/logconv.m
index f7c291b48..f2ae6e5f3 100644
--- a/Tools/logconv.m
+++ b/Tools/logconv.m
@@ -16,7 +16,7 @@ close all
% ************************************************************************
% Set the path to your sysvector.bin file here
-filePath = 'log_second_flight.bin';
+filePath = 'log001.bin';
% Set the minimum and maximum times to plot here [in seconds]
mintime=0; %The minimum time/timestamp to display, as set by the user [0 for first element / start]
@@ -111,6 +111,7 @@ function ImportPX4LogData()
time_us = sysvector.TIME_StartTime(end) - sysvector.TIME_StartTime(1);
time_s = uint64(time_us*1e-6);
time_m = uint64(time_s/60);
+ time_s = time_s - time_m * 60
disp([sprintf('Flight log duration: %d:%d (minutes:seconds)', time_m, time_s)]);