Skip to content

Tools: fix mlog attribute in mavplayback#917

Merged
peterbarker merged 1 commit intoArduPilot:masterfrom
Szymon-SR:pr-fix-mavplayback
Feb 6, 2024
Merged

Tools: fix mlog attribute in mavplayback#917
peterbarker merged 1 commit intoArduPilot:masterfrom
Szymon-SR:pr-fix-mavplayback

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
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