I’m trying to get a TFMini Lidar sensor to connect to a Pixfalcon flight controller via the telem port.
On startup, tfmini reports errors.
nsh> tfmini info
state @ 1000a850
Using port '/dev/ttyS6'
tfmini_read: 3 events, 274445us elapsed, 91481us avg, min 61380us max 142540us 44453.605us rms
tfmini_com_err: 3 events
poll interval: 10 ticks
report queue 2/64 (2/2 @ 1000bb70)
A couple of concerns here are:
The px4fmu-v2 board definition has the Telem1 port listed as a different device.
https://pixhawk.org/users/wiring
As can be seen in that link Telem 1 (pixfalcon only has Telem1, not Telem2), it should be /dev/ttyS1.
In my FC parameters, SYS_COMPANION is set to 0
When I attempt to do the following:
tfmini stop
tfmini start -d /dev/ttyS1
the flight controller crashes and immediately reboots with no error messages.
Could the default baud rate also be an issue, the TFMini expects 115200, the Pixfalcon defaults to 57600.
Please can you advise on next best steps for resolving this.