mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 08:33:33 +08:00
Minor fixes to log conversion scripts
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user