Truth_T
(Truth)
July 11, 2024, 6:17am
1
Hello,
I’m very interested in the ArduPilot firmware.
About 10 years ago, I was able to upload an ArduPilot example sketch to the APM board and could easily debug it with USB. However, with the Pixhawk, I find it very difficult.
I followed the instructions here:
[Library Example Sketches — Dev documentation ]
You can see what I did in my video:
After successfully uploading the firmware, I entered this command:
mavproxy.py --setup --master /dev/serial/by-id/usb-3D_Robotics_PX4_FMU_v2.x_0-if00
However, I couldn’t debug it.
lida2003
(Daniel Li)
July 11, 2024, 6:23am
2
Truth_T
(Truth)
July 11, 2024, 6:32am
4
Hello. Your video shows the ArduPilot firmware debugging, which includes the MAVLink system.
However, the example does not include MAVLink code…
Truth_T
(Truth)
July 11, 2024, 6:35am
5
I was able to debug using PowerShell with the command below.
but it is not perfect yet. using Putty is the simplest way, but I’m finding other ways to acheive this.
The documentation does not cover this, even though it is intended for beginners.
I will request to edit the wiki soon.
$port = new-Object System.IO.Ports.SerialPort COM8,115200,None,8,one
$port.Open()
while ($true) {
$data = $port.ReadLine()
Write-Host $data
}