Erro in PX4 Autopilots Examples

3 views (last 30 days)
Minshang Liang
Minshang Liang on 14 Aug 2020
Answered: Arun Mathamkode on 11 Nov 2021
Hallo guys,
I am a student. I want to learn, how can i use matlab to control the PX4 Autopilots. I learn the example: Code Verification and Validation with Processor-in-the-Loop (PIL) Simulation. it shows in diagnostic viewer: The current CMake configuration px4fmu-v5_default is incompatible with selected Hardware board PX4 Pixhawk 1 in the Simulink Model. Even though i changed it in Modelsettings.
Thanks for you help
  1 Comment
Mahesh Taparia
Mahesh Taparia on 19 Nov 2020
Hi,
You can refer to this MATLAB documentation of PX4. Hope it will help!

Sign in to comment.

Answers (1)

Arun Mathamkode
Arun Mathamkode on 11 Nov 2021
Makesure that you have selected the required hardware during the Hardware setup screens. If you are using 'Pixhawk 1', you can choose either px4fmu-v2_default or px4fmu-v3_default as the CMake. For the CMake configuration px4fmu-v5_default you need to use 'Pixhawk 4'. You can consider running through the Hardware setup screens and choosing the right hardware and right CMake to resolve this issue.

Tags

Community Treasure Hunt

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

Start Hunting!