Error in PX4 SITL with UAV Toolbox Support Package for PX4 Autopilots
1 回表示 (過去 30 日間)
古いコメントを表示
I'm performing SITL on Windows 11 with jmavsim using UAV Toolbox Support Package for PX4 Autopilots but I got an error:
On the diagnostic view I got:
Top model targets built:
Model Action Rebuild Reason
=================================================================================
px4_openloop Code generated. Code generation information file does not exist.
1 of 1 models built (0 models already up to date)
Build duration: 0h 4m 26.003s
action: EXT_INIT
Creating Target Handler (XCP on TCP/IP)...
Build directory: D:\model validation\px4_openloop_ert_rtw
Target name: 127.0.0.1
Target port: 17725
action: EXT_CONNECT
Connecting to the target...
External Mode Open Protocol Connect command failed
Caused by:
Could not connect to target application: XCP TCP/IP error: Connect failed
Component:Simulink | Category:Block diagram error
Unable to connect to the 'PX4 Host Target' target for 'px4_openloop'.
Component:Simulink | Category:Block diagram error
On the cmd, I got:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1398989/image.png)
The first time I run the Simulink model,it worked but when I tried to run it again without changing nothing , this error this displayed.
0 件のコメント
採用された回答
Narvik
2023 年 8 月 24 日
Hi,
I understand that you faced a build issue while performing SITL on Windows 11 with jMAVSim using UAV Toolbox Support Package for PX4 Autopilots. This may occur if you run ‘Build Load and Run’ instead of running ‘Monitor and Tune’ operation.
I advise you to follow the instructions provided under Task 3 in the ensuing documentation:
https://in.mathworks.com/help/supportpkg/px4/ref/position-tracking-with-rate-example.html#d124e11626
You can also refer to the following MATLAB answer for more information :
Hope this helps!
0 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!