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

sensortype should enumerate to ULTRASOUND in ping1d_mavlink_driver.py #401

Open
FletcherFT opened this issue May 13, 2021 · 0 comments
Open

Comments

@FletcherFT
Copy link

Line 103 of tools/ping1d_mavlink_driver.py:

sensor_type = 2

This enumerates to INFRARED according to Mavlink distance sensor specification and causes errors when using MAVROS to publish distance_sensor messages.

I think the enumerator should be 1 for ULTRASOUND enumeration. Setting sensor_type = 1 allows MAVROS to convert the distance_sensor message correctly.

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

No branches or pull requests

1 participant