Minor fixes to log conversion scripts

This commit is contained in:
Lorenz Meier
2013-08-13 08:50:40 +02:00
parent 0025e9ca90
commit 53b373dd82
2 changed files with 2 additions and 3 deletions
+2 -2
View File
@@ -111,9 +111,9 @@ 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
time_s = time_s - time_m * 60;
disp([sprintf('Flight log duration: %d:%d (minutes:seconds)', time_m, time_s)]);
disp([sprintf('Flight log duration: %d:%d (minutes:seconds)', time_m, time_s) char(10)]);
disp(['logfile conversion finished.' char(10)]);
else
-1
View File
@@ -200,7 +200,6 @@ class SDLog2Parser:
else:
data = struct.unpack(self.MSG_FORMAT_STRUCT, str(self.__buffer[self.__ptr + 3 : self.__ptr + self.MSG_FORMAT_PACKET_LEN]))
msg_type = data[0]
print(msg_type)
if msg_type != self.MSG_TYPE_FORMAT:
msg_length = data[1]
if runningPython3: