A method, system, storage medium and electronic device for recording and replaying multi-source flight data of unmanned aerial vehicle
Through the multi-source flight data recording and playback method of UAV, the dual buffer technology is used to synchronize the recording and playback of flight data, which solves the problems of data loss and low retrieval efficiency in the prior art, and achieves efficient and accurate data recording and playback.
Patent Information
- Application Number
- CN202411859828.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-17
- Publication Date
- 2025-04-04
AI Technical Summary
The existing drone flight data recording methods lead to the loss of intelligence information, making it difficult to realize flight scenario reproduction and troubleshooting. At the same time, the generation of large-capacity record files leads to a long time of data retrieval, and it is easy to make mistakes during the storage and backup process.
It provides a method for recording and playback of multi-source flight data of the UAV. It can be used to receive user control instructions, enter the recording mode or playback mode, and use dual buffer technology to synchronize the recording and playback of flight data, supporting fast and slow playback modes to ensure data integrity and retrieval efficiency.
It realizes synchronous recording and playback of massive drone flight data, reduces the risk of data loss, improves the accuracy of retrieval locations, solves the problem of synchronizing and fast playback of telemetry data and drone reconnaissance intelligence data, shortens search time and improves data playback efficiency.
Smart Images

Figure CN119759809A_ABST
Abstract
Description
Background Art
[0002] With the development of modern science and technology, as a new type of aerospace equipment, the status and role of UAVs in the military and civilian fields are increasingly valued. In order to obtain more reliable intelligence, a large number of UAV systems in my country are widely equipped with day and night optoelectronic payloads, multi-spectral payloads, data camera payloads, radar payloads, electronic reconnaissance warnings, meteorological pods, airborne ammunition and other payloads. Due to the improvement of airborne payload performance, diversification of types and the long flight time of UAVs, the amount of flight data for each flight test is very large. For example, the flight record data of a 10-hour flight is more than 40G. At present, relying on the previous method of only recording measurement and control data will lead to the loss of intelligence information, which is not conducive to flight scenario reproduction and troubleshooting; on the other hand, the method of generating a large-capacity record file makes the data retrieval time long, and it is easy to make mistakes in the data storage and backup process, which will lead to data export and backup failure.
[0003] Therefore, it is necessary to improve one or more problems existing in the above-mentioned related technical solutions.
[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0005] The purpose of the embodiments of the present disclosure is to provide a method, system, storage medium and electronic device for recording and replaying multi-source flight data of a drone, thereby overcoming one or more problems caused by the limitations and defects of the relevant technology at least to a certain extent.
[0006] According to a first aspect of an embodiment of the present disclosure, a method for recording and replaying multi-source flight data of an unmanned aerial vehicle is provided, the method comprising: Receiving a user control instruction, and determining a corresponding working state according to the user control instruction; If the user control command is a recording command, the recording mode is entered, and the flight data of the UAV is recorded to obtain a historical flight data file; If the user control instruction is a playback instruction, a playback mode is entered to play back the flight data in the historical flight data file.
[0007] Furthermore, the method further comprises: A playback folder is generated to store the historical flight data file, and the historical flight data file is retrieved in response to the playback instruction.
[0008] Furthermore, if the user control instruction is a recording instruction, the step of entering a recording mode and recording the flight data of the drone to obtain a historical flight data file includes: If the user control instruction is a recording instruction, obtain the current system time as the initial recording time mark, name the recording data file according to the time mark and the data type of the flight data, and set the working state to the recording mode; The flight data is received and placed into a double buffer to obtain the historical flight data file; wherein the flight data includes telemetry data and drone reconnaissance intelligence data, and the double buffer includes a first memory buffer and a second memory buffer.
[0009] Further, if the user control instruction is a playback instruction, entering a playback mode, and playing back the flight data in the historical flight data file, includes: placing the flight data into the first memory buffer, and when the first memory buffer is full, pointing the double buffer switching flag to the second memory buffer, and writing the flight data in the first memory buffer into the record data file to obtain the historical flight data file; When the second memory buffer is full, the double buffer switching flag is pointed to the first memory buffer, the first memory buffer is used to store the flight data, and the first memory buffer data is written into the playback folder to obtain the historical flight data file.
[0010] Further, if the user control instruction is a playback instruction, entering the playback mode and playing back the historical flight data file includes: If the user control instruction is the playback instruction, generating a historical flight data file list according to the selected playback folder; Determine whether to select the playback start time; If not, reading data from the beginning of the historical flight data file into the data playback buffer, and setting the start time mark of the historical flight data file as the playback time mark; If yes, searching the historical flight data file for a corresponding time stamp; If the time mark is found, reading the historical flight data file from the time mark found to the data playback buffer; If the time mark is not found, reading the historical flight data file from the current position to the data playback buffer, and setting the time mark of the current position as the playback time mark; The working state is set to the playback mode.
[0011] Furthermore, in the playback mode, the user control instruction further includes a fast-forward instruction and a slow-forward instruction, and the fast-forward mode and the slow-forward mode are entered respectively according to the fast-forward instruction and the slow-forward instruction.
[0012] Furthermore, the method further comprises: If the user control instruction is a stop instruction; determining the working status; If it is the recording mode, the historical data not written in the double buffer is written into the recording data file, and the recording data pointer is cleared and the double buffer switching flag is pointed to the first memory buffer; If it is the playback mode, the playback data pointer is cleared, the playback speed flag is set to normal speed, the pause flag is set to non-pause, and the playback time flag is cleared; The working state is set to real-time mode.
[0013] According to a second aspect of an embodiment of the present disclosure, a multi-source flight data recording and playback system for an unmanned aerial vehicle is provided, the system comprising: A working state switching unit, used to receive a user control instruction and determine a corresponding working state according to the user control instruction; A data recording unit, configured to enter a recording mode and record the flight data of the UAV to obtain a historical flight data file if the user control instruction is a recording instruction; A data playback unit is used to enter a playback mode and play back the flight data in the historical flight data file if the user control instruction is a playback instruction.
[0014] According to a third aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the steps of the method for recording and replaying multi-source flight data of a drone described in any one of the above embodiments are implemented.
[0015] According to a fourth aspect of an embodiment of the present disclosure, there is provided an electronic device, including: Processor; and A memory, configured to store executable instructions of the processor; Wherein, the processor is configured to execute the steps of the drone multi-source flight data recording and playback method in any of the above embodiments by executing the executable instructions.
[0016] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects: In the embodiments of the present disclosure, through the above-mentioned UAV multi-source flight data recording and playback method and device, on the one hand, it is possible to synchronously record and playback massive amounts of UAV flight data, thus solving the problem of system data loss. In addition, the ability to quickly retrieve files and synchronously playback based on target information or time points reduces the risk of data loss during recording, improves the accuracy of the retrieval position, and solves the problem of synchronous fast playback of telemetry data and UAV reconnaissance intelligence data. It not only shortens the search time and improves data playback efficiency; it also provides technical support for fault analysis and analysis reproduction of UAV systems. On the other hand, this method can be applied to various other types or models of unmanned aircraft systems, and has strong generalizability.
[0017] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0019] Figure 1 A step diagram showing a method for recording and replaying multi-source flight data of a drone in an exemplary embodiment of the present disclosure; Figure 2 A schematic structural diagram of a multi-source flight data recording and playback system for a drone in an exemplary embodiment of the present disclosure is shown; Figure 3 A specific workflow diagram of a multi-source flight data recording and playback system for a drone in an exemplary embodiment of the present disclosure is shown; Figure 4 A flowchart showing the working process of the data recording unit in the exemplary embodiment of the present disclosure is shown; Figure 5 A flowchart showing a data playback unit in an exemplary embodiment of the present disclosure is shown; Figure 6 A flowchart showing a playback folder unit in an exemplary embodiment of the present disclosure; Figure 7 A schematic diagram showing a program product in an exemplary embodiment of the present disclosure; Figure 8 A schematic diagram showing an electronic device in an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0020] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0021] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0022] In this example implementation, a method for recording and replaying multi-source flight data of a drone is first provided. The method can be applied to a terminal device, such as a mobile phone, a personal digital assistant, a laptop, a tablet computer, a smart watch, or other mobile terminal [flexibly adjusted according to specific circumstances, such as the terminal device is a server, etc.]. Figure 1 As shown in , the method may include the following steps: Step S101: receiving a user control instruction, and determining a corresponding working state according to the user control instruction; Step S102: if the user control instruction is a recording instruction, entering a recording mode and recording the flight data of the UAV to obtain a historical flight data file; Step S103: If the user control instruction is a playback instruction, enter the playback mode and play back the flight data in the historical flight data file.
[0023] Through the above-mentioned UAV multi-source flight data recording and playback method and device, on the one hand, it is possible to synchronously record and playback massive amounts of UAV flight data, solving the problem of system data loss. In addition, the ability to quickly retrieve files and synchronously playback according to target information or time points reduces the risk of data loss during recording, improves the accuracy of retrieval positions, and solves the problem of synchronous fast playback of telemetry data and UAV reconnaissance intelligence data. It not only shortens the search time and improves data playback efficiency; it also provides technical support for fault analysis and analysis and reproduction of UAV systems. On the other hand, this method can be applied to various other types or models of unmanned aircraft systems, and has strong generalization capabilities.
[0024] Next, we will refer to Figure 1Each step of the above method in this example implementation is described in more detail.
[0025] In step S101, a user control instruction is received, and a corresponding working state is determined according to the user control instruction.
[0026] For example, the first step is to check the remaining disk space and network status, followed by initialization of the network, threads, timers, parameters, etc.
[0027] Receive user control instructions and control its working state according to the user control instructions sent by the user; wherein the user control instructions include recording instructions, playback instructions, stop instructions, continue instructions, fast forward instructions and slow forward instructions.
[0028] In step S102 and step S103, if the user control instruction is a recording instruction, the recording mode is entered and the flight data of the UAV is recorded to obtain a historical flight data file.
[0029] For example, if the control instruction is a recording instruction, the current system time is obtained as the initial recording time mark, and the recording data file is named with the time mark and the recorded data type, such as 20150722-2-142847.dat, and the software working state is set to recording. At the same time, telemetry data and drone reconnaissance intelligence data are received through the network and placed in the recording buffer area (i.e., double buffer area). When the previous memory buffer (i.e., the first memory buffer area) is full, the double buffer switching flag is pointed to the next memory buffer (i.e., the second memory buffer area), and the next memory buffer is used to store visible light data, and the previous memory buffer data is written to the binary data file. When the next memory buffer is full, the double buffer switching flag is pointed to the previous memory buffer, and the previous memory buffer is used to store telemetry data and remote control data, and the next memory buffer data is written to the binary data file.
[0030] The data type group is divided into two categories: UAV measurement and control support data and UAV reconnaissance composite data. Among them, UAV measurement and control support data includes: UAV platform flight, navigation, mission, line-of-sight link measurement and control data and ground support equipment data such as Beidou equipment, meteorological instruments, S satellite communication, and friend-or-foe identification. UAV reconnaissance data includes: day and night optoelectronic payloads, multi-spectral payloads, data camera payloads, radar payloads, electronic reconnaissance warnings, meteorological pods, airborne ammunition, and other UAV reconnaissance composite data.
[0031] If the control instruction is playback, a list is generated based on the selected playback folder; first determine whether the playback start time is selected. If the playback start time is not selected, read data from the beginning of the data file to the data playback buffer, and set the time mark of the beginning of the file as the playback time mark. If the playback start time is selected, it is necessary to find the corresponding time mark from the data file. If found, read data from the found time mark to the data playback buffer, and read the composite data to the composite data playback buffer. Set the software working state to playback.
[0032] When receiving the stop command, first determine whether the current software working state is recording or playback. If in the recording state, write the buffer data that has not been written into the data file into the data file, clear the recording data pointer, and point the double buffer switching flag to the previous memory buffer. If in the playback state, clear the playback data pointer, set the playback speed flag to normal speed, set the pause flag to non-pause, and clear the playback time flag. Set the software working state to real-time.
[0033] In the recording and playback software, the software stores the composite data in the composite data recording buffer. When the previous memory buffer is full, the double buffer switching flag is pointed to the next memory buffer, and the next memory buffer is used to store the visible light data, and the previous memory buffer data is written to the binary data file. When the next memory buffer is full, the double buffer switching flag is pointed to the previous memory buffer, and the previous memory buffer is used to store the telemetry data and the remote control data, and the next memory buffer data is written to the binary data file.
[0034] Click the interface button to open the file selection window and select the binary data file. Open the playback file, read the start time and end time, add the frame header and frame footer to the start time and end time, and send it to the network. Read the composite data from the playback buffer and send it to the network. When the playback data reaches two-thirds of the playback buffer, move the playback buffer data forward, and then read one-third of the buffer length data from the data file to fill the playback buffer.
[0035] It should be noted that, although the steps of the method in the present disclosure are described in a specific order in the accompanying drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step for execution, and / or one step may be decomposed into multiple steps for execution, etc. In addition, it is also easy to understand that these steps may be, for example, executed synchronously or asynchronously in multiple modules / processes / threads.
[0036] Furthermore, in this exemplary embodiment, a multi-source flight data recording and playback system for a drone is also provided. Figure 2 As shown in , the system may include a working state switching unit, a data recording unit and a data playback unit. Wherein: A working state switching unit, used to receive a user control instruction and enter a corresponding working state according to the user control instruction; A data recording unit, for entering a recording mode and recording the flight data of the UAV to obtain a historical flight data file if the user control command is a recording command; The data playback unit is used to enter the playback mode and play back the flight data in the historical flight data file if the user control instruction is a playback instruction.
[0037] Specifically, the system also includes: The interface component is used in the user interface layer to control the recording and playback software to perform human-computer interactions such as recording data, playing back data, and displaying working status.
[0038] The working status control component is used to record and playback the underlying device management, component scheduling, working status monitoring, etc. of the software.
[0039] The data recording unit includes: UAV data recording component, data link recording component, Beidou data recording component, satellite communication data recording component, panoramic system recording component, etc. These components respectively record the control data, status data, and business data of the UAV platform, data terminal, Beidou equipment, satellite communication equipment, and panoramic system.
[0040] The data playback unit includes: UAV data playback component, data link playback component, Beidou data playback component, satellite communication data playback component, panoramic system playback component, etc. These components respectively play back the control data, status data, and business data of the UAV platform, data terminal, Beidou equipment, satellite communication equipment, and panoramic system.
[0041] The support and guarantee units include: serial communication components, network communication components, CAN port communication components, log support components, database support components, file system components, etc. This unit component serves as the middleware of the recording and playback software, which is used to adapt to different working environments and enhance the scalability and portability of the recording and playback software.
[0042] In one embodiment, Figure 3 The figure shows a specific flow chart of the system for processing user control instructions.
[0043] Furthermore, the steps of using the working state switching unit include: If the user control command is a recording command, obtain the current system time as the initial recording time mark, name the recording data file according to the time mark and the data type of the flight data, and set the working state to recording mode; Receive flight data and place the flight data into a double buffer to obtain a historical flight data file; wherein the flight data includes telemetry data and drone reconnaissance intelligence data, and the double buffer includes a first memory buffer and a second memory buffer.
[0044] Furthermore, if Figure 4 The figure shows the workflow of the data recording unit. The workflow of the data recording unit includes: placing the flight data into a first memory buffer, and when the first memory buffer is full, pointing the double buffer switching flag to the second memory buffer, and writing the flight data in the first memory buffer into a record data file to obtain a historical flight data file; When the second memory buffer is full, the double buffer switching flag is pointed to the first memory buffer, the first memory buffer is used to store flight data, and the first memory buffer data is written into the playback folder to obtain a historical flight data file.
[0045] Furthermore, if Figure 5 As shown in FIG. 1 , it is a workflow diagram of the data playback unit. The workflow of the data playback unit includes: If the user control command is a playback command, a historical flight data file list is generated according to the selected playback folder; Determine whether to select the playback start time; If not, then read the data from the beginning of the historical flight data file into the data playback buffer, and set the start time mark of the historical flight data file as the playback time mark; If so, the corresponding time stamp is searched from the historical flight data file; If the time mark is found, the historical flight data file is read from the time mark found to the data playback buffer; If the time mark is not found, the historical flight data file is read from the current position to the data playback buffer, and the time mark of the current position is set as the playback time mark; Set the working state to playback mode.
[0046] Furthermore, the device also includes: The playback folder unit is used to generate a playback folder to store historical flight data files and respond to playback instructions to retrieve historical flight data files. Figure 6 The following is a workflow diagram of the playback folder unit.
[0047] Furthermore, in the playback mode, the user control instruction also includes a fast-forward instruction and a slow-forward instruction, and the fast-forward mode and the slow-forward mode are entered respectively according to the fast-forward instruction and the slow-forward instruction.
[0048] Furthermore, the workflow of the system also includes: If the user control command is a stop command; Determine the working status; If it is in recording mode, the historical data not written in the double buffer is written into the recording data file, and the recording data pointer is cleared and the double buffer switching flag is pointed to the first memory buffer; If it is playback mode, the playback data pointer is cleared, the playback speed flag is set to normal speed, the pause flag is set to non-pause, and the playback time flag is cleared; Set the working state to real-time mode.
[0049] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0050] It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiment of the present disclosure, the features and functions of two or more modules or units described above can be concretized in one module or unit. Conversely, the features and functions of a module or unit described above can be further divided into multiple modules or units for concretization. The components displayed as modules or units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. Those of ordinary skill in the art can understand and implement it without paying creative work.
[0051] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a computer program is stored, and when the program is included in a processor and executed, the steps of the method for recording and replaying multi-source flight data of a drone described in any of the above embodiments can be implemented. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps of various exemplary embodiments of the present invention described in the above-mentioned method for recording and replaying multi-source flight data of a drone in this specification.
[0052] refer to Figure 7As shown, a program product 300 for implementing the above method according to an embodiment of the present invention is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.
[0053] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0054] The computer readable storage medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by an instruction execution system, an apparatus, or a device or used in combination with it. The program code contained on the readable storage medium may be transmitted with any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
[0055] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device, partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0056] In an exemplary embodiment of the present disclosure, an electronic device is also provided, which may include a processor and a memory for storing executable instructions of the processor. The processor is configured to execute the steps of the multi-source flight data recording and playback method of the drone in any of the above embodiments by executing the executable instructions.
[0057] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as a system, method or program product. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as a "circuit", "module" or "system".
[0058] Refer to the following Figure 8 The electronic device 600 according to this embodiment of the present invention is described. Figure 8 The electronic device 600 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0059] like Figure 8 As shown, the electronic device 600 is in the form of a general computing device. The components of the electronic device 600 may include but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 connecting different system components (including the storage unit 620 and the processing unit 610), a display unit 640, etc.
[0060] The storage unit stores a program code, which can be executed by the processing unit 610, so that the processing unit 610 executes the steps of various exemplary embodiments of the present invention described in the above-mentioned UAV multi-source flight data recording and playback method part of this specification. For example, the processing unit 610 can execute the following steps: Figure 1 Follow the steps shown in .
[0061] The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 6201 and / or a cache memory unit 6202 , and may further include a read-only memory unit (ROM) 6203 .
[0062] The storage unit 620 may also include a program / utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include the implementation of a network environment.
[0063] Bus 630 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0064] The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 600, and / or communicate with any device that enables the electronic device 600 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface 650. In addition, the electronic device 600 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) through a network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 through a bus 630. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0065] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server or a network device, etc.) to execute the above-mentioned drone multi-source flight data recording and playback method according to the implementation of the present disclosure.
[0066] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.
Claims
1. A method for recording and replaying multi-source flight data of an unmanned aerial vehicle, characterized in that: The method includes: Receiving a user control instruction, and determining a corresponding working state according to the user control instruction; If the user control command is a recording command, the recording mode is entered, and the flight data of the UAV is recorded to obtain a historical flight data file; If the user control instruction is a playback instruction, a playback mode is entered to play back the flight data in the historical flight data file.
2. The method for recording and replaying multi-source flight data of a UAV according to claim 1, characterized in that: The method further includes: A playback folder is generated to store the historical flight data file, and the historical flight data file is retrieved in response to the playback instruction.
3. The method for recording and replaying multi-source flight data of a UAV according to claim 2, characterized in that: If the user control instruction is a recording instruction, the step of entering a recording mode and recording the flight data of the drone to obtain a historical flight data file includes: If the user control instruction is a recording instruction, obtain the current system time as the initial recording time mark, name the recording data file according to the time mark and the data type of the flight data, and set the working state to the recording mode; The flight data is received and placed into a double buffer to obtain the historical flight data file; wherein the flight data includes telemetry data and drone reconnaissance intelligence data, and the double buffer includes a first memory buffer and a second memory buffer.
4. The method for recording and replaying multi-source flight data of a UAV according to claim 3, characterized in that: If the user control instruction is a playback instruction, entering a playback mode, and playing back the flight data in the historical flight data file, includes: placing the flight data into the first memory buffer, and when the first memory buffer is full, pointing the double buffer switching flag to the second memory buffer, and writing the flight data in the first memory buffer into the record data file to obtain the historical flight data file; When the second memory buffer is full, the double buffer switching flag is pointed to the first memory buffer, the first memory buffer is used to store the flight data, and the first memory buffer data is written into the playback folder to obtain the historical flight data file.
5. The method for recording and replaying multi-source flight data of unmanned aerial vehicle according to claim 4, characterized in that: If the user control instruction is a playback instruction, entering a playback mode and playing back the historical flight data file include: If the user control instruction is the playback instruction, generating a historical flight data file list according to the selected playback folder; Determine whether to select the playback start time; If not, reading data from the beginning of the historical flight data file into the data playback buffer, and setting the start time mark of the historical flight data file as the playback time mark; If yes, searching the historical flight data file for a corresponding time stamp; If the time mark is found, reading the historical flight data file from the time mark found to the data playback buffer; If the time mark is not found, reading the historical flight data file from the current position to the data playback buffer, and setting the time mark of the current position as the playback time mark; The working state is set to the playback mode.
6. The method for recording and replaying multi-source flight data of a UAV according to claim 5, characterized in that: In the playback mode, the user control instruction further includes a fast-forward instruction and a slow-forward instruction, and the fast-forward mode and the slow-forward mode are entered respectively according to the fast-forward instruction and the slow-forward instruction.
7. The method for recording and replaying multi-source flight data of a UAV according to claim 6, characterized in that: The method further includes: If the user control instruction is a stop instruction; Determining the working status; If it is the recording mode, the historical data not written in the double buffer is written into the recording data file, and the recording data pointer is cleared and the double buffer switching flag is pointed to the first memory buffer; If it is the playback mode, the playback data pointer is cleared, the playback speed flag is set to normal speed, the pause flag is set to non-pause, and the playback time flag is cleared; The working state is set to real-time mode.
8. A multi-source flight data recording and playback system for unmanned aerial vehicles, characterized in that: The system includes: A working state switching unit, used to receive a user control instruction and determine a corresponding working state according to the user control instruction; A data recording unit, configured to enter a recording mode and record the flight data of the UAV to obtain a historical flight data file if the user control instruction is a recording instruction; A data playback unit is used to enter a playback mode and play back the flight data in the historical flight data file if the user control instruction is a playback instruction.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method for recording and replaying multi-source flight data of a drone as described in any one of claims 1 to 7 are implemented.
10. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; Wherein, the processor is configured to execute the steps of the drone multi-source flight data recording and playback method described in any one of claims 1 to 7 by executing the executable instructions.