MATLAB Answers

Pixhawk PSP CSC Parameter demo error

3 views (last 30 days)
T.A.C.J.M. Albers
T.A.C.J.M. Albers on 30 Oct 2018
Answered: Abhishek GS on 2 Apr 2019
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

  0 Comments

Sign in to comment.

Answers (1)

Abhishek GS
Abhishek GS on 2 Apr 2019
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

  0 Comments

Sign in to comment.

Categories

Community Treasure Hunt

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

Start Hunting!