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

CollisionPrevention only process distance_sensor updates #12616

Merged
merged 1 commit into from
Aug 4, 2019

Conversation

dagar
Copy link
Member

@dagar dagar commented Aug 3, 2019

In current master distance_sensor will be uninitialized garbage for the unpublished instances. This will also limit the update work to only process new messages.

@dagar dagar requested a review from mrivi August 3, 2019 17:21
@dagar dagar merged commit 8397875 into PX4:master Aug 4, 2019
@dagar dagar deleted the pr-collision_dist_update branch August 4, 2019 14:05
@mhkabir
Copy link
Member

mhkabir commented Aug 5, 2019

This broke things
image

Working on a fix.

@dagar
Copy link
Member Author

dagar commented Aug 5, 2019

What are you running exactly? What rate is new distance_sensor data coming in at (uorb top)?

@mhkabir
Copy link
Member

mhkabir commented Aug 5, 2019

Sensors are running at 20Hz. The issue is, since we re-initialize the struct every iteration (50Hz), the timestamp is uninitialized (since distance sensors aren't updated) for 3/5 iterations.

@mrivi
Copy link
Contributor

mrivi commented Aug 6, 2019

@mhkabir do you have a fix or should we only revert this PR for the time being?

@mhkabir
Copy link
Member

mhkabir commented Aug 6, 2019

Have a fix - I'll push it up later today.

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.

3 participants