-
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
The SF11/C is not publish the distance data when the PX4Flow Smart Camera is connected. #11690
Comments
@dagar fyi. In addition, maybe it can be add for future request. (PX4FLow on I2C, SF11/C on Uart) Should I open new Issue or can we continue on this? |
This also looks related: #11227 |
As far as I understand, it is not same issue. @60ericleal60 couldn't get any data from PX4Flow camera but I could. I just have problem with distance sensor. |
There is a solder bridge you need to fill to power the distance sensor. |
You are right. I saw that bridge and I tried to connect SF11/C to it with poor connection but the data didn't come to Qgroundcontrol. I'll try again with solder. |
This issue is fixed at #11724 by @DanielePettenuzzo . I'm closing and will continue on #11689 |
Describe the bug
Hello, I'm using SF11/C for distance sensor and PX4Flow Optical Flow Camera in Pixhawk 2.1 (Cube). I don't have an ultrasonic module on PX4Flow. My setup is shown below.
Like images PX4Flow Camera is connected to I2C and SF11/C is connected to Telemetry 1.
The bug is revealed when I connected both of sensor to Pixhawk. SF11/C publishes distance sensor when PX4FLow Camera isn't connected. But, When I connect the PX4Flow to Pixhawk, PX4Flow publishes Zero distance which mentioned before this issue PX4/PX4-Flow#101. In addition SF11/C cannot communicate Pixhawk when PX4Flow is connected.
Without PX4Flow Camera
sf0x test
and Current Distance AnalyzeWith PX4Flow Camera
sf0x test
and Current Distance AnalyzeIn documentations, Laser Altimeters sensor can be connect instead of Ultrasonic module. But, I didn't find any schematic for this.
I examined the drivers of PX4Flow and SF0X. They have same definition for Uorb distance_report topic.
PX4FLOW:
https://github.com/PX4/Firmware/blob/14ef009aabf5723b1a9f8fe5489844c961f05fab/src/drivers/px4flow/px4flow.cpp#L554-L566
SF0X:
https://github.com/PX4/Firmware/blob/14ef009aabf5723b1a9f8fe5489844c961f05fab/src/drivers/distance_sensor/sf0x/sf0x.cpp#L514-L528
Also they have same id for publishing. I tried to give different ID but it didn't work.
Furthermore, I just commented lines on PX4Flow. However, it didn't work as well.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Pixhawk can be able to see correct distance values when PX4Flow and SF11/C are connected.
The text was updated successfully, but these errors were encountered: