The invention belongs to the technical field of unmanned aerial vehicle
network simulation, and particularly relates to an unmanned aerial vehicle
network simulation plug-in which is embedded into an external unmanned aerial vehicle
simulation platform in a dynamic
library or service form and is used for simulating end-to-end transmission of
business data among multiple machines. The plug-in comprises a link state broadcast module, a routing calculation module, a service
data simulation module, a
fault injection interface and a universal interface module; a composite link cost function is adopted in routing calculation, a distance soft threshold, adaptive normalization
delay and
packet loss items and HOPCOST are fused, and invalid multi-hop is inhibited; the
service module restores the propagation path based on the
routing table, accurately accumulates and calculates the
total delay and the end-to-end
packet loss rate, and executes scheduling or discarding; and cross-platform
joint simulation is realized through a plurality of protocols, such as DDS, ROS2, Redis and the like, adapted by depending on injection. According to the method, the problems of business modeling
distortion, insufficient dynamics, interface sealing and the like of the existing tool are solved, and the authenticity, the flexibility and the
engineering practicability of large-scale unmanned aerial vehicle
network simulation are improved.