Deployment of Simulink designed controller to Pixhawk Cube Orange

조회 수: 8 (최근 30일)
Tanay
Tanay 2022년 12월 10일
댓글: Tanay 2022년 12월 19일
Hello!
I have designed a controller in simulink using the UAV Toolbox Support Package for PX4 Autopilot. I want to deply the designed contoller on the Pixhawk Cube Orange but I am unable to figure out how to do that.
There are MATLAB examples for doing the same in case of HITL Simulation. But I want to deploy on the hardware and test it physically. I am not sure what is the difference in the procedure for both the tasks (if there is any). So if anyone has deployed simulink based controller on Pixhawk and tested it on a physical hardware, please help.
Thank you

채택된 답변

Arun Mathamkode
Arun Mathamkode 2022년 12월 12일
Even for the HITL Simulation the Simulink based cotroller will be deployed to the Pixhawk/Cube Orange Hardware. There are not much difference in the behavoiur from controller side, sensors/actuators are the modules that have different bahaviours based on HITL mode or not. So they same way you deploy a controller for HITL mode can be followed for your usecase as well. Ensure that you uncheck the 'Enable HITL Mode' in the Model Configuration paramters. Cube orange is not available as a unique target as of now, but still you can use Cube Orange using the generic PX4 autopilot target. Follow the documentation for details.
  댓글 수: 4
Tanay
Tanay 2022년 12월 13일
I shall try that. Thanks a lot for your help!
Tanay
Tanay 2022년 12월 19일
@Arun Mathamkode I was trying to implement this expample provided by MATLAB. I was able to perform HITL simulations and was trying to implement the controller on an actual quadrotor. The controller Simulink model used in this example reads the waypoints from QGround Control mission. So I wanted to know whether this controller is being used only in mission mode and not any other modes like manual mode?

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

추가 답변 (1개)

Ankur Bose
Ankur Bose 2022년 12월 12일
The support for Cube Orange is available from R2022b. As Arun pointed out, follow the documentation to understand how to deploy to Cube Orange from Simulink

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by