Repository navigation
fix(mavlink): report lost links, keep saved serial ports, and isolate parsers between streams - #51
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
Fixes several MAVLink stream connection problems (#27). A link that stops receiving now ends the stream with an error that names the link. A saved serial port that is not plugged in is kept instead of being silently replaced. The baud list goes up to 921600. Two MAVLink streams running at once no longer corrupt each other's frames.
Connection closed by <host>:<port>orSerial port <name> lost: .... Before this change, the source kept running with no data and no error. Bytes received before the failure are still delivered.<port> (not found), and starting fails withSerial port <port> not found. Before this change, the first listed port replaced it, was opened and was saved. The port list is read again on start, so a device plugged in after the dialog opened is found.StreamParsershared the MAVLink library's global framing state for channel 0. Each parser now owns its state throughmavlink_frame_char_buffer(), and it recovers from a bad CRC or signature the same way asmavlink_parse_char().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 / CITesting
core/tests/mavlink_decoder_test.cpp:ParsersKeepSeparateFramingState,RecoversAfterACorruptedFrame.data_stream_mavlink_testtarget (built withPJ_BUILD_TESTS):tests/transport_test.cpp,tests/mavlink_dialog_test.cpp.