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

fixed out of range indexing for angle_compensate #15

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

Conversation

Philippe-Capdepuy
Copy link

Hi,
We encoutered issues on A3 with angle_compensate active in Sensitivity mode (and other non 360 array sizes). Basically the indexing goes out of range, causing some random crashes on Raspberry Pi for instance, especially when LIDAR has all points valid (non 0). It worked fine on x86 architectures, but still goes out of range and may cause some random bugs.
The patch simply skips points that are out of the array. I tried to make sense of the angle_compensate calculations, but I'm not sure what it's exactly supposed to do, also it seems pretty inefficient, overwriting the same array cells multiple times.

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