| With the development of UAV technology,all walks of life are carrying out the exploration and application of UAV operations,such as power inspection,agricultural plant protection,film and television shooting and so on.While the demand for drones is increasing day by day,the demand and technical requirements of drone pilots are also rising.How to quickly and conveniently conduct drone inspection training has become an urgent problem to be solved.Most of the traditional UAV simulation flight software runs on the PC side and has a single function.Based on these problems,this thesis designs and implements a UAV virtual inspection platform for Android-side based on Unity3D.The functions implemented by the platform mainly include UAV control,UAV selection,inspection routes,NPC auto-navigation,damage calculation,scenes selection,login registration,multi-machine collaboration,parameter configuration and background management.UAV control is the basis of the platform.The UAV simulation flight is controlled by the designed joystick,and different operation modes can be set in the parameter configuration.The platform provides a variety of scenarios for users to choose from,mainly divided into three modes:standalone mode,online mode and more modes,five scenarios:drone inspection training scene,flight simulation scene,field multi-function inspection scene,multi-machine collaboration scene and UAV chassis scene,other functions are implemented in these scenes.The drone inspection training scene mainly simulates the real inspection scene,and sets the inspection route and inspection frame.The user controls the drone to pass through the frame to complete the entire inspection route,and the platform records the completion time of the user operation and uploads it to the server.The UAV flight simulation scene is designed according to a certain UAV competition and scenarios that may use UAV operations in reality.Users can fly freely in this scene and design a reasonable flight route to complete the task.Field multi-function inspection scene is a diversity module,where users can perform operations such as drone flight,shooting,and deformation.The beast NPC(Non-Player Character)provided in the scene will automatically find its way through the NavMesh algorithm,and when the drone is close,it will actively attack to simulate the interference of animals on the drone.When attacking,the damage calculation will be performed at the same time.The multi-machine collaboration module is a network-connected scene.Entering this scene,you can see the drone status of other online users.The platform server built by PhotonServer can update the UAV position and status of each user in real time,so as to realize the multi-machine coordination function,which is convenient for users to simulate and perform multiple UAV cooperative tasks.The UAV chassis scene is a showcase scene in which the drone chassis works in action.Background management is a platform data management system based on Vue,which administrators can view and count the time records of users completing inspections and manage basic user information in the system.The UAV virtual inspection platform designed and implemented in this thesis is released to mobile phones through Unity.Users can take out their mobile phones for inspection training anytime and anywhere,which is convenient,fast and unrestricted;users can also experience multipurpose flight in addition to training,which greatly eases the need for inspections.It eliminates the tediousness brought by the inspection training;using the server to implement the function of multi-user co-flight,which is convenient for the interaction between users;using NavMesh algorithm to add pathfinding function for NPC to simulate the interference of animals to drones. |