LogAnalyzer - adjust modeChanges for Plane/Rover
- I lack logs for both, not tested.
This commit is contained in:
parent
33d19fc893
commit
099d40f0f8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user