-
Notifications
You must be signed in to change notification settings - Fork 17.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LogAnalyser fixes #2241
LogAnalyser fixes #2241
Conversation
@@ -521,7 +521,7 @@ def process(self, lineNumber, e): | |||
self.modeChanges[lineNumber] = (modes[int(e.Mode)], e.ThrCrs) | |||
except: | |||
self.modeChanges[lineNumber] = (e.Mode, e.ThrCrs) | |||
elif self.vehicleType == "ArduPlane" or self.vehicleType == "ArduRover": | |||
elif self.vehicleType in ["ArduPlane", "APM:Plane", "ArduRover", "APM:Rover", "APM:Copter"]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think APM:Copter should be moved to the entry above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am afraid that wouldn't work. I moved it here intentionally to fix AttributeError execptions, as newer Copter releases write a MODE line similar to Plane/Rover (e.Mode and e.ModeNum attributes instead of e.ThrCrs). The change as proposed above seems to work with logs from both ArduCopter 3.2.1 and AC 3.3-rc3.
Hi Holger. Can you make the simple fix I've outlined and re-submit the PR and we will merge it in. |
Thanks Holger for updating. We will get the change merged in. Keep the code coming! |
merged, thanks! |
Fixes #2240. Seems to work again with ArduCopter 3.2.1 and ArduCopter 3.3-rc3 logs.