發表文章

目前顯示的是 11月 11, 2018的文章

Matlab Pixhawk Support Package installation (Windows)

圖片
1. Download the pixhawk support package [1] 2. Open MATLAB R2017b and navigate to the file location. 3. Click "PX4PSP_v3_0_4_351_R2017b" and install it 4. Create a folder for firmware download path (ex: D/PX4) 5. Setting bash environment for windows 10 [2]  (1) Active "Windows subsystem for linux" (2) Download and install Ubuntu (3) Using the terminal like in Ubuntu environment ex: 6. Install all necessary toolchain with " windows_bash_nuttx.sh " [3] or using Cygwin Toolchian [4] or [5] (python27 would show in following folder) 7. Key in command " PixhawkPSP(' D:\PX4 ') " in the Matlab 8. Make sure windows 10 bash and python path are correct => Validate paths 9. Download firmware to the folder we specify before and then validate firmware. 10. Selecting cmake configuration [6] 11. Build firmware *Error: make command not found   Solution: [7] T

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