Pushing a custom simulink UAV model to px4.

조회 수: 13 (최근 30일)
UASLAB
UASLAB 2023년 5월 4일
댓글: Karukkuvel Raj 2024년 4월 25일
Hello @everyone,
Please, I am looking for a step by step tutorial on how to develop px4_simulink_app from UAV simulink model using Simulink UAV Toolbox support package, in order test the performance of my custom controller in a real-life quadrotor flight test.
Thank you.

채택된 답변

Ankur Bose
Ankur Bose 2023년 5월 8일
Have you tried out thecontroller deployment examples in the support package? The support package already contains controller deployment examples which you can run on Host or Autopilot. You dont need to develop the px4_simulink_app. The support package will take care of that for you
  댓글 수: 11
Ankur Bose
Ankur Bose 2023년 5월 19일
As per the documentation you shared, you have to run Monitor & Tune. See Task 3. Follow the doc to see the correct behavior
UASLAB
UASLAB 2023년 5월 19일
편집: UASLAB 2023년 5월 19일
Okay.Thank you

댓글을 달려면 로그인하십시오.

추가 답변 (2개)

Arun Mathamkode
Arun Mathamkode 2023년 5월 9일
As per your initial question, I understand that you want to deploy the custom controller on a PX4 autopilot for a real flight test. From the Comments from the earlier answer, I see that you are facing issues with SITL as well. Since your end goal is to try with real hardware, I would recommend you start creating a custom controller and verify it with HITL before the actual flight. You can refer to the HITL example to get started.
  댓글 수: 4
Ankur Bose
Ankur Bose 2023년 5월 19일
have you set the serial port of your pixhawk Mini correctly in the HITL model?
UASLAB
UASLAB 2023년 6월 16일
Please, what can I do to solve this problem... I deployed my custom controller in SITL UAV Toolbox support package for PX4 using the example model, the controller could not stabilize the quadcopter in jMAVSim it goes up, fly around and then crash. The controller works well in the model base design in simulink.
Thank you.

댓글을 달려면 로그인하십시오.


UASLAB
UASLAB 2023년 6월 19일
Please, what can I do to solve this problem... I deployed my custom controller in SITL UAV Toolbox support package for PX4 using the example model, the controller could not stabilize the quadcopter in jMAVSim it goes up, fly around and then crash. However, the controller works well in the model base design in simulink.
Thank you.

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by