Hello my friends, I used CAN interface MR72 for obstacle avoidance and it doesn’t work well. I set these parameters:
CAN_P1_DRIVER = 1
CAN_P1_BITRATE = 500000
CAN_D1_PROTOCOL = 14
PRX1_TYPE = 17
PRX1_ORIENT = 0
AVOID_ENABLE = 7
AVOID_MARGIN = 3
AVOID_BEHAVE = 1
RC8_OPTION = 40
I connected it to the CAN1 port of the Pixhawk 6C flight controller, powered the MR72 with a 6S battery, and attached it to the front of the drone. I flew with my drone and enabled obstacle avoidance with the switch. When I was 5 meters or more away from the obstacle, the drone would turn back and move away from it, and this distance was much more than 3 meters.
When I increased the height so that the obstacle was not in the range of the sensor, there was no problem and the drone remained in place and no obstacle was detected.
I enabled RAW data:
for D0:
for D45:
ad this for D315:
what is the problem? I would expect the drone to stop within 3 meters of the obstacle.
@amilcarlucas @rmackay9 @rishabsingh3003