Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recheck intensity support when restarting the driver #58

Open
wants to merge 1 commit into
base: indigo-devel
Choose a base branch
from

Conversation

mferenduros
Copy link

The check for intensity/multiecho support may fail due to a bad connection (eg. if powering or connecting a laser with urg_node already running).
If the driver then resets to fix this bad connection, it should re-test for intensity/multiecho support.

A bad connection may lead us to falsely detect that intensity is not
supported, before resetting the connection due to too many errors. On
reset, we should recheck whether intensity is supported and not rely on
the previous check.
@tonybaltovski
Copy link
Member

tonybaltovski commented May 31, 2020

@mferenduros am I missing something there or is the change simply in adding new variables that equal existing variables?

@mferenduros
Copy link
Author

Hi @tonybaltovski ,

The new variables behave differently from the old ones.

publish_intensity_ will be cleared if the driver fails to initialize, whereas intensity_enabled_ reflects what was requested, and will remain true once set.

#57 describes the situation that this helps address

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