Simple obstacle avoidance problem with tf luna sensor

Hello, I am trying to avoid a simple obstacle with arduino but I couldn’t do it.
The sensor connection is correct, I see the data in rangefinder1, but when I make PRX1_TYPE 4, the sensor does not send data, I could not avoid the obstacle or stop in any way. Does anyone know what the problem is?

lover.param (15.7 KB)

reboot it , it’ll work

I restarted it, tried many times but it doesn’t work

I reloaded the program as fmuv and it worked.

so can i use tf luna to get around the obstacle?

yes. you need to enable prx1,2,3 and 4 as per your sensors count.
or for obstacle avoidance you need to turn ON “OA” Parameters.

1 Like

when you enable PRX1_TYPE 4, it stops showing up as a rangefinder. press CTRL+F then open the proximity window to see its output.

1 Like

thanks it works :smiley:. Is it useful to use dual GPS for better location accuracy?

no not unless your using dual RTK GPS for yaw.

press + and - to zoom the proximity window in and out.

1 Like