Repository navigation
fix(mavlink): stamp every message with the receive time - #49
Merged
Merged
Conversation
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.
Summary
Stamp every MAVLink sample with the PC's wall-clock receive time. Before, a message with a non-zero
time_usec/time_boot_msused that payload value as its timestamp. On most autopilots that value is time since boot. Other messages (HEARTBEAT, SYS_STATUS, ...) used the receive time, so one stream mixed two clocks decades apart.time_usec/time_boot_msare still plotted as regular fields.Fixes #26
Target PlotJuggler version
pj3/)pj4/)3rdparty/,docs/, root files)Plugin(s) affected
Type of change
feat— new featurefix— bug fixrefactor— no behavior changedocs— documentation onlybuild— CMake / vcpkg / CIBreaking changes
pj_drone::mavlink::Message::embedded_timestamp_nsis removed from the shared core decoder (core/include/pj_drone_core/mavlink/decoder.hpp).Testing
core/tests/mavlink_decoder_test.cpp: removed the embedded-timestamp tests. The remaining tests check thattime_usecandtime_boot_msdecode as regular fields, including across split frames.