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

VL53L1X laser ranger driver and sonar module #2519

Merged
merged 6 commits into from
Apr 7, 2020

Conversation

tomvand
Copy link
Contributor

@tomvand tomvand commented Apr 7, 2020

This PR adds support for the VL53L1X laser ranger as found on the bitcraze flowdeck, and a module to use it as an AGL sensor.

Code has been tested using softi2c (#2514) on the eachine trashcan. Code compiles with the ardrone2 example airframe for ap and nps targets.

Set up basic framework based on sonar_adc

Squash sonar_vl53l1x commits

(untested) Implement vl53l1x platform

(untested) Implement sonar_vl53l1x

FIX pointer issues in sonar_vl53l1x module

Sonar struct contained a (uninitialized) device pointer instead
of the struct itself.

FIX sonar offset unit

Increase module polling speed to allow higher freqs

Default timing budget will be left at 100ms because of lower noise,
but increasing the module frequency allows for shorter timing
budgets for fast-moving applications (e.g. racing drones).
Copy link
Member

@gautierhattenberger gautierhattenberger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for this driver

sw/airborne/modules/sonar/sonar_vl53l1x.h Outdated Show resolved Hide resolved
sw/airborne/peripherals/vl53l1_platform.h Outdated Show resolved Hide resolved
sw/airborne/modules/sonar/sonar_vl53l1x.c Outdated Show resolved Hide resolved
@tomvand
Copy link
Contributor Author

tomvand commented Apr 7, 2020

All comments should be fixed now.

@gautierhattenberger
Copy link
Member

tested on a crazyflie, works like a charm, thanks !

@gautierhattenberger gautierhattenberger merged commit 0bc9009 into paparazzi:master Apr 7, 2020
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

2 participants