How to locate the PX4 files which in wsl2 when I use the UAV ToolBox for PX4?
14 次查看(过去 30 天)
显示 更早的评论
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1650036/image.png)
"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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1650041/image.png)
When I change the file path like this,the error is following.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1650046/image.png)
"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
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
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!