-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
[WIP] Lidar Lite multi instance #12864
Conversation
Signed-off-by: Claudio Micheli <claudio@auterion.com>
Signed-off-by: Claudio Micheli <claudio@auterion.com>
Signed-off-by: Claudio Micheli <claudio@auterion.com>
Signed-off-by: Claudio Micheli <claudio@auterion.com>
When #12756 will be merged I will remove the commits from this PR |
#define LL40LS_DEVICE_PATH "/dev/ll40ls" | ||
#define LL40LS_DEVICE_PATH_EXT "/dev/ll40ls_ext" | ||
#define LL40LS_DEVICE_PATH_EXT_1 "/dev/ll40ls_ext_1" | ||
#define LL40LS_DEVICE_PATH_EXT_2 "/dev/ll40ls_ext_2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need these paths anymore.
The PWM interface version of this is so simple (and different) it might as well be a standalone thing. |
@DanielePettenuzzo #12756 was merged. This now can be rebased and continued. |
Hi @TSC21 , when you get a moment, if you can resolve the current conflicts and rebase I can dig into this PR with you! |
Sure thing. I will try to do that today. |
@DanielePettenuzzo , I've gone through the proposed changes here and in case it saves you some time de-conflicting this PR, I am fairly confident that I have all of your work here captured in PR #12695 PR #12695 is currently being held back by PR #12934, but if those two PRs get merged all of your work here will be accomplished and then we can begin the work for multiple sensors! If you have time, would you be willing to try out PR #12695 and let me know if you would like to see anything changed there? |
@DanielePettenuzzo , I apologize, I see now that I had gotten my wires crossed thinking this was @TSC21 's PR. Please let me know how I can help! |
@DanielePettenuzzo , try out current master branch and tell me what else is missing for you... I think it is close now! |
@mcsauder awesome. I will try it out some time this week |
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
This is ongoing work on my side, though not in this PR. This is still relevant. |
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
Hi everyone! This seems promising, and would be useful for me and I'm sure others. Do you have any updates, or is there another work in progress branch that can be made available? (@TSC21 mentioned you might have something.) |
Update: I've been testing a bit, and as far as I can tell, after the recent refactor of some driver stuff, this is already implemented on https://github.com/PX4/Firmware/releases/tag/v1.11.0-beta1 I tested it with two LidarLites of the same type, ran |
@mortenfyhn that is possible if you connect each in different buses, But you can't do more than that. The purpose here was to extend it to work with multiple devices on the same bus, which requires some power enable triggering logic to change each device address. |
Thanks for clarifying, that is indeed what I did. Good to know. |
Hey guys. So there is any solution now? I'd like to kown how do we drive multiple same sensors at different address but on the same I2C bus by using the identical driver? Thx! |
The drivers themselves will handle multiple instances, but you still need a mechanism to get them on separate I2C addresses (or use different buses). |
@dagar Thx Dagar!
there we can just declare one instance once we command Thx again! |
|
@davids5 Thx David! Yes, i think so. The multiplexer is a good choice to those sensor with unmodifiable I2C address. Well, the sensors which i have support modifying I2C address, and i have modified them. |
If the options are available on all HW (not just yours) it would be of value to the community. Have a look at the some of the sensor driver that take a bus and address. Model it after that.
|
@davids5 Thx David! I will spend some time trying it. |
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
Closing as stale. |
With this pr I would like to add support for multiple lidar lites. The current state of this branch is that it works with multiple lidar lites on different I2C busses. I had to pull in #12756 from @cmic0.
TODO:
FYI @TSC21 @dagar @cmic0