PX4-Devguide icon indicating copy to clipboard operation
PX4-Devguide copied to clipboard

Collision prevention not working on PX4 V5nano board

Open AleksejSen opened this issue 4 years ago • 6 comments

SW version: 1.11 I followed the guide : https://docs.px4.io/master/en/computer_vision/collision_prevention.html and tried with Tfmini(changed in the drivers to face forward and recompiled) and CM8jl65 facing forward(changed in the driver), I see the distance reading in QGC Mavlink inspector under under DISTANCE_SENSOR but the drone continues to fly forward ignoring CP_DIST (in POSITIONING mode controlled by the joystick) Current parameters settings: CP_DELAY: 0.400 CP_DIST: 2.0 M (tried 3m also) CP_GO_NO_DATA: tested bout 1 and 0 CP_GUIDE_ANG 30.deg SENS_CM8JL65_R0: ROTATION_FORWARD_FACING

AleksejSen avatar Jan 28 '21 14:01 AleksejSen

Can you share the flight log? https://logs.px4.io/

dagar avatar Jan 28 '21 15:01 dagar

@jkflying

dagar avatar Jan 28 '21 15:01 dagar

As @dagar says, need a log to help you, and you need to turn on the computer vision topics in SDLOG_PROFILE . Also, just a tip, for a directly connected distance sensor you can set CP_DELAY to 0

jkflying avatar Jan 28 '21 15:01 jkflying

will turn it on next time i'll fly then

AleksejSen avatar Jan 28 '21 15:01 AleksejSen

FYI, I'm slowly trying to kill this repo. Issues should best go to https://github.com/PX4/PX4-user_guide/issues

hamishwillee avatar Feb 03 '21 05:02 hamishwillee