I used two GY-US42 as rangefinder in I2C mode, and set the parameter following the link. I was trying to use the sensor to avoid object. in addition I set : AVOID_ENABLE=7, PRX_TYPE=4。in the proximity UI, it shows that the distance from two rangefinder are same all the time.
why the distances from different sensors increase and decrease simultaneously?
in the parameter list, there is only one PRX_TYPE, i did not find PRXx_TYPE? how to set the PRX_TYPE for every rangfinder?
any advice will be helpful ,thanks!
Maybe because they have the same i2c address?
Hello @tinyspicychicken were you able to figure out the issue? I am getting the same error with Garmin LidarLiteV3’s talking on I2C
Do your two lidar’s have two different I2C addresses?
This was something that frustrated me for a long time - finding the right commands to setup the Lidar before attaching to the flight controller - and changing each to have a unique ID.
I have several sonars that I never did figure out how to change their addresses, so no more than one sonar per vehicle.
Yes, at first time, my sensors have the same default addresses, Then i check in the user manual to send command to sensors to change their addresses, and the problem solved.
you are right, i did not check their addresses at first time