Hello, I am setting up the proximity sensor using a TF-mini plus. While I have confirmed that it works correctly in the four horizontal directions, it does not function when facing upward.
The only difference in parameters between the horizontal directions and the upward direction is the RNGFNDx_ORIENT, which is set to (24: up). I tried changing PRX_ORIENT and RNGFNDx_FUNCTION, but it did not work.
I am also wondering whether it even works when facing upward or downward. If anyone is familiar with this, I would appreciate your input.
While referring to various documents, I came across the following page and found the following passage:
βThe vehicle will also stop before hitting barriers above it if there is an upward facing range finder. Currently this range finderβs distance must be sent to ardupilot using the DISTANCE_SENSOR message with the orientation field set to 24 (upwards).β
To implement this, should I directly program the sensor (TF-mini plus)? Or would it be sufficient to input the message to the FC via a companion computer?
Currently, the TF-mini plus communicates with the FC via I2C, but would it be necessary to change the protocol to serial communication?
If anyone has knowledge of this, I would appreciate your guidance! Please help!
Thank you for your reply.
I have set PRX_TYPE as such, and it works correctly in the horizontal directions (front, back, left, and right).
However, it doesnβt work when facing upward.