Matlab Pixhawk Support Package installation (Windows)

1. Download the pixhawk support package [1]

2. Open MATLAB R2017b and navigate to the file location.

3. Click "PX4PSP_v3_0_4_351_R2017b" and install it

4. Create a folder for firmware download path (ex: D/PX4)


5. Setting bash environment for windows 10 [2] 

(1) Active "Windows subsystem for linux"



(2) Download and install Ubuntu


(3) Using the terminal like in Ubuntu environment

ex:

6. Install all necessary toolchain with "windows_bash_nuttx.sh" [3] or using Cygwin Toolchian [4] or [5] (python27 would show in following folder)




7. Key in command "PixhawkPSP('D:\PX4')" in the Matlab

8. Make sure windows 10 bash and python path are correct => Validate paths


9. Download firmware to the folder we specify before and then validate firmware.

10. Selecting cmake configuration [6]
11. Build firmware

*Error: make command not found
  Solution: [7]

To do: Check [8][9][10] for more installation and upload details of px4. (Using eclipse to build firmware?)

Reference:
[1] Download the Pixhawk PSP from MATLAB® and Simulink®:

留言

  1. Sorry, is that the terminal tell you \bin\bash :make command not found while you build?
    if yes, try turn C:\Windows\System32\bash.exe to C:\Windows\Sysnative\bash.exe ( don't care the vaildate paths
    Reference : Pixhawk Pilot Support Package (PSP) User Guide Version 3.04
    https://drive.google.com/file/d/15rkj_5Ak5kzE3hkcpI8W7DxjQWFrA7Pm/view?usp=sharing

    回覆刪除
    回覆
    1. Thanks for your suggestion, I will give it a shoot. By the way, I have solved this problem while building the PX4 firmware in the Ubuntu 16.04.

      刪除

張貼留言

這個網誌中的熱門文章

Tuing PID parameters in QGroundcontrol (2)

Useful PX4 Parameters

Burn linux image to eMMC storage on Banana Pi M3