PX4 UAV Toolbox px4demo_attitudeSystem Attitude Controller for a Hexacopter

조회 수: 5 (최근 30일)
Hussein
Hussein 2023년 8월 14일
댓글: Hussein 2023년 11월 16일
Hello,
I am deploying the hexacopter attitude controller from Matlab UAV Toolbox to PX4 flight controller. All version information are listed in the bottom of this post. I have followed the hardware setup as in the documentation. In the beginning I was using PX6 Holybro and all steps were successfully done however, once i physically connect my laptop to the pixhawh PX6 and QGC, it shows that there is no connection as no options related to the configuration appears.
Then, I switched to using PX4 flight controller and started the setup from the beginning. Everything worked and I could connect to QGC. I successfyully flashed the attitude controller (i.e. px4demo_attitudeSystem) to PX4.
Now my problem is that I cant arm through the RC Controller, I can arm using a setting from QGC. Also, I can increase/decrease thrust through the rc controller stick. However, I dont have any pitch, yaw, roll authority.
Is their any documentation on what setup the rc controller in simulink must be configured when you flash the controller?
I have the feeling that it is a simple fix since I have manually tilted the drone (as if im pitching, rolling) and the motors were reacting. I would appreciate if someone can help me out. Thank you in advance.
System info
  • Matlab 2023a
  • PX4 Toolchain v0.8
  • PX4 Firmware px4_fmu-v5_multicopter.px4
  • QGC v4.2.8
  댓글 수: 2
Ankur Bose
Ankur Bose 2023년 8월 18일
Can you clarify how you are reading the RC data in Simulink? Are you using the RC block in PX4 Simulink library?
Hussein
Hussein 2023년 8월 19일
Hello, thank you for your reply. Yes I am using this simulink model shown below which already have an RC block.
Since only the thrust input from the RC controller was working, i tried to add other channels then changing the connections and flash again the controller to PX4 but nothing changes. The only thing that I can input is the thrust.

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

답변 (1개)

Ankur Bose
Ankur Bose 2023년 11월 16일
What does the status output of the RC block indicate?
  댓글 수: 1
Hussein
Hussein 2023년 11월 16일
Its been a while for me that i havent proceed with this task. I will get back to it very soon so I will update this post in case I got something new. Thank you for following up.

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

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by