SERIAL4_PROTOCOL = 9 (Lidar)
SERIAL4_BAUD = 115
RNGFND_TYPE = 8 (LightWareSerial)
RNGFND_SCALING = 1
RNGFND_MIN_CM = 5
RNGFND_MAX_CM = 1200
RNGFND_GNDCLEAR = 5 unit cm, or you can use more specific value, it depends on the height TF SERIES installed.
AVOID_ENABLE = 7
AVOID_MARGIN = 4
RNGFND_ORIENT = 0 Forward Facing
Bench testing went well and the Lidar gave valid readings however when I took the quad outside for the test flight a problem showed up in the form of the GPS module and lights not working after a bit of investigation it turns out that the TF Mini can draw a lot of power between 40mA at close range up to 800mA at long range. According to the Pixhawk 2.1 manual it has a 1A for all peripherals except Telem 1 which has its own 1.5A supply. The solution was to make another custom cable that will take a feed of the 5v servo rail.
Hi, did you notice that when something is closer than 30cm from the sensor the distance reading starts going back up?
This will be an issue if you want to use it for altitude measurement, I have 2 units with firmware from 3dxr link and both show it.
This is also mentioned here:
Yes this problem is still there unfortunately.
I just received latest models and they show the same pattern.
But it does not really affect the flight , unless you want a steady hover at less than 30cm
So best is to adjust RNGFND_MIN_CM = 30 and enjoy !!
Here a video of TFMINI flying indoor with opticalflow 9PX4Flow):
And @Gregsky ,when you need to use TFmini within 30cm range. I think it’s better that you set and ensure you get the reliable data. Pls check below instructions:
Users eliminate unreliable data tips:
Put TFmini against the white wall (diffuse reflection wall, should not be too smooth) about 30cm away, record the LiDAR strength value, assumed to be X. When use TFmini, firstly determine whether the distance value is available according to the strength value. If the strength value is bigger than X, then set the distance value to 30cm (determine the distance value is not reliable). If the strength value is less than X, then you need to further examine the distance value, if the distance value is bigger than 30cm, that is credible, if the distance value is less than 30cm, that is not credible, then also set the distance value to 30cm.
@ardisd, Hi, David. The TFmini Firmware update.rar which you got from 3DXR is a wrong one/useless one, if you use this firmware to upgrade your TFmini, it will caused damage of your TFmini, could you pls delete this link, so that other users may not download it and use it?
*** Dear All, pls contact Benewake for TFmini firmware change and get confirmation before you want to upgrade it. Thank you all. ***
This firmware will make New TFmini not work properly.PLEASE CHECK the version of YOUR TFmini.Most of them can be adapted to pixhawk by modifying the command code.The command of standard output is 42 57 02 00 00 00 01 06
The command of pix format output is 42 57 02 00 00 00 04 06
So what happens when it is set up for altitude measurement and the drone is landing?
The readings will go down to 30cm and than up again doesn’t this confuse the flight control?
I understand that i can put a minimum distance at 30cm in the parameter but the problem is that when you get lower than 30 the readings go up again.
Am I missing something here?