Smoother serial - #124
Draft
BillThePlatypus wants to merge 6 commits into
Draft
Conversation
superjax
reviewed
May 12, 2020
| project(rosflight) | ||
|
|
||
| set(CMAKE_BUILD_TYPE Release) | ||
| set(CMAKE_BUILD_TYPE Debug) |
Contributor
There was a problem hiding this comment.
could you just remove this line?
| int baud_rate = nh_private.param<int>("baud_rate", 921600); | ||
|
|
||
| wait_for_serial_ = nh_private.param<bool>("wait_for_serial", false); | ||
| serial_retry_delay_s_ = nh_private.param<float>("serial_check_period", 1.0); |
Contributor
There was a problem hiding this comment.
This seems long. (I assume that this is designed for hardfault recovery.) How small can we make this?
Member
|
This is something that we've actually talked about improving, funny that work on it already exists. We should definitely finish this up. |
JMoore5353
force-pushed
the
main
branch
4 times, most recently
from
December 13, 2025 03:14
66057f8 to
0faaba4
Compare
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.
Improves performance with serial connections:
~wait_for_serialand~serial_check_period. If~wait_for_serialis set to true, and the serial port is not available when the node comes up, it will wait~serial_check_periodseconds and then try again, until the node is killed or connects.