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

Add check code for sensor state packet #40

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

Conversation

7675t
Copy link

@7675t 7675t commented Oct 17, 2018

The current code check the health of the sensor packet just before it is used. And if it is not valid, it raises exception, but it cause the system reset and lost connection to Roomba (or Create) for seconds. As the result, the robot can be out of control for that duration.

This PR is raise DriverError which the code just ignored the current sensor packet if the sensor information is invalid. I confirmed it works and ease the problem I reported on #39 .

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.

None yet

1 participant