A method, system, device and product for processing data of heading information
Through the limit processing and conversion of the ship's heading and attitude information, the problem of angle conversion from 360°/r to 60°/r is solved, the rapid output and accuracy of the heading and attitude information is achieved, and the user's needs for monitoring the ship's navigation status are met. Real-time needs.
Patent Information
- Application Number
- CN202410980521.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-07-22
AI Technical Summary
Existing technology cannot quickly convert a pitch and roll angle of 360°/r into angle information of 60°/r, making it difficult to meet users' needs for real-time monitoring of ship navigation status.
Provide a method for processing heading and attitude information data. By receiving and checking the heading and attitude information from the sensor information source, selecting reasonable data, performing limit processing and conversion of pitch angle and roll angle, and converting it into a binary value of 60°/r. Digital quantity, and convert heading angle into binary digital quantity and analog quantity to achieve fast output.
It ensures the accuracy and real-time performance of the heading and attitude information, meets the user's rapid conversion needs for pitch angle, roll angle and heading angle, and provides dual-channel output of 360°/r and 60°/r to meet the user's needs. Require.
Smart Images

Figure CN118518066B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of ship system data processing, and in particular to a method, system, equipment and product for processing navigation attitude information data. Background Art
[0002] As the main tool at sea, ships sailing on the sea will generate multiple status data such as linear acceleration, roll, pitch, etc. that affect the ship's motion state. The abnormality of the ship's status data has an important impact on the stability and safety of the ship. Therefore, it is of great significance to monitor the ship's motion state in real time and predict the ship's motion behavior. With the continuous advancement of ship intelligence, the demand for real-time monitoring and prediction of the ship's navigation status is becoming more and more urgent. At present, the real-time monitoring of the ship's navigation status is mainly through the attitude information data, which includes the heading angle, pitch angle and roll angle, which can well reflect the ship's motion state.
[0003] 360° / r means that the theoretical angle represented by one rotation of the mechanical angle is 360°, and 60° / r means that the theoretical angle represented by one rotation of the mechanical angle is 60°. The pitch and roll angle data sent by the sensor information source are not limited when they are sent; the pitch and roll angle information of the 19-bit binary digital quantity bound by the information sending device computer is limited to the range of [-30°, 30°] when it is bound. If the bound value is not in the range of [-30°, 30°], it will prompt "Binding value is out of range, please bind again". Only when the pitch and roll angles in the range of [-30°, 30°] are bound, can the binding be successful. Some interface users require 60° / r pitch and roll angle analog information to realize their functions. At the same time, in order to prevent the use of out-of-range angles from causing damage to users, the pitch and roll angle range is required to be [-30°, 30°]. However, the pitch angle and roll angle data of computer binding and sensor information sources are all 360° / r information, which cannot be quickly converted into 60° / r information, and it is difficult to meet the user's requirements. Summary of the invention
[0004] The present invention aims to solve the problem that the pitch and roll angles of 360° / r cannot be converted into angle information of 60° / r, and it is difficult to output the navigation attitude information that meets the requirements. To this end, the present invention provides a navigation attitude information data processing method, system, device and product, which can select the information source of the navigation attitude information data, and process and convert the pitch and roll angle data in real time, so as to realize the rapid output of the navigation attitude information data and meet the needs of users.
[0005] The present invention provides a method for processing data of heading information, and the technical solution adopted is as follows:
[0006] Receiving heading attitude information from multiple sets of sensor information sources and heading attitude information bound by a computer, wherein the heading attitude information includes a pitch angle, a roll angle and a heading angle;
[0007] Checking the heading attitude information of the sensor information source, and deleting the heading attitude information of the sensor information source that fails the check;
[0008] Select one of the heading attitude information bound by the computer and the heading attitude information of the sensor information source that has passed the inspection as the heading attitude information to be output;
[0009] Converting the pitch angle and the roll angle of the heading attitude information to be output into a binary digital value of 60° / r, and converting the heading angle of the heading attitude information to be output into a binary digital value to obtain a binary digital value of the heading attitude information to be output;
[0010] The binary digital quantity of the heading attitude information to be output is converted into an analog quantity and then outputted.
[0011] Further, the inspection includes a rationality inspection and a heading angle integrity inspection;
[0012] The rationality check is as follows: the reasonable range of heading angle is [0°, 360°), and the reasonable range of pitch angle and roll angle is [-30°, 30°];
[0013] The process of heading angle integrity check is as follows: record Continuous heading angle data ,in, Indicates sampling moments;
[0014] right Data at the moment Perform anomaly checks and calculate Heading angle difference at moment ,like , express Time threshold, then determine is valid data, the heading angle passes the heading angle integrity check; otherwise, For abnormal data, carry out abnormal data supplementation processing; The calculation formula is:
[0015]
[0016] The number of valid data stored before the abnormal data is n, 0≤n≤m, and the process of abnormal data supplementation is as follows:
[0017] When n≤1, abnormal data cannot be supplemented;
[0018] When n=2, The two valid data stored before the abnormal data at the time are , , calculated ,but The time replenishment value is , using the supplementary value Continue Abnormal data at time If the data at that moment is still abnormal data, no abnormal data supplementation will be performed;
[0019] 3≤n≤m, according to the stored n data before the moment , find the fitting function , so that it satisfies:
[0020]
[0021] According to the conditions for finding the extreme value of the function, by finding the partial derivative, we can find the function In and , and is a constant;
[0022] pass Calculated ,but The supplementary value of the moment is:
[0023]
[0024] Using the replenishment value Continue Abnormal data at the moment,
[0025] If the data at the next moment is still abnormal data, then continue to extrapolate and supplement. The maximum number of abnormal data supplemented once is m / 2.
[0026] Perform boundary value processing on the supplementary value:
[0027] .
[0028] Furthermore, according to the remote control instruction or the local control instruction, one path is selected from the heading attitude information bound by the computer and the heading attitude information of the sensor information source that has passed the inspection as the heading attitude information to be output, and the priority of the local control instruction is higher than that of the remote control instruction.
[0029] Further, the pitch angle and the roll angle of the heading attitude information to be outputted of 360° / r are subjected to limit processing and then converted into a binary digital value of 60° / r; the process of the limit processing is: (30°, 180°] is processed as 30°, (180°, 330°) is processed as 330°, and 330° corresponds to -30° of 60° / r.
[0030] Furthermore, the pitch angle and roll angle of the heading attitude information to be output are 360° / r angle values, and the process of converting them into 19-bit binary digital values of 60° / r is as follows:
[0031] judge Whether it meets 0°≤ ≤30°, if yes, = If not, = -300°, Represents the angle value of 360° / r, Indicates the angle value of 60° / r;
[0032] The corresponding relationship between the angle value of 60° / r and the 19-bit binary digital value is:
[0033]
[0034] in, Indicates 60° / r The value of the binary digit is arranged from high to low. , , …, , Indicates 60° / r The angle weights of the 19-bit binary digital quantity of 60° / r are 30°, 15°, ... (60° / 2 19 );
[0035] and Compare, judge - Is it equal to 0? If so, then =1, ~ If both are equal to 0, the conversion ends; if not, judge - Is it greater than 0? If so, =1, = - , if not, then =0, = ;
[0036] and Compare, judge - Is it equal to 0? If so, then =1, ~ If both are equal to 0, the conversion ends; if not, judge - Is it greater than 0? If so, =1, = - If not, then =0, = ;
[0037] According to the comparison process, proceed in sequence , , …, until the conversion is completed or determined ~ The value of .
[0038] Furthermore, the heading angle of the heading attitude information to be outputted of 360° / r is converted into a 19-bit binary digital value of 360° / r.
[0039] Further, the 19-bit binary digital quantity of 360° / r is converted into a 14-bit binary digital quantity of 360° / r of the coarse channel and a 14-bit binary digital quantity of 10° / r of the fine channel;
[0040] The process of converting the 19-bit binary digital quantity of 360° / r into the 14-bit binary digital quantity of 360° / r of the coarse channel is as follows: taking the high 14 bits of the 19-bit binary digital quantity of 360° / r as the 14-bit binary digital quantity of 360° / r of the coarse channel;
[0041] The process of converting the 19-bit binary digital quantity of 360° / r into the 14-bit binary digital quantity of 10° / r of the precision channel is as follows:
[0042] Calculate the angle value represented by the 19-bit binary value of 360° / r ;
[0043] judge Is it satisfied? ≥100°, if yes, then = -100°, continue judging Is it satisfied? ≥100°; if not, judge Is it satisfied? ≥10°, if yes, then = -10°, continue to judge Is it satisfied? ≥10°; if not, = , Indicates the angle value of 10° / r;
[0044] The corresponding relationship between the angle value of 10° / r and the 14-bit binary digital value is:
[0045]
[0046] in, Indicates 10° / r The value of the 14-bit binary digital quantity of 10° / r is arranged from high to low , , …, , Indicates 10° / r The angle weights of the 14-bit binary digital quantity of 10° / r are 5°, 2.5°, ..., (10° / 2 14 ), the weight of the low angle is 1 / 2 of the weight of the previous high angle.
[0047] and Compare, judge - Is it equal to 0? If so, then =1, ~ If both are equal to 0, the conversion ends; if not, judge - Is it greater than 0? If so, =1, = - , if not, then =0, = ;
[0048] and Compare, judge - Is it equal to 0? If so, then =1, ~ If both are equal to 0, the conversion ends; if not, judge - Is it greater than 0? If so, =1, = - If not, then =0, = ;
[0049] According to the comparison process, proceed in sequence , , …, until the conversion is completed or determined The value of .
[0050] The present invention also provides a data processing system for attitude information, which adopts the following technical solution: comprising: a data receiving module, a data checking module, an information source selection module, a digital quantity conversion module and an analog quantity conversion module, wherein the data receiving module, the information source selection module, the digital quantity conversion module and the analog quantity conversion module are connected in sequence, and the data checking module is connected to the data receiving module and the information source selection module respectively;
[0051] The data receiving module is used to receive the heading attitude information of multiple sets of sensor information sources and the heading attitude information bound by the computer, wherein the heading attitude information includes the pitch angle, the roll angle and the heading angle;
[0052] The data checking module is used to check the heading attitude information of the sensor information source and delete the heading attitude information of the sensor information source that fails the check;
[0053] The information source selection module is used to select one path from the heading attitude information bound by the computer and the heading attitude information of the sensor information source that has passed the inspection as the heading attitude information to be output;
[0054] The digital quantity conversion module is used to convert the pitch angle and roll angle of the heading attitude information to be output into a binary digital quantity of 60° / r, and convert the heading angle of the heading attitude information to be output into a binary digital quantity to obtain the binary digital quantity of the heading attitude information to be output;
[0055] The analog quantity conversion module is used to convert the binary digital quantity of the heading attitude information to be output into an analog quantity and then output it.
[0056] The present invention also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the above-mentioned data processing method for heading information when executing the computer program.
[0057] The present invention also provides a computer program product, including a computer program, which implements the above-mentioned data processing method for heading information when executed by a processor.
[0058] The above one or more technical solutions in the embodiments of the present invention have at least one of the following technical effects:
[0059] 1. The present invention performs a rationality check and a heading angle integrity check on the heading attitude information sent by the sensor information source, thereby ensuring the accuracy of the heading attitude information. The present invention receives heading attitude information from multiple sets of sensor information sources and selects one for use, thereby ensuring the continuity of information. The purpose of receiving the heading attitude information bound by the computer is to check the correctness of the reception and transmission of the device and the interface user when there is no information source in use.
[0060] 2. The present invention designs an angle conversion processing logic that meets the requirements of real-time processing, and can limit the angle values of the pitch angle and the roll angle of 360° / r, and convert them into 19-bit binary digital quantities of 60° / r, with a fast conversion speed. At the same time, the present invention uses similar angle conversion processing logic to realize the coarse and fine dual-channel conversion of the heading angle, and converts the 19-bit binary digital quantity of the heading angle of 360° / r into a 14-bit binary digital quantity of the coarse channel 360° / r and a 14-bit binary digital quantity of the fine channel 10° / r in real time and quickly. Finally, the binary digital quantity is converted into an analog quantity and sent to the user to meet the user's needs.
[0061] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0063] Figure 1 It is a flow chart of the method provided by the present invention.
[0064] Figure 2 It is a processing logic diagram for converting the angle value of 360° / r provided by the present invention into a 19-bit binary digital value of 60° / r.
[0065] Figure 3 It is a system structure block diagram provided by the present invention.
[0066] Reference numerals:
[0067] 1. Data receiving module; 2. Data checking module; 3. Information source selection module; 4. Digital quantity conversion module; 5. Analog quantity conversion module. DETAILED DESCRIPTION
[0068] In order to make the purpose, technical scheme and advantages of the present invention clearer, the technical scheme of the present invention will be clearly and completely described below in conjunction with the drawings in the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present invention. The following embodiments are used to illustrate the present invention, but cannot be used to limit the scope of the present invention.
[0069] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the embodiment of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0070] Combine the following Figures 1 to 3 The present invention is further described in detail, and a method, system, device and product for processing data of attitude information of the present invention are described as follows:
[0071] In this embodiment, Figure 1 As shown, a method for processing data of heading information is provided, comprising the following steps:
[0072] Step 1: receiving in real time the heading attitude information of multiple sets of sensor information sources and the heading attitude information bound by the computer, wherein the heading attitude information includes the pitch angle, the roll angle and the heading angle.
[0073] In this embodiment, two sets of heading attitude information from sensor information sources and one set of heading attitude information bound by a computer are received. The two sets of sensor information sources are sensor information source A and sensor information source B respectively.
[0074] In step 1, the received pitch angle, roll angle and heading angle are all 19-bit binary digital quantities of 360° / r, which need to be converted into angle values of 360° / r. The corresponding relationship between the angle value of 360° / r and the 19-bit binary digital quantity is:
[0075]
[0076] in, Represents the angle value of 360° / r, Indicates 360° / r The value of the 19-bit binary digital quantity of 360° / r is arranged from high to low. , , …, , Indicates 360° / r The angle weights of the 19-bit binary digital quantity of 360° / r are 180°, 90°, ..., (360° / 2 19 ), the weight of the low angle is 1 / 2 of the weight of the previous high angle.
[0077] Step 2: Check the heading and attitude information of the sensor information source, and delete the heading and attitude information of the sensor information source that fails the check.
[0078] The checks include a rationality check and a heading angle integrity check.
[0079] (1) The pitch angle, roll angle and heading angle all need to be checked for rationality, specifically:
[0080] The reasonable range of the heading angle is [0°, 360°). If it exceeds this range, the heading information is considered invalid. At the same time, the boundary value 360° should be processed as 0°.
[0081] The reasonable range of 60° / r for pitch angle and roll angle is [-30°, 30°]. If it exceeds this range, the attitude information is considered invalid.
[0082] If the heading attitude information is invalid, it will be deleted.
[0083] (2) Only the heading angle needs to be checked for integrity. The heading angle information integrity check analyzes the real-time trend characteristics of the heading angle and uses a fitting function to approximate the discrete data trend of its information or information change rate in the recent period. When the current data is abnormal by making a difference between the data at the previous and next sampling moments, the fitting function is used for prediction recursion. The maximum prediction recursion time does not exceed half of the source information time of the fitting function. The specific process is as follows:
[0084] a) Recording data
[0085] Record the last received Continuous data ,in, Indicates Sampling time. In this embodiment, is 6.
[0086] b) Data anomaly check
[0087] right Data updated all the time Perform anomaly checks and calculate Heading angle difference at moment ,like , express Time threshold, then determine The heading angle is set as valid data and passes the heading angle integrity check. Return to step a) to cyclically update the stored data, and continuously check the heading angle integrity. Otherwise, For abnormal data, it is necessary to perform abnormal data supplementation processing through prediction and extrapolation, and enter step c). In this embodiment, .
[0088] When the heading angle is different, it needs to be processed through 360°. The calculation formula is:
[0089]
[0090] c) Abnormal data supplement
[0091] Assume that the number of valid data stored before the abnormal data is n (0≤n≤m). If a continuous supplement process is performed once, the currently stored maximum number of data is cleared. data, and re-store valid data, storing up to The process of abnormal data supplementation is as follows:
[0092] 1. Case n≤1
[0093] When n≤1, the abnormal data cannot be supplemented and the currently stored data is cleared. data, and restart step a).
[0094] 2. Case n=2
[0095] When n=2, let The two valid data stored before the abnormal data at the time are , , calculated ,but The time replenishment value is , using the supplementary value Continue Abnormal data at time If the data at that moment is still abnormal data, no abnormal data supplementation will be performed and the currently stored data, and restart step a).
[0096] 3. Case 3≤n≤m
[0097] 3≤n≤m, according to the stored n data before the moment , the maximum number of calculated results is n-1, and the minimum number is 2 , find the fitting function , so that it satisfies:
[0098]
[0099] According to the conditions for finding the extreme value of the function, by finding the partial derivative, we can find the function In and , and is a constant;
[0100] That is data The fitting function of .
[0101] pass Calculated ,but The supplementary value of the moment is:
[0102]
[0103] Using the replenishment value Continue Abnormal data at the moment,
[0104] If the data at the next moment is still abnormal data, continue to extrapolate and supplement. The abnormal data can be supplemented for a maximum of m / 2 data at a time. When the supplement time exceeds, clear the current stored data and restart step a). If the data at the next moment is normal, clear the stored data and re-store new valid data, and continue to execute steps b) to c).
[0105] Note that the supplementary value needs to be processed at the boundary value to prevent the extrapolated supplementary information from exceeding the boundary. The processing is as follows:
[0106] .
[0107] The heading attitude information bound by the computer will be subject to corresponding restrictions and checks when it is bound, so there is no need to perform rationality checks and heading angle integrity checks.
[0108] Step 3: Select one path from the heading attitude information bound by the computer and the heading attitude information of the sensor information source that has passed the inspection as the heading attitude information to be output. Select one path from the heading attitude information bound by the computer and the heading attitude information of the sensor information source that has passed the inspection as the heading attitude information to be output according to the remote control instruction or the local control instruction, and the priority of the local control instruction is higher than that of the remote control instruction.
[0109] Under the control of the remote control command or the local control command, one set of heading attitude information bound by the sensor information source A, the sensor information source B and the computer is selected as the heading attitude information to be output.
[0110] Remote control: Receive remote control instructions through Ethernet and select and control sensor information source A, sensor information source B and computer binding. When multiple remote control devices are set, the priority order of each remote control device is equal, and the selection control stays at the last received remote control instruction.
[0111] Local control: By receiving physical key information, select automatic, sensor information source A, sensor information source B and computer binding according to the physical key. In order to ensure the reliability of physical key response, the host and the receiving key module adopt a key response mechanism; local control has a higher priority than remote control. In the case of no remote or key control, sensor information source A and sensor information source B are determined to be valid and selected according to the priority order of automatic selection: the priority order can be sensor information source A>sensor information source B.
[0112] Step 4: Convert the pitch angle and roll angle of the heading attitude information to be output into a binary digital value of 60° / r, and convert the heading angle of the heading attitude information to be output into a binary digital value to obtain the binary digital value of the heading attitude information to be output.
[0113] The range of pitch and roll angles is [-30°, 30°]. The binary angle corresponding to 360° / r is divided into two ranges: [-30°, 0°) corresponds to [330°, 360°), and [0°, 30°] corresponds to [0°, 30°]. The binary angle corresponding to 60° / r is also divided into two ranges: [-30°, 0°) corresponds to [30°, 60°), and [0°, 30°] corresponds to [0°, 30°].
[0114] This step requires converting the pitch and roll angles of 360° / r into 19-bit binary digital quantities of 60° / r. The 19-bit binary digital quantities are dynamic data, which come from the pitch and roll angles of the sensor information source or the computer binding data. If there is a transmission abnormality or a limit abnormality that causes the angle value to exceed the range of [-30°, 30°], it is necessary to perform limit processing, and the out-of-range value is processed as the boundary value. After the pitch and roll angles of the 360° / r heading attitude information to be output are limited, they are converted into 19-bit binary digital quantities of 60° / r; the process of limit processing is: (30°, 180°] is processed as 30°, and (180°, 330°) is processed as 330°.
[0115] like Figure 2 As shown, the pitch angle and roll angle of the heading attitude information to be output are 360° / r angle values, and the process of converting them into 19-bit binary digital values of 60° / r is as follows:
[0116] First, limit A: (30°, 180°] is processed as 30°, (180°, 330°) is processed as 330°, Indicates the angle value of 360° / r.
[0117] Secondly, convert the angle value of 360° / r to the angle value of 60° / r: Whether it meets 0°≤ ≤30°, if yes, = If not, = -300°, Indicates the angle value of 60° / r.
[0118] Again, the corresponding relationship between the angle value of 60° / r and the 19-bit binary digital value is defined as:
[0119]
[0120] in, Indicates 60° / r The value of the binary digit is arranged from high to low. , , …, , Indicates 60° / r The angle weights of the 19-bit binary digital quantity of 60° / r are 30°, 15°, ... (60° / 2 19 ), the weight of the low angle is 1 / 2 of the weight of the previous high angle.
[0121] Finally, calculate the 19-bit binary number: and Compare, judge - Is it equal to 0? If so, then =1, ~ If both are equal to 0, the conversion ends; if not, judge - Is it greater than 0? If so, =1, = - , if not, then =0, = ;
[0122] and Compare, judge - Is it equal to 0? If so, then =1, ~ If both are equal to 0, the conversion ends; if not, judge - Is it greater than 0? If so, =1, = - If not, then =0, = ;
[0123] According to the comparison process, proceed in sequence , , …, until the conversion is completed or determined ~ The value of .
[0124] Conventionally, the heading angle of the heading attitude information to be output needs to be converted into a 19-bit binary digital value of 360° / r. The heading angle is an angle value of 360° / r, and the conversion is performed using the corresponding relationship between the angle value of 360° / r and the 19-bit binary digital value.
[0125] According to user needs, it is sometimes necessary to output the coarse and fine dual-channel analog information of the heading angle. Therefore, it is necessary to first convert the 19-bit binary digital quantity of the heading angle of 360° / r into a 14-bit binary digital quantity of the coarse channel 360° / r and a 14-bit binary digital quantity of the fine channel 10° / r.
[0126] The process of converting the 19-bit binary digital quantity of 360° / r into the 14-bit binary digital quantity of 360° / r of the coarse channel is as follows: taking the high 14 bits of the 19-bit binary digital quantity of 360° / r as the 14-bit binary digital quantity of 360° / r of the coarse channel.
[0127] The process of converting the 19-bit binary digital quantity of 360° / r into the 14-bit binary digital quantity of 10° / r of the precision channel is as follows:
[0128] Calculate the angle value represented by the 19-bit binary value of 360° / r .
[0129] judge Is it satisfied? ≥100°, if yes, then = -100°, continue judging Is it satisfied? ≥100°; if not, judge Is it satisfied? ≥10°, if yes, then = -10°, continue to judge Is it satisfied? ≥10°; if not, = , Indicates the angle value of 10° / r.
[0130] The corresponding relationship between the angle value of 10° / r and the 14-bit binary digital value is:
[0131]
[0132] in, Indicates 10° / r The value of the 14-bit binary digital quantity of 10° / r is arranged from high to low , , …, , Indicates 10° / r The angle weights of the 14-bit binary digital quantity of 10° / r are 5°, 2.5°, ..., (10° / 2 14 ), the weight of the low angle is 1 / 2 of the weight of the previous high angle.
[0133] and Compare, judge - Is it equal to 0? If so, then =1, ~ If both are equal to 0, the conversion ends; if not, judge - Is it greater than 0? If so, =1, = - , if not, then =0, = ;
[0134] and Compare, judge - Is it equal to 0? If so, then =1, ~ If both are equal to 0, the conversion ends; if not, judge - Is it greater than 0? If so, =1, = - If not, then =0, = ;
[0135] According to the comparison process, proceed in sequence , , …, until the conversion is completed or determined The value of .
[0136] According to user needs, it may also be necessary to convert the 19-bit binary digital quantity of 60° / r of the pitch angle and roll angle into the 14-bit binary digital quantity of 60° / r of the coarse channel, and take the high 14 bits of the 19-bit binary digital quantity of 60° / r.
[0137] After the pitch angle, roll angle and heading angle of the heading attitude information to be output are converted into binary digital quantities, the binary digital quantity of the heading attitude information to be output is obtained.
[0138] Step 5: Convert the binary digital quantity of the heading attitude information to be output into an analog quantity, and then output it.
[0139] The binary digital quantity of the heading attitude information to be output includes the binary digital quantity of the heading angle, pitch angle and roll angle. The binary digital quantity is adjusted in step 4 according to the actual needs of the user, and 19 bits or 14 bits are commonly used. The binary digital quantity of the heading attitude information to be output is converted into an analog quantity of a synchronizer or resolver signal (depending on the user's needs) by a digital-to-analog conversion circuit and output to the user.
[0140] The present invention receives heading attitude information sent by two sets of sensor information sources through an Ethernet interface, performs rationality check and processing on the attitude information, performs integrity check and processing on the heading angle, performs dynamic source selection on the heading attitude 19-bit binary digital quantity information of the two sets of sensor information sources and the 19-bit binary digital quantity of the heading attitude bound by a computer, realizes three-selection, selects one set of 19-bit binary digital quantity information (heading and attitude, 3 channels in total), the 19-bit binary digital quantity information is all 360° / r angle information, the interface user requirements are that the heading angle, pitch angle and roll angle information are respectively analog quantity information of the heading dual channel (360° / r, 10° / r) and the attitude single channel (60° / r, 60° / r), in order to meet the user requirements, the heading is subjected to coarse and fine dual channel conversion, the pitch and roll are subjected to 360° / r to 60° / r conversion, and then the heading angle, pitch angle and roll angle are respectively subjected to digital quantity-analog quantity conversion, and the analog quantity information required by the user is sent to the user.
[0141] In this embodiment, Figure 3 As shown, a data processing system for attitude information is also provided, and the technical solution adopted is as follows: it includes: a data receiving module 1, a data checking module 2, an information source selection module 3, a digital quantity conversion module 4 and an analog quantity conversion module 5, the data receiving module 1, the information source selection module 3, the digital quantity conversion module 4 and the analog quantity conversion module 5 are connected in sequence, and the data checking module 2 is respectively connected to the data receiving module 1 and the information source selection module 3.
[0142] The data receiving module 1 is used to receive the heading attitude information of multiple sets of sensor information sources and the heading attitude information bound by the computer, and the heading attitude information includes pitch angle, roll angle and heading angle. The pitch angle, roll angle and heading angle received by the data receiving module 1 are all 19-bit binary digital values of 360° / r, and the data receiving module 1 converts them into angle values of 360° / r, and then sends the data corresponding to the sensor information source to the data checking module 2, and sends the data corresponding to the computer binding to the information source selection module 3.
[0143] The data checking module 2 is used to check the heading and attitude information of the sensor information source, and delete the heading and attitude information of the sensor information source that fails the check.
[0144] The data checking module 2 performs a rationality check on the pitch angle, the roll angle and the heading angle, and also performs a heading angle integrity check on the heading angle. The data checking module 2 sends the heading attitude information of the sensor information source that passes the check to the information source selection module 3.
[0145] The information source selection module 3 is used to select one of the heading attitude information bound by the computer and the heading attitude information of the sensor information source that has passed the inspection as the heading attitude information to be output. The information source selection module 3 sends one of the heading attitude information bound by the computer and the heading attitude information of the sensor information source that has passed the inspection as the heading attitude information to be output to the digital quantity conversion module 4 according to the remote control instruction or the local control instruction.
[0146] The digital quantity conversion module 4 is used to convert the pitch angle and roll angle of the heading attitude information to be output into a binary digital quantity of 60° / r, and convert the heading angle of the heading attitude information to be output into a binary digital quantity to obtain the binary digital quantity of the heading attitude information to be output. The digital quantity conversion module 4 performs limit processing on the pitch angle and roll angle of the heading attitude information to be output at 360° / r, and then converts them into a 19-bit binary digital quantity of 60° / r. The digital quantity conversion module 4 converts the heading angle of the heading attitude information to be output at 360° / r into a 19-bit binary digital quantity of 360° / r. If necessary, the 19-bit binary digital quantity of 360° / r will be converted into a 14-bit binary digital quantity of 360° / r of the coarse channel and a 14-bit binary digital quantity of 10° / r of the fine channel. The digital quantity conversion module 4 sends the converted binary digital quantity of the heading attitude information to be output to the analog quantity conversion module 5.
[0147] The analog quantity conversion module 5 is used to convert the binary digital quantity of the heading attitude information to be output into an analog quantity, and then output it. The analog quantity conversion module 5 converts the binary digital quantity of the heading attitude information to be output into an analog quantity of a synchronizer or resolver signal through a digital-to-analog conversion circuit according to user needs, and outputs it to the user.
[0148] In this embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the above-mentioned method for processing data of heading information when executing the computer program.
[0149] In this embodiment, a computer program product is also provided, including a computer program, and when the computer program is executed by a processor, the above-mentioned method for processing data of heading information is implemented.
[0150] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for processing data of heading information, characterized in that: include: Receiving heading attitude information from multiple sets of sensor information sources and heading attitude information bound by a computer, wherein the heading attitude information includes a pitch angle, a roll angle and a heading angle; Checking the heading attitude information of the sensor information source, and deleting the heading attitude information of the sensor information source that fails the check; Select one of the heading attitude information bound by the computer and the heading attitude information of the sensor information source that has passed the inspection as the heading attitude information to be output; Converting the pitch angle and the roll angle of the heading attitude information to be output into a binary digital value of 60° / r, and converting the heading angle of the heading attitude information to be output into a binary digital value to obtain a binary digital value of the heading attitude information to be output; Convert the binary digital quantity of the heading attitude information to be output into an analog quantity, and then output it; The inspection includes a rationality inspection and a heading angle integrity inspection; The rationality check is as follows: the reasonable range of heading angle is [0°, 360°), and the reasonable range of pitch angle and roll angle is [-30°, 30°]; The process of heading angle integrity check is as follows: record Continuous heading angle data ,in, Indicates sampling moments; right Data at the moment Perform anomaly checks and calculate Heading angle difference at moment ,like , express Time threshold, then determine is valid data, the heading angle passes the heading angle integrity check; otherwise, For abnormal data, carry out abnormal data supplementation processing; The calculation formula is: The number of valid data stored before the abnormal data is n, 0≤n≤m, and the process of abnormal data supplementation is as follows: When n≤1, abnormal data cannot be supplemented; When n=2, The two valid data stored before the abnormal data at the time are , , calculated ,but The time replenishment value is , using the supplementary value Continue Abnormal data at time If the data at that moment is still abnormal data, no abnormal data supplementation will be performed; 3≤n≤m, according to the stored n data before the moment , find the fitting function , so that it satisfies: According to the conditions for finding the extreme value of the function, by finding the partial derivative, we can find the function In and , and is a constant; pass Calculated ,but The supplementary value of the moment is: Using the replenishment value Continue Abnormal data at the moment, If the data at the next moment is still abnormal data, then continue to extrapolate and supplement. The maximum number of abnormal data supplemented once is m / 2. Perform boundary value processing on the supplementary value: ; The pitch angle and roll angle of the heading attitude information to be output are 360° / r angle values, and the process of converting them into 19-bit binary digital values of 60° / r is as follows: judge Whether it meets 0°≤ ≤30°, if yes, = If not, = -300°, Represents the angle value of 360° / r, Indicates the angle value of 60° / r; The corresponding relationship between the angle value of 60° / r and the 19-bit binary digital value is: in, Indicates 60° / r The value of the binary digit is arranged from high to low. , , …, , Indicates 60° / r The angle weights of the 19-bit binary digital quantity of 60° / r are 30°, 15°, ... (60° / 2 19 ); and Compare, judge - Is it equal to 0? If so, then =1, ~ If both are equal to 0, the conversion ends; if not, judge - Is it greater than 0? If so, =1, = - , if not, then =0, = ; and Compare, judge - Is it equal to 0? If so, then =1, ~ If both are equal to 0, the conversion ends; if not, judge - Is it greater than 0? If so, =1, = - If not, then =0, = ; According to the comparison process, proceed in sequence , , …, until the conversion is completed or determined ~ The value of .
2. A method for processing data of heading information as claimed in claim 1, characterized in that: According to the remote control instruction or the local control instruction, one path is selected from the heading attitude information bound by the computer and the heading attitude information of the sensor information source that has passed the inspection as the heading attitude information to be output, and the priority of the local control instruction is higher than that of the remote control instruction.
3. A method for processing data of heading information as claimed in claim 1, characterized in that: The pitch angle and the roll angle of the heading attitude information to be outputted of 360° / r are subjected to position limiting processing and then converted into a binary digital value of 60° / r; the process of position limiting processing is: (30°, 180°] is processed as 30°, and (180°, 330°) is processed as 330°.
4. A method for processing data of heading information as claimed in claim 1, characterized in that: The heading angle of the heading attitude information to be outputted of 360° / r is converted into a 19-bit binary digital value of 360° / r.
5. A method for processing data of heading information as claimed in claim 4, characterized in that: Convert the 19-bit binary digital quantity of 360° / r into the 14-bit binary digital quantity of 360° / r of the coarse channel and the 14-bit binary digital quantity of 10° / r of the fine channel; The process of converting the 19-bit binary digital quantity of 360° / r into the 14-bit binary digital quantity of 360° / r of the coarse channel is as follows: taking the high 14 bits of the 19-bit binary digital quantity of 360° / r as the 14-bit binary digital quantity of 360° / r of the coarse channel; The process of converting the 19-bit binary digital quantity of 360° / r into the 14-bit binary digital quantity of 10° / r of the precision channel is as follows: Calculate the angle value represented by the 19-bit binary value of 360° / r ; judge Is it satisfied? ≥100°, if yes, then = -100°, continue judging Is it satisfied? ≥100°; if not, judge Is it satisfied? ≥10°, if yes, then = -10°, continue to judge Is it satisfied? ≥10°; if not, = , Indicates the angle value of 10° / r; The corresponding relationship between the angle value of 10° / r and the 14-bit binary digital value is: in, Indicates 10° / r The value of the binary digital quantity is 10° / r. The 14-bit binary digital quantity data is arranged from high to low. , , …, , Indicates 10° / r The angle weights of the 14-bit binary digital quantity of 10° / r are 5°, 2.5°, ..., (10° / 2 14 ), the low angle weight is 1 / 2 of the previous high angle weight; and Compare, judge - Is it equal to 0? If so, then =1, ~ If both are equal to 0, the conversion ends; if not, judge - Is it greater than 0? If so, =1, = - , if not, then =0, = ; and Compare, judge - Is it equal to 0? If so, then =1, ~ If both are equal to 0, the conversion ends; if not, judge - Is it greater than 0? If so, =1, = - If not, then =0, = ; According to the comparison process, proceed in sequence , , …, until the conversion is completed or determined The value of .
6. A data processing system for heading information, characterized in that: A method for processing attitude information data according to any one of claims 1 to 5, comprising: a data receiving module, a data checking module, an information source selection module, a digital quantity conversion module and an analog quantity conversion module, wherein the data receiving module, the information source selection module, the digital quantity conversion module and the analog quantity conversion module are connected in sequence, and the data checking module is connected to the data receiving module and the information source selection module respectively; The data receiving module is used to receive the heading attitude information of multiple sets of sensor information sources and the heading attitude information bound by the computer, wherein the heading attitude information includes the pitch angle, the roll angle and the heading angle; The data checking module is used to check the heading attitude information of the sensor information source and delete the heading attitude information of the sensor information source that fails the check; The information source selection module is used to select one path from the heading attitude information bound by the computer and the heading attitude information of the sensor information source that has passed the inspection as the heading attitude information to be output; The digital quantity conversion module is used to convert the pitch angle and roll angle of the heading attitude information to be output into a binary digital quantity of 60° / r, and convert the heading angle of the heading attitude information to be output into a binary digital quantity to obtain the binary digital quantity of the heading attitude information to be output; The analog quantity conversion module is used to convert the binary digital quantity of the heading attitude information to be output into an analog quantity and then output it.
7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, a method for processing navigation attitude information data according to any one of claims 1 to 5 is implemented.
8. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, a method for processing data of heading information according to any one of claims 1 to 5 is implemented.
