Flag variable fault tolerance method, device, computer storage medium, and electronic device
By adopting a spatial distance-based signature variable fault tolerance method in the rocket flight control software, the problem of signature variable anomalies caused by single particle flipping is solved and the robustness and reliability of the flight control software are improved.
Patent Information
- Application Number
- CN202010954778.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-11
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2040-09-11
AI Technical Summary
The flag variables in the rocket flight control software are stored in the form of 0/1 in the rocket's computer. Single-particle flipping may cause abnormalities in the flag variables. It is difficult to effectively solve this problem with existing technology.
A fault-tolerant method for sign variables based on spatial distance is adopted. By calculating the spatial distance of sign variables and determining their true or false values based on preset values and ranges, a multi-level fault-tolerant mechanism is designed to improve robustness.
This effectively improves the robustness of key variables of the flight control software to single-particle flips, ensuring that the flight control software can execute normally under abnormal conditions and reducing the risk of failure caused by single-particle flips.
Smart Images

Figure CN112148256B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to flight control technology, and in particular, to a flag variable fault tolerance method, device, computer storage medium, and electronic equipment. Background Art
[0002] As the most critical software of the rocket, the flight control software plays a decisive role in the success or failure of the flight test. The main tasks of the flight control software are variable definition, variable calculation, variable processing and variable output. The variables of the flight control software are mainly divided into data type and flag type. Among them, data type variables are mainly used to complete mathematical operations and have a short update cycle, and flag type variables are mainly used to control logical branches and have a long update cycle. Therefore, under the premise of limited cost, reliability design should focus on flag type variables.
[0003] Since the rocket's flight time is long and the flight distance is long, the electromagnetic environment in space is complex, and the flight control software flag variables are stored in the form of 0 / 1 in the onboard computer, single particle flips may cause flag variables to be abnormal.
[0004] Problems existing in the prior art:
[0005] A single event upset causes flag variables to become abnormal. Summary of the invention
[0006] The embodiments of the present application provide a flag variable fault tolerance method, device, computer storage medium, and electronic device to solve the above technical problems.
[0007] According to a first aspect of an embodiment of the present application, a flag variable fault tolerance method is provided, comprising the following steps:
[0008] Calculating the spatial distance of the marker class variables for a plurality of predefined marker class variables; each stage of the engine has a corresponding marker class variable associated with the working state of the flight equipment;
[0009] If the spatial distance of the flag class variable is less than or equal to a preset value, the flag class variable is determined to be a false value; otherwise, the flag class variable is determined to be a true value;
[0010] If the spatial distance of the flag variable is within a preset range, the flag variable is assigned a value according to the above determination result.
[0011] According to a second aspect of an embodiment of the present application, a flag variable fault tolerance device is provided, comprising:
[0012] A distance calculation module is used to calculate the spatial distance of the mark class variables for a plurality of predefined mark class variables; each stage of the engine has a corresponding mark class variable associated with the working state of the flight equipment;
[0013] A determination module, configured to determine that the flag class variable is a false value if the spatial distance of the flag class variable is less than or equal to a preset value; otherwise, determine that the flag class variable is a true value;
[0014] An assignment module is used to assign a value to the flag class variable according to the above determination result if the spatial distance of the flag class variable is within a preset range.
[0015] According to a third aspect of an embodiment of the present application, a computer storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the flag class variable fault tolerance method described above are implemented.
[0016] According to the fourth aspect of an embodiment of the present application, an electronic device is provided, comprising a memory and one or more processors, wherein the memory is used to store one or more programs; when the one or more programs are executed by the one or more processors, the flag class variable fault tolerance method as described above is implemented.
[0017] By adopting the fault-tolerant method, device, computer storage medium, and electronic device of the flag variables provided in the embodiments of the present application, a multi-level fault-tolerant design of key variables of the flight control software is proposed based on "spatial distance" and with "shortest guarantee" as the core, the spatial distance calculation method of the flag variables is clarified, and on this basis, the fault-tolerant design is carried out in combination with the minimum spatial distance theory, which effectively improves the robustness of the key variables of the flight control software to single particle flips. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0019] Figure 1 A schematic diagram of the process of implementing the flag variable fault tolerance method in the first embodiment of the present application is shown;
[0020] Figure 2 A schematic diagram of the setting process of a flag type variable in the first embodiment of the present application is shown;
[0021] Figure 3 A schematic diagram of the comparison process of flag class variables in the first embodiment of the present application is shown;
[0022] Figure 4 A schematic diagram of the structure of a flag variable fault tolerance device in Embodiment 2 of the present application is shown;
[0023] Figure 5 A schematic diagram of the structure of an electronic device in a fourth embodiment of the present application is shown;
[0024] Figure 6 A schematic diagram showing a typical working condition in Embodiment 5 of the present application is shown;
[0025] Figure 7 A schematic diagram of a traditional design process in the prior art is shown;
[0026] Figure 8 A schematic diagram of the improved design process in Example 5 of the present application is shown. DETAILED DESCRIPTION
[0027] In response to the technical problems of the prior art, the embodiments of the present application provide a fault-tolerant method and device for flag-type variables, a computer storage medium, and an electronic device. First, a method for defining flag-type variables is proposed, then a method for calculating the spatial distance of flag-type variables is clarified, and then a fault-tolerant method based on the minimum spatial distance theory is designed. Finally, a method for processing flag-type variables is standardized.
[0028] The solutions in the embodiments of the present application can be implemented using various computer languages, for example, the object-oriented programming language Java and the interpreted scripting language JavaScript.
[0029] In order to make the technical solutions and advantages in the embodiments of the present application more clearly understood, the exemplary embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than an exhaustive list of all the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.
[0030] Embodiment 1
[0031] Figure 1 A flow chart of the implementation of the flag variable fault tolerance method in the first embodiment of the present application is shown.
[0032] As shown in the figure, the flag variable fault tolerance method includes:
[0033] Step 101, calculating the spatial distance of the mark class variables for a plurality of predefined mark class variables; each stage of the engine has a corresponding mark class variable associated with the working state of the flight equipment;
[0034] Step 102: If the spatial distance of the flag class variable is less than or equal to a preset value, the flag class variable is determined to be a false value; otherwise, the flag class variable is determined to be a true value;
[0035] Step 103: If the spatial distance of the flag variable is within a preset range, assign a value to the flag variable according to the above determination result.
[0036] By adopting the fault-tolerant method of flag variables provided in the embodiments of the present application, a multi-level fault-tolerant design of key variables of the flight control software is proposed based on "spatial distance" and with "shortest guarantee" as the core, the spatial distance calculation method of flag variables is clarified, and on this basis, the fault-tolerant design is carried out in combination with the minimum spatial distance theory, which effectively improves the robustness of key variables of the flight control software to single-particle flips.
[0037] In one embodiment, the flag class variable is predefined as follows:
[0038] The data type is an integer occupying 1 byte;
[0039] It only has two possible values: true and false, and only changes from false to true.
[0040] True value is defined as 0x55, false value is defined as 0xAA;
[0041] The initial value is false.
[0042] In specific implementation, the definition method of the flag class variable is as follows:
[0043] 1) The data type of the flag class variable is an integer occupying 1 byte;
[0044] 2) A flag variable has only two possible values, true or false;
[0045] 3) Make full use of the storage space of the flag class variable, define the true value as "0xAA" and the false value as "0x55";
[0046] 4) All flag class variables are uniformly initialized to false values;
[0047] 5) The design of flag variables should follow the "one-way conversion" principle as much as possible, that is, to ensure that flag variables only change from false values to true values from the source of variable definition.
[0048] Among them, "0x55" can be stored in the Arrow computer in the form of "01010101"; "0xAA" can be stored in the Arrow computer in the form of "10101010".
[0049] In the specific implementation, assuming that the rocket has a three-stage engine, the embodiment of the present application uses three sets of flag-type variables to associate with its working status, while the prior art uses one set of flag-type variables to associate with its working status.
[0050] In one embodiment, the calculating of the spatial distance of the marker class variable includes:
[0051] compare the flag class variable bitwise with the false value of the flag class variable;
[0052] If the comparison bit is the same as the corresponding bit of the false value, the spatial distance remains unchanged;
[0053] If the comparison bit is different from the corresponding bit of the false value, the spatial distance is incremented by "1".
[0054] In specific implementation, the spatial distance calculation method of the flag class variable is as follows:
[0055] 1) The spatial distance of the marker variable whose spatial distance is to be calculated is initialized to 0;
[0056] 2) The flag class variable of the spatial distance to be calculated is compared bit by bit with the false value ("0x55");
[0057] 3) If the comparison bit is the same as the corresponding bit of the false value, the spatial distance remains unchanged; if the comparison bit is different from the corresponding bit of the false value, the spatial distance increases by "1".
[0058] Specifically, assuming that the flag class variable of the spatial distance to be calculated is "0x56", and its storage format in the computer is "01010110", then the spatial distance is 2 (the lowest and second lowest bits are different from the false value "0x55", and the other bits are the same as the false value ("0x55")).
[0059] In one implementation, if the spatial distance of the flag variable is within a preset range, assigning a value to the flag variable according to the above determination result includes:
[0060] If the spatial distance of the marker variable is within the preset range,
[0061] When it is determined that the flag class variable is a false value, assigning the value of the false value to the flag class variable;
[0062] When it is determined that the flag class variable is a true value, the numerical value of the true value is assigned to the flag class variable.
[0063] In the specific implementation, it is assumed that the flag class variable is any value in the spatial distance 0-8. If the spatial distance of the flag class variable is less than or equal to 4, the flag class variable is determined to be a false value; otherwise, the flag class variable is determined to be a true value.
[0064] If the preset spatial distance range is 1 to 7, if the spatial distance of the flag class variable is between 1 and 7, the flag class variable is assigned a value according to the above judgment result; if the spatial distance of the flag class variable is 0 or 8, the flag class variable is not assigned a value. For example: if the flag class variable to be judged is "0x56" and its spatial distance is 2, firstly, it is judged as a false value according to the spatial distance 2≤4, and secondly, since the spatial distance 2∈the preset range [1,7], the flag class variable is reset to "0x55".
[0065] Figure 2 A schematic diagram of the setting process of flag type variables in the first embodiment of the present application is shown.
[0066] As shown in the figure, in one embodiment, the method further comprises:
[0067] When the flag variable is a false value, determining whether the flag variable satisfies a preset setting condition;
[0068] When the setting condition is met, the identification class variable is set to a true value.
[0069] In the embodiment of the present application, the flag class variable before setting is first judged, and then the conversion condition of the pre-set flag class variable (which can be set differently according to different flag class variables) is judged, so as to ensure the validity of the flag class variable setting and avoid repeated judgment of the same flag class variable. Taking the flag class variable of whether the engine is shut down as an example, first judge whether the flag is true or false. Here, it is assumed that the flag is false, and then judge whether the engine is really shut down according to the conditions related to engine shutdown.
[0070] In one implementation, the flag variable is 1 to n, and the setting determination process is specifically as follows:
[0071] When both flag class variable 1 and flag class variable 2 are false values, flag class variable 1 is set to true value, and flag class variables 2 to flag class variables n are set to false values;
[0072] Search for the i-th flag class variable corresponding to the flag class variable i being true and the flag class variable i+1 being false;
[0073] When the flag class variable i+1 meets the preset setting condition, the flag class variable i+1 is set to a true value, and the flag class variables i+2 to the flag class variables n are set to false values.
[0074] Figure 3 A schematic diagram of the comparison process of flag type variables in the first embodiment of the present application is shown.
[0075] As shown in the figure, in one embodiment, the method further comprises:
[0076] When the flag variable is a true value, the preset logic corresponding to the true value is executed;
[0077] When the flag type variable is not a true value, the preset logic corresponding to the false value is executed.
[0078] During specific implementation, the preset logic may be set differently according to flag class variables.
[0079] In the embodiment of the present application, the flag class variable is only judged to be consistent with the true value to ensure that the calculation process can continue to be executed in abnormal situations (for example, the flag class variable is neither true nor false). Continuing with the above example of whether the engine is shut down, when the flag class variable of whether the engine is shut down is true, the processing step of shutting down the engine is executed, and when the flag class variable of whether the engine is shut down is false, the processing step of not shutting down the engine is executed.
[0080] Embodiment 2
[0081] Based on the same inventive concept, an embodiment of the present application provides a flag type variable fault tolerance device, the principle of which is similar to a flag type variable fault tolerance method for solving technical problems, and the repeated parts will not be repeated.
[0082] Figure 4 A schematic diagram of the structure of a flag variable fault-tolerant device in Embodiment 2 of the present application is shown.
[0083] As shown in the figure, the flag variable fault tolerance device includes:
[0084] The distance calculation module 401 is used to calculate the spatial distance of the mark class variables for the predefined multiple mark class variables; each stage of the engine has a corresponding mark class variable associated with the working state of the flight equipment;
[0085] A determination module 402 is used to determine that the flag class variable is a false value if the spatial distance of the flag class variable is less than or equal to a preset value; otherwise, determine that the flag class variable is a true value;
[0086] The value assignment module 403 is used to assign a value to the flag variable according to the above determination result if the spatial distance of the flag variable is within a preset range.
[0087] By adopting the flag variable fault-tolerant device provided in the embodiment of the present application, a multi-level fault-tolerant design for key variables of the flight control software is proposed based on "spatial distance" and with "shortest guarantee" as the core, the spatial distance calculation method of flag variables is clarified, and on this basis, the minimum spatial distance theory is combined to carry out fault-tolerant design, which effectively improves the robustness of key variables of the flight control software to single-particle flips.
[0088] In one embodiment, the flag class variable is predefined as follows:
[0089] The data type is an integer occupying 1 byte;
[0090] It only has two possible values: true and false, and only changes from false to true.
[0091] True value is defined as 0x55, false value is defined as 0xAA;
[0092] The initial value is false.
[0093] In one implementation, the distance calculation module includes:
[0094] A comparison unit, used to compare the flag class variable with the false value of the flag class variable bit by bit;
[0095] A first processing unit, configured to keep the spatial distance unchanged if the compared bit is the same as the corresponding bit of the false value;
[0096] The second processing unit is used to increase the spatial distance by "1" if the compared bit is different from the corresponding bit of the false value.
[0097] In one implementation, the assignment module includes:
[0098] A first assignment unit, configured to assign a value of the false value to the flag class variable if the spatial distance of the flag class variable is within a preset range and when the flag class variable is determined to be a false value;
[0099] The second assignment unit is used to assign the value of the true value to the flag class variable if the spatial distance of the flag class variable is within a preset range and when the flag class variable is determined to be a true value.
[0100] In one embodiment, the device further comprises:
[0101] The setting module is used to determine whether the flag type variable meets a preset setting condition when the flag type variable is a false value; when the setting condition is met, the flag type variable is set to a true value.
[0102] In one implementation, the flag variable is 1 to n, and the setting module is specifically used to perform the following setting judgment process:
[0103] When both flag class variable 1 and flag class variable 2 are false values, flag class variable 1 is set to true value, and flag class variables 2 to flag class variables n are set to false values;
[0104] Search for the i-th flag class variable corresponding to the flag class variable i being true and the flag class variable i+1 being false;
[0105] When the flag class variable i+1 meets the preset setting condition, the flag class variable i+1 is set to a true value, and the flag class variables i+2 to the flag class variables n are set to false values.
[0106] In one embodiment, the device further comprises:
[0107] The execution module is used to execute the preset logic corresponding to the true value when the flag type variable is a true value; and to execute the preset logic corresponding to the false value when the flag type variable is a non-true value.
[0108] Embodiment 3
[0109] Based on the same inventive concept, an embodiment of the present application also provides a computer storage medium, which is described below.
[0110] The computer storage medium stores a computer program thereon, and when the computer program is executed by the processor, the steps of the flag variable fault tolerance method described in the first embodiment are implemented.
[0111] By adopting the computer storage medium provided in the embodiment of the present application, a multi-level fault-tolerant design of key variables of the flight control software is proposed based on "spatial distance" and with "shortest guarantee" as the core, the spatial distance calculation method of flag variables is clarified, and on this basis, the minimum spatial distance theory is combined to carry out fault-tolerant design, which effectively improves the robustness of key variables of the flight control software to single particle flips.
[0112] Embodiment 4
[0113] Based on the same inventive concept, an embodiment of the present application also provides an electronic device, which is described below.
[0114] Figure 5 A schematic diagram of the structure of an electronic device in a fourth embodiment of the present application is shown.
[0115] As shown in the figure, the electronic device includes a memory 501 and one or more processors 502, wherein the memory is used to store one or more programs; when the one or more programs are executed by the one or more processors, the flag variable fault tolerance method as described in Example 1 is implemented.
[0116] By adopting the electronic equipment provided in the embodiment of the present application, a multi-level fault-tolerant design of key variables of the flight control software is proposed based on "spatial distance" and with "shortest guarantee" as the core, the spatial distance calculation method of flag variables is clarified, and on this basis, the minimum spatial distance theory is combined with the fault-tolerant design to effectively improve the robustness of the key variables of the flight control software to single-particle flips.
[0117] Embodiment 5
[0118] In order to facilitate the implementation of the present application, the embodiment of the present application is described with a specific example.
[0119] The embodiment of the present application selects typical operating conditions of flight control software, analyzes the defects of traditional design methods, and specifically proposes a fault-tolerant design method based on "time-sharing guarantee + backward pre-setting". Among them, the core idea of "time-sharing guarantee" is to convert a single-variable, long-term usage mode into a multi-variable, short-term usage mode, thereby greatly reducing the probability of abnormalities in flag-type variables; the core idea of "backward pre-setting" is to separate the logic of the flight control software from the completed timing actions, and repeatedly initialize the unexecuted timing actions, thereby greatly reducing the impact of abnormalities in flag-type variables.
[0120] Figure 6 A schematic diagram of a typical working condition in Example 5 of the present application is shown.
[0121] As shown in the figure, in order to improve the accuracy of orbital insertion, a total of 7 different guidance laws are designed from the ignition time of the X-level engine to the exhaustion time of the X-level engine.
[0122] Figure 7 A schematic diagram of a traditional design process in the prior art is shown.
[0123] As shown in the figure, although the traditional design idea meets the design constraints, it has the following potential problems:
[0124] 1) There is only one variable used to call the guidance law, and it takes a long time to work reliably;
[0125] 2) The theoretical value of this variable is 1-7. If the variable is not between 1-7 due to a single particle upset, the above design ideas will not be able to adapt and the flight control software will be at risk of failure.
[0126] In view of the above-identified fault mode, the embodiment of the present application proposes a design concept of "time-sharing protection + backward pre-setting".
[0127] Figure 8 A schematic diagram of the improved design process in Example 5 of the present application is shown.
[0128] As shown in the figure, steps 1, 2, 4 and 7 are "time-sharing protection", which are used to shorten the effective working time of the variable and reduce the probability of single-particle upset; steps 3 and 6 are "backward preset", which are used to reset the initial value of subsequent timing actions and reduce the impact of single-particle upset.
[0129] Combined with the application scenario of single event upset, Figure 7 Design ideas and Figure 8 The design ideas are analyzed as follows:
[0130] 1) If using Figure 7 According to the design idea shown, if a single particle upset occurs in a data variable, the flight control software will fail directly;
[0131] 2) If using Figure 8 The design ideas shown in the figure are combined with Figure 1 The relevant content shows that the flag variable has a single-particle upset, and the flight control software can be executed normally:
[0132] a) If the current guidance law is in stage i, and the single-particle upset occurs in variable i or variable i+1, the flight control software can identify and perform fault tolerance according to the principle of "minimum distance";
[0133] b) If the current guidance law is in the i-th stage, and the single-particle flip occurs in neither variable i nor variable i+1, the flight control software can identify and perform fault-tolerant processing based on the principle of "backward presetting".
[0134] The embodiment of the present application designs a "basic unit" and designs a "processing logic" in combination with the "basic unit". Specifically,
[0135] As the "basic unit" of the embodiment of the present application, the definition method of the flag class variables is first proposed, then the spatial distance calculation method of the flag class variables is clarified, and then the fault tolerance method based on the minimum spatial distance theory is designed. Finally, the processing method of the flag class variables (including the setting method and the comparison method) is standardized, which effectively improves the robustness of the key variables of the flight control software to single particle upsets;
[0136] As the "processing logic" of the embodiment of the present application, a fault-tolerant design method based on "time-sharing guarantee + backward pre-setting" is clarified. Compared with the traditional design method, this method effectively reduces the probability of single-particle flips and reduces the impact of single-particle flips, and effectively improves the robustness of key variables of the flight control software to single-particle flips.
[0137] The solution provided in the embodiment of the present application can adapt to the fault-tolerant design of flag-type variables of various types of flight control software, has the characteristics of universality, and can be promoted for use.
[0138] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0139] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0140] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0141] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0142] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.
[0143] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A fault-tolerant method for flag variables, It is characterized in that include: Calculating the spatial distance of the marker class variables for a plurality of predefined marker class variables; Each stage of the engine has a corresponding flag variable associated with the working status of the flight equipment; If the spatial distance of the flag class variable is less than or equal to a preset value, the flag class variable is determined to be a false value; otherwise, the flag class variable is determined to be a true value; If the spatial distance of the flag variable is within the preset range, assign a value to the flag variable according to the above determination result; The flag class variables are predefined as follows: The data type is an integer occupying 1 byte; It only has two possible values: true and false, and only changes from false to true. True value is defined as 0x55, false value is defined as 0xAA; The initial value is false; Calculating the spatial distance of the marker class variable includes: compares the flag class variable bitwise with the false value of the flag class variable; If the comparison bit is the same as the corresponding bit of the false value, the spatial distance remains unchanged; If the comparison bit is different from the corresponding bit of the false value, the spatial distance is incremented by "1".
2. The method according to claim 1, It is characterized in that If the spatial distance of the flag class variable is within a preset range, assigning a value to the flag class variable according to the above determination result includes: If the spatial distance of the marker variable is within the preset range, When it is determined that the flag class variable is a false value, assigning the value of the false value to the flag class variable; When it is determined that the flag class variable is a true value, the numerical value of the true value is assigned to the flag class variable.
3. The method according to claim 1, It is characterized in that Further including: When the flag variable is a false value, determining whether the flag variable satisfies a preset setting condition; When the setting condition is met, the flag class variable is set to a true value.
4. The method according to claim 3, It is characterized in that The flag type variable is 1 to n, and the setting judgment process is specifically as follows: When both flag class variable 1 and flag class variable 2 are false values, flag class variable 1 is set to true value, and flag class variables 2 to flag class variables n are set to false values; Search for the i-th flag class variable corresponding to the flag class variable i being true and the flag class variable i+1 being false; When the flag class variable i+1 meets the preset setting condition, the flag class variable i+1 is set to a true value, and the flag class variables i+2 to the flag class variables n are set to false values.
5. The method according to claim 1, It is characterized in that Further including: When the flag variable is a true value, the preset logic corresponding to the true value is executed; When the flag type variable is not a true value, the preset logic corresponding to the false value is executed.
6. A computer storage medium, It is characterized in that A computer program is stored thereon, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
7. An electronic device, It is characterized in that It comprises a memory and one or more processors, wherein the memory is used to store one or more programs; when the one or more programs are executed by the one or more processors, the method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Data-driven anomaly detection to anticipate flight deck effects
US20090216393A1
High Reliability Processor System
US20120265973A1
Fault-tolerant variable region repaving during firmware over the air update
US20180004505A1
Method and device for association of fuzzy data of multiple targets in video
WO2018227491A1
