@Dewa That’s probably because he also has a working forward-facing lidar connected to the Copter.
The bug is that while checking for the status of the rangefinder proximity sensor (whether the sensor is healthy or not), it is only checking for horizontal rangefinders. This means if you have an upward only rangefinder… it’s ignoring it and complaining that there is no proximity device detected even though you have the param switched on (PRX_TYPE). You can trick the problem, by adding a horizontal rangefinder and that way the status should again become okay and everything will work.
As a test, if you have two rangefinders connected, change one of the RNGFND_ORIENT to be 0, and the other to be 24, it should again start working.
Hello @ppoirier
Can this MAVLink PRX sensor work with the telemetry radio ??
After I connect this Sensor , there are no telemetry radio’s data feedback
Hello
These sensors can generate a lot of traffic and overload the radio link. You can mitigate this situation by reducing the proximity message rate or just keep the message local to FC by configuring mavlink routing to target_system https://mavlink.io/en/guide/routing.html#routing-detail
hello greetings,
i tried this arduino libraries to work with my cube orange dev 4.1 . but no luck with the mavlink connection.
even mavlink inspector won’t detect any components.
any one have tried this with dev 4.1 version. any pointers would be nice.
thank you
Hello
If it was working on your setup with a prior release then there might be something broken.
I know @rishabsingh3003 is working extensively at the moment on this part of the code.
@RAZOR15000, as far as I am aware the arduino script we are talking about sends DISTANCE_SENSOR messages, and when I last tested this message (a couple of months back), it was working as expected.
For distance_sensor, functionality-wise, we haven’t changed anything, so this should still work. Can you try flashing Copter 4.0.7 and see if it starts working again? Then we’ll know if it’s really a bug with the firmware or not…
i got able to working with the dev 4.1. the problem was, i was using onboard serial port. as soon as i switched to software serial, it worked fine.
how ever i have another question to ask.
in my setup, proximity is working and it properly indicates in the GUI. but im in need to get the data to display on the rangefinder section. is it possible to get the mavlink distance data to show up on the rangefinder (only one is enough, )
thank you
kind regards
@RAZOR15000 I am really not sure when I say this, mostly because I barely ever use MP. But I think those rangefinder sections are used for Downward facing rangefinders only (used for terrain following). This is just a guess though
On my experiments I dedicated one of the sensors as a rangefinder and it is connected as a “standard” device directly to the FC and the signal appears as a rangefinder signal. The POC act as proximity and signals appears on the “radar screen”.
Use for terrain-following as a downward-facing range finder
If you want to use for “1” then the orientation field of DISTANCE_SENSOR has to be: between 0 - 7, depending on which direction the sensor is facing.
If you want to use for “2” then the orientation field of DISTANCE_SENSOR has to be: 25, so that the ArduPilot know the message is for downward-facing direction.
i want to use the rangefinders for the proximity detection.
i just need to monitor the distance values from the ground station. in order to do that i need to guide the mavlink data from the arduino to this rangefinder sections,
but im struggling to do that.
proximity GUI is working fine when using the PRX_TYPE =2
As @rishabsingh3003 wrote, you can use Mavlink signal for both proximity and range finder , the drivers will filter the incoming signals depending on the orientation.
Here’s how the rangefinder is filtering the mavlink distance message