Chapter 4: Vehicle Motion Modeling and Simulation
Under different simulation software, methods, and conditions, simulation results for the same product or engineering scenario should remain consistent or comparable to ensure the effectiveness and reliability of the simulation. The RflySim Toolchain is a model-based development platform designed specifically for control and safety testing of unmanned systems. It provides standard model templates and structured modeling and simulation processes, ensuring simulation consistency. The principles are as follows:
- Model templates: The RflySim Toolchain provides a variety of model templates for unmanned systems, including ground vehicles, fixed-wing aircraft, VTOL aircraft, and more. Users can select the appropriate template and modify model parameters according to the standard interface (mass, inertia, aerodynamic coefficients, etc.) to match their specific unmanned system. Model templates provide a unified model structure and format, facilitating model construction, modification, comparison, and compatibility.
- Modeling process: The RflySim Toolchain adopts a model-based development concept. Users can leverage MATLAB/Simulink, Python, or other programming platforms for controller design and application development — including attitude controllers, position controllers, high-level decision-making, and autonomous flight. The modeling process provides an efficient development environment where existing toolboxes and libraries enable rapid algorithm development and verification, while maintaining portability and extensibility.
Simulation process: After model development in MATLAB/Simulink, C++ code is automatically generated and compiled into a DLL (Dynamic Link Library) model via the platform's GenerateModelDLLFile tool. The DLL model is imported into CopterSim to form a dynamic simulation model with multiple input/output interfaces for data interaction with the low-level controller, 3D engine, ground station, and external controllers. The RflySim Toolchain supports both SIL and HIL simulation modes for flexible testing, with consistency and convertibility between modes.
- 4.2 Featured Examples
- 4.3 Frequently Asked Questions
Session 3: Vehicle Motion Modeling and Simulation (Part 1)
Session 3: Vehicle Motion Modeling and Simulation (Part 2)
Session 3: Vehicle Motion Modeling and Simulation (Part 3)