LogAnalyzer - adjust modeChanges for Plane/Rover

- I lack logs for both, not tested.
This commit is contained in:
Markus Koetter 2014-07-03 14:30:12 +02:00 committed by Craig Elder
parent 33d19fc893
commit 099d40f0f8

View File

@ -510,7 +510,7 @@ class DataflashLog:
except:
self.modeChanges[lineNumber] = (e.Mode, e.ThrCrs)
elif self.vehicleType == "ArduPlane" or self.vehicleType == "ArduRover":
self.modeChanges[lineNumber] = (tokens[2],int(tokens[3]))
self.modeChanges[lineNumber] = (e.Mode, e.ModeNum)
else:
raise Exception("Unknown log type for MODE line {} {}".format(self.vehicleType, repr(e)))
# anything else must be the log data