Pixhawk PSP CSC Parameter demo error

7 次查看(过去 30 天)
Hi everyone,
I have installed the Pilot support package and I am able to build and run most of the provided examples. However, the examples including the CSC parameters result in errors.
The examples involving the CSC parameters are:
  • px4demo_Parameter_CSC_example.slx
  • px4demo_ParameterUpdate_CSC_example.slx
During the build procedure, the following error arises
The error shows that '/home/tom/Documents/MATLAB/Add-Ons/Toolboxes/PX4' can not be opened and 'PSP/code/src/ReadCalib_Parameter.c' can not be opened.
However, the file ReadCalib_Parameter.c is located in: /home/tom/Documents/MATLAB/Add-Ons/Toolboxes/PX4 PSP/code/src/ReadCalib_Parameter.c, which suggests the space in the folder name 'PX4 PSP' is the main reason for the error.
The error originates from 'Firmware/src/modules/px4_simulink_app/CMakeLists.txt', which is an automatic generated cmakelist file, where the ReadCalib_Parameter.c and the located directory is included.
Therefore, my problem/question is: which file contains the link to ReadCalib_Parameter.c and its path, which I can change, such that the link can be located again during the build procedure? If anyone has an answer, please let me know. Thanks

回答(1 个)

Abhishek GS
Abhishek GS 2019-4-2
The official support package 'Embedded Coder Support Package for PX4 Autopilots' is now available from R2018b onwards.
Uninstall the Pixhawk PSP, if you have it installed and refer the documentation on getting started with the official support package.
The above mentioned issues should be solved.
~Abhishek

产品


版本

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by