Rangefinder 1: No Data & Pre Arm Bad LIDAR in TFmini Plus Lidar

I have a Pixhawk X7+ and connected a LiDAR to the I2C port. I’ve verified all parameters, and the data is coming through correctly. However, I’m still getting a pre-arm error. Same issue coming in Holybro kakute H743 Wing FC, I also checked the wiring and confirmed there’s no physical damage — everything appears to be in good condition. Can someone please help me troubleshoot this issue?

TF-Mini Plus default communication mode is Serial. Did you set it to I2C ?

Yes, that also changed to I2C

Are you using that as a distance sensor or for obstacle detection?

I am using for online takeoff and landing purpose because of my barometer altitude have an error

  • Default communication protocol for TFmini plus is UART. You have to change it to the I2C or you can use the default UART configuration by connecting the LiDAR in any TELEM ports, at the baud 115200.
  • If you changed it to I2C. Change the RNGFND1_TYPE to Benewake TFminiPlus-I2C. Then configure the correct I2C bus address in RNGFND1_ADDR.
  • Don’t worry if you’re getting the No Data message when the vehicle is in air.

I set all these parameters datas are coming but pre arm warning also coming
I flew many times error coming in the air also but luckily till now no carsh or agressive behaviour happened.

Is there reading shows in the mavlink console under DISTANCE_SENSOR?