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

Tools: fix mlog attribute in mavplayback #917

Merged
merged 1 commit into from
Feb 6, 2024

Conversation

Szymon-SR
Copy link
Contributor

Currently, rewind & forward buttons as well as dragging across the timeline don't work and produce an error:

Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib64/python3.11/tkinter/__init__.py", line 1948, in __call__ return self.func(*args) ^^^^^^^^^^^^^^^^ File "/home/szymon/development/opensource/forks/pymavlink/tools/mavplayback.py", line 136, in forward self.mlog.filehandle.seek(pos) ^^^^^^^^^^^^^^^^^^^^ AttributeError: 'mavmmaplog' object has no attribute 'filehandle'

Some of the calls were changed from mlog.filehandle to mlog.f by @tridge in #890, it seems to me that the remaining have to be changed as well.

Copy link
Contributor

@peterbarker peterbarker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usually we'd prefix the commit message (as well as the PR title) with the directory, but we're not really strict in pymavlink.

@peterbarker peterbarker merged commit bc1860a into ArduPilot:master Feb 6, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants