5.1、How To Use
RflySim adopts the idea of model-based design (Model-Based Design,MBD), which can be used for the control and security testing of unmanned systems. Through the following five stages: modeling stage, controller design stage, software-in-the-loop simulation stage (Software-In-the-Loop,SIL), hardware-in-the-loop simulation stage (Hardware-In-the-Loop,HIL) and real flight test phase. Through the automatic code generation technology of MATLAB/Simulink, the controller can be easily automatically downloaded to the hardware for HIL simulation and actual flight test。
The interface of multi-rotor controller design is provided in MATLAB/Simulink, and users (beginners, students or engineers) can use their knowledge to design and verify the controller quickly. After the design of the controller is completed, the platform provides the function of code generation and download, and the designed Simulink control algorithm can be generated into the C/C++ code, then compiled into the firmware of the PX4 autopilot, and automatically downloaded to the autopilot. This platform also provides hardware-in-the-loop simulation test function. Users can carry out preliminary simulation test on the flight effect on the real Pixhawk autopilot system, and eliminate all kinds of problems that may exist in the real flight experiment. After passing the test, the Pixhawk autopilot is installed on a multi-rotor hardware system, and indoor and outdoor flight experiments can be carried out to evaluate the performance of the design control algorithm.
In this lecture Core,Function introduction (Intro) file
The address of the introduction document for this lecture is: 🔗[Installation Directory]\RflySimAPIs\5.RflySimFlyCtrl\Intro.pdf🔗
In this lecture, API files
In this lecture, the address of the development-related API interface platform is:🔗[Installation Directory]\RflySimAPIs\5.RflySimFlyCtrl\API.pdf🔗
In this lecture, PPT files
The platform address of the PPT document for this lecture is:🔗[Installation Directory]\RflySimAPIs\5.RflySimFlyCtrl\PPT.pdf🔗
All routine files in this lecture
For all routines in this lecture, please see the Readme documentation, which is located at:🔗[Installation Directory]\RflySimAPIs\5.RflySimFlyCtrl\Readme.pdf🔗