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

vl53lxx is not work with other board except Crazyflie #11842

Closed
bys1123 opened this issue Apr 13, 2019 · 5 comments
Closed

vl53lxx is not work with other board except Crazyflie #11842

bys1123 opened this issue Apr 13, 2019 · 5 comments

Comments

@bys1123
Copy link
Contributor

bys1123 commented Apr 13, 2019

Describe the bug
The driver only detect PX4_I2C_BUS_EXPANSION without other I2C buses.

https://github.com/px4/firmware/blob/0b4751d03167c4ee147f2e91a94f9919baea70e1/src/drivers/distance_sensor/vl53lxx/vl53lxx.cpp#L72

@bys1123
Copy link
Contributor Author

bys1123 commented Apr 13, 2019

Try to fix:
I modified rc.board_sensors, add new line vl53lxx start.
Also #define VL53LXX_BUS_DEFAULT PX4_I2C_BUS_EXPANSION2 in vl53lxx's drive.

Plug my module to I2C A, Pixhawk4 will not boot up successfully.
Buzzer music is normal, FMU ACT will not blink, I/O B/E light up.

@bys1123
Copy link
Contributor Author

bys1123 commented Apr 15, 2019

I deleted vl53lxx start
Boot success, I tried start this driver in Console, still not work.
The bus setting looks right, I got i2c read like this:
image

Head:
image

Compare with Arduino:
image

@bys1123
Copy link
Contributor Author

bys1123 commented Apr 17, 2019

Tested on 1.8.2:

nsh> vl53lxx start
VL53LXX i2c::transfer returened -125
ERROR [vl53lxx] driver start failed

@bys1123
Copy link
Contributor Author

bys1123 commented Apr 17, 2019

Tried vl53lxx start -a on master branch firmware. Still not work.
I2C A port has no response.
This also break my console connection.

@bys1123 bys1123 changed the title vl53lxx is not work with other board except Crazyflie Feature Request: VL53L1x Driver Apr 29, 2019
@bys1123 bys1123 changed the title Feature Request: VL53L1x Driver vl53lxx is not work with other board except Crazyflie Apr 29, 2019
@bys1123 bys1123 closed this as completed Apr 29, 2019
@bys1123
Copy link
Contributor Author

bys1123 commented Apr 29, 2019

continue in #11932

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