Pixracer does not work with TFMini i2c lidar (ChibiOs)

@sergbokh Can you test with this PR applied? It fixed for me on CUAVv5

2 Likes

@lucasdemarchi TFMini Plus works now on PixRacer too. Thank you for getting to the bottom of this!

Next step could be to check my driver for TFmini v1 i2c to see if your i2c fix also helps there.

The one thing I cannot understand - this isn’t a ChibiOs bug, right? This looks like a some problem with AP_HAL_ChibiOS/I2CDevice.cpp design. So we need for a i2cSoftStop() to workaround.

@lucasdemarchi pretty impressive job here :+1:
Looking at the PR is like a Chibios training guide on how to write a driver

1 Like

Premature i2c bus stopping likely also could be the root cause of my problem with TS100 compass

That was also workaround by @tridge with

but now the root cause should be fixed.

did that worked with tfmini lidar i2c ?

You mean non-Plus version, right?
Technically it can, but there is no driver for it in ArduCopter.