Communicate with Intel RTF flight controller using UART interface (1)

1. Make a connection cable between PC and drone [1]

Intel RTF (DF13 6pin)
PC (TTL to USB)
1
VCC
1
GND (BLACK)
2
UART TX
2
CTS (BROWN)
3
UART RX
3
VCC (RED)
4
I2C CLK
4
UART TX (ORANGE)
5
I2C SDA
5
UART RX (YELLOW)
6
GND
6
RTS (GREEN)

2. git clone C-UART Interface example [2]

3. git clone Mavlink library v2 to path /Home/c_uart_interface_example/mavlink/include/mavlink [3]

4. Check port name on PC side
$ ls /dev/ttyUSB*
4. Build project and execute
$ cd c_uart_interface_example/
$ make
$./mavlink_control -d /dev/ttyUSB0
Future work: Modify the send or receive messages

Reference:
[1] PX4 System Console
[2] C-UART Interface Example
[3] mavlink_c_library_v2

留言

這個網誌中的熱門文章

Tuing PID parameters in QGroundcontrol (2)

Useful PX4 Parameters

Burn linux image to eMMC storage on Banana Pi M3