Browse Source

Minor fixes to log conversion scripts

sbg
Lorenz Meier 12 years ago
parent
commit
53b373dd82
  1. 4
      Tools/logconv.m
  2. 1
      Tools/sdlog2_dump.py

4
Tools/logconv.m

@ -111,9 +111,9 @@ function ImportPX4LogData() @@ -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
Tools/sdlog2_dump.py

@ -200,7 +200,6 @@ class SDLog2Parser: @@ -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:

Loading…
Cancel
Save