Skip to content
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

Closed
wants to merge 3 commits into from
Closed

Conversation

hsteinhaus
Copy link
Contributor

Fixes #2240. Seems to work again with ArduCopter 3.2.1 and ArduCopter 3.3-rc3 logs.

@@ -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"]:
Copy link
Contributor

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

Copy link
Contributor Author

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.

@gmorph
Copy link
Contributor

gmorph commented May 8, 2015

Hi Holger. Can you make the simple fix I've outlined and re-submit the PR and we will merge it in.
Thanks, Grant.

@gmorph
Copy link
Contributor

gmorph commented May 8, 2015

Thanks Holger for updating. We will get the change merged in. Keep the code coming!
Thanks!

@rmackay9
Copy link
Contributor

rmackay9 commented May 9, 2015

merged, thanks!

@rmackay9 rmackay9 closed this May 9, 2015
@hsteinhaus hsteinhaus deleted the loganalyser_fix branch May 9, 2015 13:24
@hsteinhaus hsteinhaus restored the loganalyser_fix branch May 9, 2015 13:24
@hsteinhaus hsteinhaus deleted the loganalyser_fix branch May 9, 2015 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LogAnalyser: no longer working with ArduCopter 3.2.1 and ArduCopter 3.3-rc3
3 participants