ArduPilot / ardupilot

ArduPlane, ArduCopter, ArduRover, ArduSub source
http://ardupilot.org/
GNU General Public License v3.0
10.94k stars 17.45k forks source link

ardurover 4.2.2 not showing obstruction_distance proximity properly #21376

Open skysingh opened 2 years ago

skysingh commented 2 years ago

I am having the same issue as closed issue 17286. I got the obstacle_distance data from zed camera to fcu using mavros. I can see on mavlink inspector. All good but promity display shows is skewed exactly as issue 17286. The issue was closed as apparently it was fixed in 4.1. I am using ardurover 4.2.2 so something is not right. I can move the skew around by changing min_angle which changes the angle_offset on mavlink inspector but what is the correct value and why? Also, no ability to change the frame. It is set to 0. Apparently I should be using 12 but how? Lastly, was resize ever implemented to scale larger laser scans to 72 elements ? I saw a blog that it was implemented by .resize(72) does not exist.

rmackay9 commented 2 years ago

It is possible that the issue is actually in mavros. There have been at least two PRs trying to fix an issue on the mavros side (https://github.com/mavlink/mavros/pull/1700, https://github.com/mavlink/mavros/pull/1434).