The number of elements must be greater than zero

11 ビュー (過去 30 日間)
찬빈
찬빈 2024 年 4 月 8 日
回答済み: Arun Mathamkode 2024 年 6 月 11 日
Hello.
I'm currently studying the PX4 toolbox.
I'm trying to work with the model shown in the example, but I keep encountering the following error.
What could be causing this error?
  1 件のコメント
Angelo Yeo
Angelo Yeo 2024 年 4 月 9 日
It looks like you are using the example below.
Can you specify the reproduction steps for the issue?

サインインしてコメントする。

回答 (1 件)

Arun Mathamkode
Arun Mathamkode 2024 年 6 月 11 日
Ensure that you have built the PX4 Host Target using the hardware setup screens without errros. Once the build is successful, in Simulink ensure that you do a model update (Cntrl+D) before building. Not sure if this can resolve it but give it a try.
It will be good to understand which version of MATLAB you are using. If you are using R2024a with PX4 v1.14, since the host target will be launched inside WSL2 and the Simulink plant model will be in your host machine. For Windows machines this will result in connection issues between plant and controller. Although this is not the issue you are facing I mentioned this since you might face the connection issue after resolving the current issue.
You can also consider giving a try with the rate controller example and see if you are facing any issues there.

カテゴリ

Help Center および File ExchangeBlock Libraries についてさらに検索

タグ

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by