How to locate the PX4 files which in wsl2 when I use the UAV ToolBox for PX4?

46 ビュー (過去 30 日間)
Stark Tony
Stark Tony 2024 年 3 月 24 日
コメント済み: Karukkuvel Raj 2024 年 4 月 3 日 5:22
Env:
matlab:R2024a
UAV Tool box support package:24.1.0
wsl2:Ubuntu 20.04
PX4: source code:v1.14.0
When I configure the UAV Tool box support package,following is my question
"Firmware validation failed: Firmware folder not found. Specify a correct PX4 firmware directory or re-clone a valid PX4 firmware v1.14 repository."
I think my path is correct.Following is my Path.
When I change the file path like this,the error is following.
"Firmware validation failed: Error while trying to find the PX4 Version: bash: line 0: cd: -2: invalid optioncd: usage: cd [-L|[-P [-e]] [-@]] [dir]fatal: not a git repository (or any parent up to mount point /mnt)Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set)."
I am so confused.How I can get through this?
  2 件のコメント
Ankur Bose
Ankur Bose 2024 年 3 月 25 日
Hello,
We need some more inormation on the issue? Can you reach out to us at https://in.mathworks.com/support/contact_us.html and provide the details of your issue? We will investigate what is going wrong here
Stark Tony
Stark Tony 2024 年 3 月 25 日
OK,I reach out to you by 06898128 (mathworks.com)

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

採用された回答

Arun Mathamkode
Arun Mathamkode 2024 年 3 月 26 日
I believe the issue you might be facing is because of the distribution root folder name. The expected path is '\\wsl.localhost\Ubuntu' instead of '\\wsl.localhost\Ubuntu-20.4'. You can consider installing the distrubution 'Ubuntu' and by default it will be installing 22.04 distribution. Try installing the 'Ubuntu' distribution by running the following comamnd in your Windows Command Prompt.
wsl --install -d Ubuntu
After the successful installation, ensure that you are chosing Ubuntu as the default distribution.
wsl --set-default Ubuntu
After this please try by giving either '/home/cfc/PX4-Autopilot' or '\\wsl.localhost\Ubuntu\home\cfc\PX4-Autopilot' as the PX4 firmware location.
  5 件のコメント
Stark Tony
Stark Tony 2024 年 3 月 26 日
Thank you very much.You help me a lot!
Karukkuvel Raj
Karukkuvel Raj 2024 年 4 月 3 日 5:22
Thank you, this clears the issue

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

その他の回答 (0 件)

製品


リリース

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by