tools: Add mavtranslatelog.py for updating tlog files#1055
Merged
tridge merged 1 commit intoArduPilot:masterfrom Aug 1, 2025
Merged
tools: Add mavtranslatelog.py for updating tlog files#1055tridge merged 1 commit intoArduPilot:masterfrom
tridge merged 1 commit intoArduPilot:masterfrom
Conversation
Contributor
|
It is very uncommon for things to change in common.xml, standard.xml or minimal.xml, but it does happen. Dialects of course are different. I think this might be useful thanks @Maarrk but it's not my call. I'm sure @peterbarker et al will look at it sometime soon. |
peterbarker
approved these changes
Jun 7, 2025
Contributor
|
@Maarrk whoops - 3.7 doesn't like this for some reason. |
Contributor
Author
|
I fixed the type comment that triggered the CI error and successfully ran the script on python 3.7. Hopefully everything is correct now |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This can be used to recover an existing
.tlogfile after introducing breaking changes in message definitions. For now it can handle changing the message id number, adding or removing fields, as long as the names don't change.An example use case is when a custom dialect is requested to update the message ids into allocated range, like I needed to do in mavlink/mavlink#2272. This can be handled this way:
I do not know how often that happens in general (@hamishwillee may have comments?), thus whether it should be included in the package. If that's a small niche, no hard feelings if y'all prefer to reject this PR.
The
--helpoutput has a complete description of what's supported: