Skip to content

Core Feature Video Demonstration

The RflySim toolchain is a high-reliability unmanned control system development, testing, and evaluation platform specifically designed for cutting-edge research fields including unmanned control system development, large-scale swarm coordination, and artificial intelligence vision. This toolchain adopts the Model-Based Design (MBD) concept and is built upon development tools such as Pixhawk/PX4, MATLAB/Simulink, Python/AI, and Linux/ROS, supporting algorithm development for 3D scene modeling of intelligent unmanned systems, vehicle dynamics modeling, low-level flight control, intelligent perception and planning, health assessment and fault diagnosis, and swarm game decision-making. Following the MBD workflow—through processes including unmanned system modeling, graphical modular controller design, automatic algorithm code generation, software-in-the-loop simulation, hardware-in-the-loop simulation, and rapid real-drone deployment—RflySim enables a swift transition from simulation to real hardware deployment. Meanwhile, we have divided the Intelligent Unmanned Swarm Systems course series into 10 chapters. These chapters progress step-by-step according to learning difficulty, helping users rapidly develop their own intelligent unmanned swarm systems from the inside out and from the bottom up. The relationship among chapters is shown below:

Chapter 1: Introduction

This chapter mainly explains the foundational knowledge of this toolchain, supporting textbooks, and hardware/software introductions. For details, see: Chapter 1 Toolchain Installation and Learning Methods

Chapter 2: Experimental Platform Configuration

This chapter mainly explains toolchain module introductions, UI interface descriptions, key interface introductions, overall experimental workflow, and troubleshooting. For details, see: Chapter 2 Experimental Platform Configuration and Use







Chapter 3: 3D Scene Modeling and Simulation

This chapter supports secondary development of 3D scene modeling, enabling rapid customization and import of your own aircraft and scenarios. External collision models reduce engine load, and the distributed architecture supports large-scale swarm simulation. For details, see: Chapter 3 3D Scene Modeling and Simulation

Mission (Competition) Effectiveness Evaluation (Scoring)

alt text

Various Special Effects Creation
VR Virtual Reality
Infrared Electro-Optical Pod Demo
360° LiDAR Point Cloud Sensor Simulation


Chapter 4: Vehicle Motion Modeling and Simulation

In this chapter, under the given Simulink input-output interface framework, we quickly implement modeling for various types of vehicles, combine the identification and evaluation scheme provided by the toolchain to tune and evaluate model accuracy, and use automatic code generation technology to convert the model into a dynamically linked library. This library can then be imported and combined with PX4’s native controller or a self-developed controller in Simulink to implement hardware-in-the-loop simulation. For detailed information, please refer to: Chapter 4 Vehicle Motion Modeling and Simulation

alt text

alt text

Implemented with a standardized modeling framework in graphical modular simulation programming software such as Simulink, and the simulation system is finally obtained through code generation.

alt text

Accurate Modeling Method: Trifilar Pendulum for Moment of Inertia Measurement
Propulsion System Test Bench for Motor-Propeller Response Curve Measurement
Self-built Wind Tunnel for Incoming Flow Model Measurement


Frequency Sweep + Actual Flight Frequency-Domain and Time-Domain Model Validation
Accurate Multirotor Modeling + Fault Injection
Tiltrotor Hardware-in-the-Loop Simulation


Fixed-Wing Model (F16 Example): Supports Import of Full-Envelope Aerodynamic Coefficients

alt text

F16 Aerial Docking Algorithm Training Platform

alt text

Helicopter Simulation
Actual Flight Experiment with Helicopter


Models are categorized into four types, all supporting invocation as DLL by Python/Simulink/C++ to meet the requirements of large-scale swarms and AI training:

  • High-fidelity 6-DoF model + flight control hardware-in-the-loop simulation
  • High-fidelity 6-DoF model + integrated Simulink controller, generating a high-fidelity comprehensive model
  • Simplified guidance model + integrated Simulink controller, generating a simplified comprehensive model
  • UE physics engine + integrated Blueprints controller, generating a UE Blueprints comprehensive model (better response to terrain and collisions)

Models developed with this toolchain also support being exported as DLLs callable by Python and other programs, to accelerate AI control training—including decision-making and game-playing for deep reinforcement learning or large models.

alt text

VTOL UAV Simulation
VTOL UAV Actual Flight
Tail-sitter VTOL Simulation
Tail-sitter VTOL Actual Flight
UGV Simulation
Unmanned Surface Vessel Simulation
Hardware-in-the-Loop Simulation of Underwater Vehicle and Validation of Underwater Visual SLAM Algorithm
Actual Flight Video of ZV15E VTOL UAV
Assembly Video of ZV15E VTOL UAV
Follow-Shot Video of ZV15E VTOL UAV
ZV15E VTOL UAV Flight Video in Snowy Weather
ZV15E VTOL UAV Gimbal Car Following Video


Chapter 5: Low-Level Control and Filtering Estimation

In this chapter, model-based low-level flight control design is addressed: given control requirements, how to rapidly implement control algorithms on real aircraft? You only need to complete controller design in Simulink, then proceed through software-in-the-loop simulation, automatic code generation, hardware-in-the-loop simulation, indoor testing, and outdoor actual flight to quickly validate and deploy the algorithm. This significantly lowers the learning threshold for students in UAV control and enhances development efficiency for engineers.

With Simulink controller development and automatic code generation, there is no need to engage in C/C++ low-level programming. By leveraging the uORB message pool, a ROS-like publish-subscribe mechanism is implemented, enabling more flexible algorithm embedding. For detailed introduction, see: Chapter 5 Filtering Estimation and Low-Level Control

alt text New interface for low-level development (released with RflySim v3.03):

  • Supports control input at any layer, including motor layer, force + torque layer, angular velocity layer, attitude angle loop, acceleration loop, velocity loop, position loop, and remote controller layer;
  • Supports switching between official PX4 controllers and self-designed Simulink controllers during flight;
  • Enables more convenient hardware-in-the-loop simulation and experimentation for various vehicle systems;
  • Facilitates more convenient upper-layer information input (waypoints, trajectories, etc.).

Note: The current v3.02 version only supports motor-layer input and cannot switch back to the PX4 controller at any time, making algorithm development and experimentation more challenging. The new interface resolves this issue.

alt text

  • PX4 adopts the uORB message publishing and subscribing mechanism, allowing any APP to retrieve and publish data from the uORB message pool.
  • After generating code from Simulink and deploying it to Pixhawk, an APP named px4_Simulink_app is created, which can communicate with other APPs via the uORB message pool mechanism.

alt text

  • System identification → accurate mathematical model → modern control theory (LQR, ADRC, MPC, MCC, etc.) → automatic code generation → direct deployment on flight controller V.S. repeatedly tuning PX4 native traditional PID to achieve optimal performance.
  • Simulink only replaces the attitude loop, retains other loops, and conducts positioning and hovering tests under fan interference.


(In the video: left is the LQR controller (specified poles), right is the native PX4 PID controller (after tuning).)

Conclusion: An accurate model + modern control theory + automatic code generation by RflySim enables rapid controller parameter calculation (no repeated parameter tuning required) and offers greater advantages in anti-interference performance (higher stability margin).

Feisi X150 UAV Bench Test

Recommended teaching aid: Feisi X150 UAV, 150mm wheelbase (180g weight), compact and safe, equipped with optical flow for stable indoor hovering, compatible with GPS for outdoor testing and motion capture for indoor experiments.
Combined with high-precision identification models and self-developed desktop test benches, it enables rapid development and verification of UAV algorithms.


Degraded Control of Quadrotor with Three Rotor Failures

Based on modern fault-tolerant control theory, the RflySim toolchain enables controllable forced landing of a quadrotor when 1, 2, or 3 rotors fail. Accurate modeling → model-based control → automatic code generation → hardware-in-the-loop simulation → real aircraft testing facilitates rapid development of novel algorithms.
alt text


Chapter 6: External Control and Trajectory Planning

Modern flight control framework: The low-level flight controller retains only attitude or velocity loop control to ensure basic reliable flight capability. All other upper-level planning and control logic are deployed on the onboard computing board and transmitted to the flight controller via an external control interface. The low-level flight controller targets fixed airframe models and can be rapidly implemented using system identification + modern control methods + automatic code generation. Open-source flight controllers such as PX4 contain many redundant designs to accommodate UAVs of various sizes and types, making them unsuitable for UAV manufacturers or research institutions. For detailed introduction, see: Chapter 6 External Control and Trajectory Planning

alt text

Internal/external control is relative:

  • The trajectory planning model for external control can also be placed inside the flight controller.
  • Similarly, much logic of internal flight control can also be placed externally.
  • Control tasks with higher maneuvering requirements can be placed inside the flight controller to run at a higher frequency.
  • For example, high-maneuverability trajectory tracking, AI algorithm training for stunts such as window penetration and inverted flips, etc.

alt text

alt text Interface usage tutorial: Remote control operation, Mavlink communication, Pymavlink, Mavsdk, Mavros, ROS1/2. Algorithm development examples: Upper-level development with Simulink UAV algorithm library, trajectory generation, obstacle avoidance planning, AI training, etc.

alt text
Low-Level Control Algorithms: It is recommended to use MATLAB/Simulink’s rich control planning library and AI training library to rapidly develop and verify algorithms, and achieve swift algorithm deployment through automatic code generation.
Note: The RflySim toolchain also plans to be compatible with the domestic MWORKS platform in the future.

Air-Ground Cooperative External Trajectory Planning and Control


Chapter 7: Safety Assessment and Fault Diagnosis

In addition to testing basic functions, safety and reliability testing under fault conditions is also critical for UAVs. This system categorizes faults into three types: model faults (related to the UAV’s mathematical model), communication faults (related to data interaction and transmission), and environmental faults (related to 3D scenarios). For detailed introduction, see: Chapter 7 Health Management and Safety Assessment

alt text
From kinematic and dynamic simulation → sensor data simulation → sensor chip simulation
From pure algorithm software testing → system-wide software and hardware testing
alt text

alt text

alt text

Fault Injection Experiment
Fault Injection and Diagnosis Algorithm Verification


Chapter 8: Multi-Modal Perception and Intelligent Decision-Making

In this chapter, leveraging the distributed architecture, external model support, hardware-in-the-loop simulation, and multi-UAV synchronization features of the RflySim toolchain, users can implement distributed architecture for independent visual hardware-in-the-loop verification of multiple UAVs, visual SLAM hardware-in-the-loop simulation, rapid migration of real aircraft algorithms, and other development work. For detailed introduction, see: Chapter 8 Multi-Modal Perception and Intelligent Decision-Making

alt text

alt text

Five-UAV Visual Shared SLAM Hardware-in-the-Loop Simulation
Simulation Algorithm Development and Verification
Rapid Migration of Real-Aircraft Algorithms
3D Mapping Experiment in Denied Environment


High-Speed Visual Strike Experiment
Large Model Control: Responding to Commands—Controlling the UAV to Go Upstairs and Check Whether the Bathroom Window is Closed


Chapter 9: Multi-UAV Communication and Intelligent Networking

In this chapter, all UAV data is first sent to the network simulator, and then forwarded to subscribed UAVs based on actual conditions. Network simulation is divided into two granularities: coarse-grained simulation, which primarily simulates upper-layer characteristics such as delay and packet loss to emulate the final communication quality; and fine-grained networking simulation based on NS3, which supports the development and verification of lower-layer networking algorithms. For detailed introduction, see: Chapter 9 Multi-UAV Communication and Intelligent Networking

alt text

Cluster Communication Quality Simulation


Chapter 10: Swarm Cooperation and Game Confrontation

In this chapter, inter-program communication within a computer during swarm simulation adopts the shared memory method, operating directly on memory to achieve the lowest latency and highest speed. Each computer can run multiple hardware-in-the-loop/software-in-the-loop simulation systems to simulate multiple UAVs. Data transmitted and received by each computer is aggregated and compressed to ensure smooth intra-network communication. It uses on-demand communication and supports swarm simulation at the scale of 1,000 drones. For detailed introduction, see: Chapter 10 Swarm Cooperation and Game Confrontation

alt text

Large-scale Swarm Target Search Simulation
VTOL Multi-UAV Formation


Introduction to RflySim Cloud

The RflySim Cloud intelligent algorithm cloud platform is developed by Feisi Lab under Zhuoyi Intelligence for cutting-edge research fields including large-scale swarm algorithm verification, unmanned platform game confrontation simulation, and artificial intelligence model training. It supports both public cloud and private cloud deployment, and is a comprehensive platform integrating large-scale high-fidelity model simulation with online development, debugging, and training for multiple types of intelligent algorithms.

The RflySim Cloud platform consists of modules including experiment management tools, scenario editing tools, system management tools, agent training tools, and model development tools. End users only need to provide their intelligent algorithms and connect them via the intelligent algorithm interface SDK; the algorithms can then directly utilize system modules such as system dynamics calculation and multi-agent training.

Cloud-based access with ultra-high computational power support and ultra-large-scale swarm simulation frees you from local computing power limitations.