Can I use the Pixhawk Support Package (PSP) on a Windows 7 64bit setup?
2 次查看(过去 30 天)
显示 更早的评论
The PSP install instructions reference bash for Windows 10 which seem to require Windows System for Linux (WSL) according to the Microsoft website. WSL is unavailable for Windows 7 from what I have found. I could use cygwin to get bash in Windows 7 but will it play nice with the Mathworks PSP requirements?
0 个评论
回答(3 个)
Abhishek GS
2018-9-27
Hi Wess,
The PSP is currently based only on Bash on Windows Toolchain, and not Cygwin toolchain. The windows PSP users are limited to Win 10 for now.
5 个评论
Sebastian
2019-4-1
@Abhishek GS
Hi! I am facing the same problem. Will there be also a version for Windows 7 anytime soon? Thank you in advance!
Abhishek GS
2019-4-1
@Sebastian,
The official support package - 'Embedded Coder Support Package for PX4 Autopilots' is now live. You can refer this link for more information.
The support package officially only supports Win10, because the PX4 toolchain (Bash on Windows) depends on Windows Subsystem Linux which is available in Win10 onwards . However, you may be able to use Cygwin toolchain for PX4 along with the support package, which is not dependant on Win10.
Please follow the steps mentioned in above link. Note that this workaround is not tested on Windows 7.
1 个评论
Sebastian
2019-4-1
@Abhishek GS
Thank you!
I have installed the Cygwin toolchain and followed the steps as described in Cygwin toolchain for PX4 along with the support package. However, I can't go forward with the steps 10-16 because the Hardware Setup screens won't launch, I can't see or choose the "Validate PX4 Source Code" and "Build Firmware" windows. It shows me directly this when clicking the Hardware Setup button from Manage Add-Ons:
Is there any other way to configure the firmware location or to access these screens?
Abhishek GS
2019-4-2
Hi @Sebastian
You may be able to use the Cygwin toolchain on Win 7. However, please note that it has not been tested at our end.
Please follow the below steps:
- With reference to this documentation, complete the steps from 1-10. Ignore the rest of the steps, as it is specific for Win10. You need not launch Hardware Setup Screens.
2. Copy the attached file ‘Win7registerCygwinToolchain.m’ to the folder >>fullfile(matlabshared.supportpkg.getSupportPackageRoot,'toolbox','target','supportpackages','px4','+px4')
3. Execute the below commands on MATLAB Command Prompt:
>>rehash toolboxcache; rehash path;
>>px4.Win7registerCygwinToolchain('C:\px4_cygwin\home', 'px4fmu-v5_default', 'C:\px4_cygwin')
- Argument 1 – PX4 Firmware source folder
- Argument 2 – CMAKE configuration. For example Pixhawk 4 uses 'px4fmu-v5_default’ cmake.
- Argument 3 – Cygwin Installation directory
The above steps should ideally set you up for using the support package on Win7. I would like to reiterate that it has not been tested on Win7.
The above workaround is for R2018b and R2019a only.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!