How to troubleshoot pixhawk build error problem during executing example file?

Hello,
I followed the steps outlined in the link above, and the diagnostic results showed the following:
An error occurred stating that the index exceeds the array bounds. I tried looking for a solution to this issue but couldn't find any relevant sources. If anyone knows how to resolve this problem, please let me know.

답변 (2개)

준호
준호 2025년 1월 19일
이동: Angelo Yeo 2025년 1월 20일
I just fixed this problem by installing PX4-Autopilot firmware to the Linux home directory(not windows directory) and not executing bash ./ubuntu.sh command.

댓글 수: 3

hello, i have the same problem my path of the firmware is: \\wsl.localhost\Ubuntu-22.04\home\nesserine\PX4-Autopilot. and what do you mean by not executing bash ./ubuntu.sh command. Could you provid me more steps please .
Run the following command in the MATLAB command Window. This will unblock you from the error you are facing
setpref('MW_PX4_Build','FullFirmwareBuild',true)
We are working on a fix for this issue
Yes, it works perfectly now, thank you so much for your help.

댓글을 달려면 로그인하십시오.

준호
준호 2025년 2월 4일
Hello,
I have another problem, that is QGroundControl doesn't recognize a pixhawk board when px4 firmware was built from MATLAB(version 1.14.0) and I found that Mavlink messages can not be received like below.
How can I fix this problem?

제품

릴리스

R2024b

질문:

2025년 1월 17일

댓글:

2025년 2월 6일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by