ArduPilot / ardupilot

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

Benewake RDS01C CAN Radar Prearm:PRX1 No Data when no obstacles #24120

Open KS1219 opened 1 year ago

KS1219 commented 1 year ago

I have facing prearm issue when using Benewake RDS01C CAN protocol radar as a obstacles avoidance sensor. When there are no obstacles sensor reports 0 ..thats why ardupilot thinks there is no data from the sensor.

I am using CUAV V5+ AC 4.3.7

https://discuss.ardupilot.org/t/pre-arm-error-when-no-obstacles-detected-on-the-ground/102215?u=kalai1219

Here is the full problem statement explained with video and log also in the ardupilot forum.

8-DK commented 1 year ago

In file /libraries/AP_RangeFinder/AP_RangeFinder_Benewake_CAN.cpp
Modify this line in funtion handle_frame_H30 return false; to //return false; (comment return statment)
I have not tested, but I guess it should work.