Unrecognized function or variable 'Px4DemoHo​stTargetWi​thSimulink​PlantStart​'.

1 回表示 (過去 30 日間)
rongan yuan
rongan yuan 2021 年 3 月 3 日
回答済み: Abhishek GS 2021 年 3 月 12 日
I use UAV Toolbox Support Package for PX4 Autopilots and I want to implement example Monitor and Tune PX4 Host Target Flight Controller with Simulink-Based Plant Model.But I've got an error Unrecognized function or variable 'Px4DemoHostTargetWithSimulinkPlantStart'.

回答 (1 件)

Abhishek GS
Abhishek GS 2021 年 3 月 12 日
Hi Rongan Yuan,
  1. Can you confirm if you have installed the UAV Toolbox Support Package for PX4 Autopilots ?
  2. You can check the outpout of the command: matlabshared.supportpkg.getInstalled
  3. The output of the above command should give the list of installed support packages. Verify that PX4 support package is installed
  4. Once you have installed the support package, you can execute the below command to check if the examples folder is on path. Let us know if the below command returns 1.
>>contains(lower(path),lower(fullfile('toolbox','target','supportpackages','px4','px4examples')))
5. Check if you are able to open any other demo example - For example: px4demo_uORBReadWrite
Let us know if you are able to open the example 'Px4DemoHostTargetWithSimulinkPlantStart' after above steps.
Thanks,
Abhishek

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by