UAV Toolbox Support Package for PX4 Autopilots - Pixhawk 4 Flight Experiment
Show older comments
I designed PX4 Position & Attitude controller in Simulink and built and uploaded to pixhawk4 using UAV Toolbox Support Package for PX4 Autopilots.
I uploaded the controller to pixhawk4 using the px4Demo_FlightController_top.slx file of Simulink's Px4DemoHostTargetWithSimulinkPlantStart.


It was confirmed that the auto code generated by Simulink was generated in the px4_simulink_app folder as follows. I confirmed that auto code generation replaces firmware with newly generated code from existing px4 firmware.

In order to verify the actual hardware flight performance of the controller I designed myself, I tried to conduct a flight test of a quadrotor equipped with a Pixhawk4 through QGrondControl.
I judged that only the controller was replaced by a new model and had no effect on the MAVLINK module. (https://kr.mathworks.com/help/supportpkg/px4/ug/px4-capabilities-integration.html)
However, pixhawk4 is connected in QGroundControl, but only Not Ready appears repeatedly, and SD Card Logging also failed repeatedly.

Quadrotor Arming and flight using RC Transmitter are possible, but the position controller cannot be validated because it is not ready on QGroundControl.
Can MAVLINK's communication loss occur while uploading Simulink's controller to Pixhawk4?
Do I need to modify the MAVLINK module of px4 firmware to resolve this?
Accepted Answer
More Answers (0)
Categories
Find more on Flight Log Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!