MATLAB: External mode over FTDI with Pixhawk board
Embedded Coder
How do I run External mode on Pixhawk board with non-USB Serial port?
Best Answer
Serial is supported on native-USB port as well as non usb ports (for example, /dev/ttyS6) for Pixhawk boards in the Embedded Coder Support package for PX4 Autopilots. A serial to USB FTDI converter is required for this.
The image below shows the connection of Serial 4 (/dev/ttyS6) on Pixhawk 1 board to the FTDI converter.
The table below lists Pin information for the Serial 4/5 port and its connection to FTDI for the Pixhawk 1 board. The pins described here are from left to right.
QGC will not be able to connect to the Pixhawk board because the Mavlink is not enabled on USB port of the Pixhawk board in RC.TXT, which is added to the SD card as mentioned in:
Note that once Mavlink is enabled on USB port, you cannot use external mode over USB in Simulink with the Pixhawk board.
You can choose any other serial port (for example, /dev/ttyS6) to run the Simulink model in External mode. However, in this case, you may need additional serial to USB converter.
Best Answer