Aircraft magnetic compass error calibration method based on gated recurrent unit
Through the recurrent neural network prediction model based on gated recurrent units, the environmental differences and data fitting problems in magnetic compass calibration are solved, efficient and accurate magnetic compass error calibration is achieved, the calibration process is simplified and the accuracy is improved.
Patent Information
- Application Number
- CN202411140082.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-20
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-08-20
AI Technical Summary
In the existing technology, the magnetic compass calibration method ignores the difference between static testing and dynamic flight environment, resulting in inaccurate test data, and the fitting method is easily affected by abnormal data, affecting the accuracy and efficiency of magnetic compass error calibration.
Using a recurrent neural network prediction model based on gated recurrent units, the aircraft magnetic compass error data is measured through the reference magnetic compass and positioning sensor, and the recurrent neural network is used to predict the error and calibrate it to simplify the process of towing the aircraft, reduce calibration links, and improve Calibration accuracy.
The efficiency of magnetic compass calibration is improved, the calibration steps are reduced, and the calibration accuracy is enhanced, making the error data of the magnetic compass more suitable for future working conditions.
Smart Images

Figure CN118670368B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of compass calibration, and in particular to an aircraft magnetic compass error calibration method based on a gated circulation unit. Background Art
[0002] A magnetic compass is a device that uses the geomagnetic field to measure the direction of a carrier. Compared with traditional navigation equipment, a magnetic compass has many advantages such as small size, light weight, no error accumulation, and the ability to automatically find the north. It also has price advantages and is widely used in aviation, navigation and other fields. However, since the local geomagnetic field of the carrier used by the magnetic compass is easily distorted by various ferromagnetic and electromagnetic influences, as well as differences in the installation structure and electronic circuits of the magnetic compass, there is an error between the direction measured by the magnetic compass and the actual direction, which affects the direction measurement of the carrier's navigation. Therefore, regular precision calibration of the magnetic compass is of great significance to ensure the safety of carrier navigation.
[0003] In the paper "Magnetic Compass Calibration Method for Multi-rotor UAVs" published in the journal "Computer Measurement and Control" on May 25, 2019, Cheng Weiwei et al. analyzed the causes of UAV magnetic compass errors in detail, and combined with multi-rotor applications, divided the magnetic compass interference into four categories: static interference of the body coordinate system, dynamic interference of the body coordinate system, static interference of the navigation coordinate system, and dynamic interference of the navigation coordinate system. For the dynamic interference of the body coordinate system, combined with the background of multi-rotor applications, the corresponding relationship is fitted by testing the interference magnetic field generated by the motors under different speed instructions one by one in advance. During the dynamic flight process, the interference magnetic field generated by each motor is obtained according to the control instructions of each motor, and the combined dynamic interference magnetic field is obtained after superposition. The original data of the magnetic compass is subtracted from the synthesized dynamic interference magnetic field to obtain accurate magnetic field data. This method ignores the environmental differences between static testing and dynamic flight, which can easily lead to inaccurate test data. Furthermore, the data fitting method used is easily affected by abnormal data, causing the fitting curve to deviate from the actual situation. In addition, the selection of the data fitting model will also cause a large difference in the fitting results, thereby affecting the accuracy of the magnetic compass error calibration.
[0004] Therefore, how to improve the calibration efficiency and accuracy of the aircraft magnetic compass is a difficult problem that needs to be solved in the field of navigation. Summary of the invention
[0005] In order to overcome the deficiencies in the prior art, the present invention provides an aircraft magnetic compass error calibration method based on a gated circulation unit to improve the calibration efficiency of the aircraft magnetic compass ground calibration.
[0006] To achieve the above object, the present invention discloses an aircraft magnetic compass error calibration method based on a gated recurrent unit, comprising the following steps:
[0007] (S1) establishing a recurrent neural network prediction model based on a gated recurrent unit design including an input layer, a hidden layer, and an output layer, the model is used to predict the compass error and perform calibration;
[0008] (S2) using a calibration device to measure the error data of the aircraft magnetic compass to obtain sample data of the input layer of the prediction model; the calibration device includes a reference magnetic compass, a positioning sensor and an error data calculation unit, wherein the reference magnetic compass is arranged in the direction of the nose of the aircraft longitudinal axis, and the two positioning sensors are arranged at the ends of the nose and tail of the aircraft respectively along the longitudinal axis of the aircraft; the aircraft is towed to rotate in situ in the magnetic compass correction field, and during the rotation process, the direction data of the reference magnetic compass and the positioning data of the positioning sensor are transmitted to the error data calculation unit; the error data calculation unit calculates the true magnetic azimuth of the aircraft in a clockwise direction on the digital map with the direction of the reference magnetic compass as the true magnetic north direction, and compares it with the indicated angle of the onboard magnetic compass to obtain the error data of the same true magnetic azimuth in each rotation cycle, and uses it as the input sample data of the input layer of the prediction model;
[0009] (S3) Error prediction: The hidden layer uses the input sample as data, uses a recurrent neural network method to predict the error and outputs it to the output layer. t The prediction error at time Satisfies the relationship:
[0010] ;
[0011] in, express( t -1) the prediction error at the moment, It is expressed as:
[0012] ;
[0013] in, It is expressed as:
[0014] ;
[0015] In the above formula, is the sigmoid activation function, is the hyperbolic tangent activation function, , is the connection weight of the gated recurrent unit, , is represented as the bias of the gated recurrent unit, , Represents the input sample data of the gated recurrent unit;
[0016] (S4) Using the prediction error output by the recurrent neural network prediction model as calibration data to calibrate the aircraft compass.
[0017] Preferably, the loss function of the gated recurrent unit is a mean square error function , expressed as:
[0018] ;
[0019] in, N represents the number of magnetic compass error samples, Indicates i The true value of the magnetic compass error, Indicates i The predicted value of the compass error.
[0020] Preferably, the magnetic compass correction field is a circular or polygonal field made of non-magnetic material with a smooth and flat surface. In a cylindrical airspace 0.5 to 1.5 meters above the correction field and with a radius of 80 meters, the magnetic azimuth error of the horizontal component of the earth's magnetic field measured between any two points is no more than 0.2°.
[0021] Preferably, the calibration standard of the reference magnetic compass is that the magnetic azimuth error is no greater than 0.5°.
[0022] Preferably, the positioning sensor is arranged on the aircraft as follows: a plumb bob is hung at each end of the longitudinal axis of the aircraft, and the positioning signal receiving antenna of the positioning sensor is arranged at the ends of the longitudinal axis of the aircraft, and its position is in the same vertical plane as the plumb bob.
[0023] The present invention has the following beneficial effects:
[0024] (1) Improved magnetic compass calibration efficiency
[0025] The magnetic compass calibration method currently implemented is usually to rotate the aircraft by towing it at a certain angle interval, accurately align the longitudinal axis of the aircraft with each azimuth to be calibrated, and measure the error between the actual magnetic azimuth of the aircraft magnetic compass and the true magnetic azimuth at each azimuth to be calibrated in turn. This calibration method is difficult to operate, takes a long time to calibrate, and has low calibration efficiency. In the technical solution disclosed in the present invention, a recurrent neural network prediction model is designed based on a gated recurrent unit to predict the magnetic compass error and perform calibration settings. The error data of the magnetic compass is used as the input sample data of the prediction model, and the recurrent neural network prediction is used to improve the accuracy of the error data. By setting a reference magnetic compass, a positioning sensor, etc., the aircraft is towed to rotate for multiple weeks, and the error data sample of the airborne magnetic compass is obtained by data processing. The magnetic compass prediction error is obtained based on the prediction model, and the magnetic compass is calibrated. The aircraft towing process is simplified and the compass calibration time is shortened. The efficiency of magnetic compass calibration is further improved.
[0026] (2) Reduced calibration steps
[0027] The magnetic compass calibration method currently implemented has many calibration links and the process is cumbersome. In the towing link of the calibration process, due to the inertia of the aircraft, it is difficult to complete the alignment of an angle position to be calibrated in one towing. The towing vehicle often stops too early or too late, and the towing process at each position is very cumbersome. In the technical solution disclosed in the present invention, it is only necessary to tow the aircraft to rotate for multiple circles, and there is no need to stop and align during the rotation process to complete the towing process of all angles to be calibrated. The subsequent calibration link only needs to process the data of the collected sensor positioning data to obtain the error data sample of the airborne magnetic compass, that is, the data processing process is used to replace the mechanical process, avoiding the complex and difficult towing process in the existing calibration method, thereby greatly reducing the calibration links and making it simple and easy to operate. Therefore, compared with the prior art, the technical solution disclosed in the present invention reduces the calibration links and greatly reduces the difficulty of calibration.
[0028] (3) High calibration accuracy
[0029] In the prior art, the error calibration of the airborne magnetic compass is usually carried out by obtaining the magnetic compass error data through ground measurement and then calibrating. The error data obtained by this calibration method only represents the current or previous magnetic compass error, and cannot represent the future working state of the magnetic compass. In the technical solution disclosed in the present invention, a recurrent neural network prediction model is designed based on a gated recurrent unit, and the magnetic compass error is predicted by collecting the error sample data of the magnetic compass, so as to achieve the purpose of being more in line with the future working state of the magnetic compass. Therefore, compared with the prior art, the technical solution disclosed in the present invention improves the calibration accuracy of the magnetic compass. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 A schematic diagram of the prediction model composition;
[0031] Figure 2 The schematic diagram of the calibration device is shown in FIG.
[0032] Figure 3 It is a schematic diagram of the azimuth of the aircraft's longitudinal axis relative to magnetic north;
[0033] Figure 4 Schematic diagram of the internal structure of GRU. DETAILED DESCRIPTION
[0034] The following is combined with Figure 1 To Attachment Figure 4 The principles and features of the present invention are described, and the examples given are only used to explain the present invention, rather than to limit the scope of the present invention.
[0035] In the prior art, a magnetic compass is a device that uses the Earth's magnetic field to measure the azimuth of an aircraft relative to the magnetic north direction. Figure 1 As shown in the figure, the ground calibration of the aircraft magnetic compass is difficult to operate, involves complicated operation links, many calibration personnel, long communication time between personnel, low calibration efficiency, and the error calibration fails to reflect the future working status of the magnetic compass.
[0036] In order to solve the problems existing in the prior art, this solution improves the ground calibration method of the aircraft magnetic compass and innovatively applies the prediction advantages of the recurrent neural network to the error calibration of the magnetic compass. On this basis, the embodiment of the present invention discloses an aircraft magnetic compass error calibration method based on a gated recurrent unit, comprising the following steps:
[0037] (S1) Establish a recurrent neural network prediction model based on a gated recurrent unit design, including an input layer, a hidden layer, and an output layer.
[0038] The conventional steps of the recurrent neural network prediction model include: model initialization, model compilation, model training, network parameter adjustment and data testing.
[0039] The model initialization steps are:
[0040] like Figure 1 As shown, the recurrent neural network structure includes an input layer, a hidden layer and an output layer. In the technical solution disclosed in the embodiment of the present invention, the input layer is used to convert the dimension of sample data and output it to the hidden layer. The input layer is 12-dimensional and is used to receive the input of 12-dimensional sample data and convert it into a sequence structure sample. Furthermore, in the technical solution disclosed in the embodiment of the present invention, the hidden layer adopts a GRU structure. GRU is a type of recurrent neural network that can improve the network prediction efficiency. The internal structure of GRU is shown in FIG. Figure 4As shown, in the technical solution disclosed in the embodiment of the present invention, the hidden layer adopts a GRU structure to improve the effectiveness of prediction. When the network is initialized, the connection weights and bias parameters of the GRU , and , The initial value is a random number generated in the range of 0 to 1. Further, in the technical solution disclosed in the embodiment of the present invention, the output of the hidden layer is converted into 12-dimensional output data after the output layer performs dimensional conversion.
[0041] The steps to compile the model are:
[0042] Define the network loss function and select a suitable loss function according to the task type. There are many types of loss functions. In this embodiment, the mean square error function is used as the loss function. Then obtain sample data and perform normalization processing.
[0043] The loss function of the gated recurrent unit is the mean square error function , expressed as:
[0044] ;
[0045] Where N is the number of magnetic compass error samples, represents the true value of the i-th magnetic compass error, represents the predicted value of the i-th magnetic compass error. For the evaluation index, the recurrent neural network prediction model is adjusted to meet the prediction requirements. For those skilled in the art, how to adjust is existing knowledge or conventional technical means, which will not be described here.
[0046] By adopting the technical solution disclosed in the embodiment of the present invention, sample data is obtained by rotating the aircraft at fixed intervals, receiving positioning data, calculating the magnetic angle, and comparing it with the magnetic compass pointing data. Typically, the sample data examples are shown in Table 1. Due to space limitations, only the first three data samples are listed in Table 1.
[0047] Table 1: Sample data example
[0048]
[0049] Since the sample azimuth angle data has a value range of 0°~360° and a large span, in the technical solution disclosed in the embodiment of the present invention, the azimuth angle sample data is normalized and divided by 2π to convert it into data with a value range of 0~1.
[0050] The steps for training the model are:
[0051] The normalized sample data is input into the input layer of the prediction model. The input samples are converted into sequence samples through the input layer data format conversion. Assume t The normalized sample data at the moment is:
[0052] ;
[0053] Among them, the superscript T The sample data enters the GRU hidden layer through the input layer, and data processing is performed according to the relationship between the prediction error and the sample data. The internal data processing structure of GRU is as follows: Figure 4 shown. t The prediction error at time With the current input sample and( t -1) Moment prediction error Related, in the initial stage, The initial value is a random number generated in the range of 0 to 1.
[0054] When processing GRU data, the current t Sample input at any time and( t -1) Moment prediction value Concatenated into a matrix vector with connection weights Perform matrix multiplication, and then add the result to the bias parameter Add together to form an activation function Variable parameters, activation function is the sigmoid function, and its data expression is:
[0055] ;
[0056] Activation Function The function is to convert the variable parameters into values in the range of 0 to 1, thereby forming a gating signal ,Right now:
[0057] ;
[0058] Get the gate signal After that, in the GRU network structure, a candidate value is generated in each sample data time interval , used to replace or update In the technical solution disclosed in the embodiment of the present invention, we use the tanh () activation function to calculate the candidate value ; The tanh() activation function is the hyperbolic tangent, and the data expression can be expressed as:
[0059] ;
[0060] In the tanh() activation function, its independent variable parameters are:
[0061] ;
[0062] The tanh() activation function will t -1) Input sample data at time and( t -1) Predicted value at the moment Splicing and connection weights Perform matrix operations, and then use the results of the operations with the bias parameters Superimposed, forming the independent variable parameters of the activation function, in order to calculate the candidate value purpose.
[0063] In the technical solution disclosed in the embodiment of the present invention, the value range of the independent variable parameter is compressed to the range of -1 to 1 through the tanh () activation function. The gate signal is calculated and candidate values After that, the update of the predicted value can be completed. The update expression of the predicted value can be expressed as:
[0064] ;
[0065] By the gate signal The function curve trend shows that in most cases, the gated signal The value is very close to 0 or 1; when the gate signal When it is very close to 1, it means that the candidate value Update the predicted value when the gate signal When it is very close to 0, it means that ( t -1) Predicted value at the moment Update the forecast value.
[0066] The specific steps for adjusting network parameters are as follows:
[0067] The recurrent neural network is trained according to the input sample data. During the training process, the loss function is used to measure the deviation between the predicted value and the true value of the network, and this is used as a basis for judging whether to adjust the network parameters. In the technical solution disclosed in the embodiment of the present invention, the mean square error function is used as the loss function for measurement. It is expressed as:
[0068] ;
[0069] in, N Represents the number of magnetic compass error sample elements, Indicates i The true value of the magnetic compass error, Indicates i The predicted value of the magnetic compass error. To evaluate the index, the recurrent neural network prediction model is adjusted to meet the prediction requirements. Typically, The evaluation index is 0.05%. That is, when it is greater than this value, it means that the network prediction value does not meet the requirements, and the network parameters need to be adjusted. After adjusting the network connection weights and bias parameters, sample data training is performed again. According to the input sample data and the loss function evaluation index, it is determined whether to update the parameters again. In this way, through multiple training iterations and parameter adjustments, the prediction value can meet the requirements.
[0070] Among them, data testing includes the following steps:
[0071] Select multiple sample data that have not participated in the network prediction model training as the test data set, and perform data testing on the network prediction model after training; compare the prediction error with the true value and verify The evaluation index is to determine whether it meets the requirements; the network prediction model that meets the requirements can be used to predict the magnetic compass error. If it does not meet the requirements, the network prediction model will continue to be trained and the parameters will be adjusted until the requirements are met, and the model establishment is completed.
[0072] The model is used to predict the compass error and calibrate it to better predict the error of the airborne magnetic compass. Therefore, in the technical solution disclosed in the embodiment of the present invention, the advantages of the gated recurrent unit are applied to the recurrent neural network prediction model to further improve the prediction ability of the model.
[0073] (S2) Using a calibration device to measure the error data of the aircraft magnetic compass to obtain the input layer sample data of the prediction model. The calibration device includes a reference magnetic compass, a positioning sensor and an error data calculation unit, wherein the reference magnetic compass is based on a wireless WiFi network to achieve data exchange, as shown in the attached Figure 2 When in use, the reference magnetic compass is set in the nose direction of the aircraft longitudinal axis, and two positioning sensors are respectively set at the nose and tail ends of the aircraft along the longitudinal axis of the aircraft; the aircraft is towed to rotate in situ for multiple cycles in the magnetic compass correction field. During the rotation process, the direction data of the reference magnetic compass and the positioning data of the positioning sensor are transmitted to the error data calculation unit via wireless WiFi; the error data calculation unit takes the direction of the reference magnetic compass as the true magnetic north direction, and calculates the true magnetic azimuth of the aircraft in a clockwise direction on the digital map, as shown in FIG. Figure 3As shown, and compared with the indicated angle of the airborne magnetic compass, the error data at the same true magnetic azimuth in each rotation cycle is obtained, and used as the input sample data of the input layer of the prediction model.
[0074] (S3) Error prediction: the hidden layer uses the input sample as data, uses a recurrent neural network method to predict the error and outputs it to the output layer. t The prediction error at time Satisfies the relationship:
[0075] ;
[0076] in, express( t -1) the prediction error at the moment, It is expressed as:
[0077] ;
[0078] in, It is expressed as:
[0079] ;
[0080] In the above formula, is the sigmoid activation function, is the hyperbolic tangent activation function, , is the connection weight of the gated recurrent unit, , is represented as the bias of the gated recurrent unit, , Represents the input sample data of the gated recurrent unit, that is, the error data sample of the magnetic compass; as for how to set the connection weight and bias of the gated recurrent unit, it is existing knowledge or conventional technical means for technicians in this field and will not be repeated here.
[0081] (S4) The prediction error output by the recurrent neural network prediction model is used as calibration data to calibrate the aircraft compass. According to the calibration azimuth specified in the aircraft magnetic compass calibration operating procedures, calibration is usually performed at a certain angle interval; by obtaining the error sample data of the same azimuth, inputting it into the input layer of the prediction model, the prediction error is obtained by the neural network prediction model, that is, the magnetic compass error of the azimuth to be calibrated, and the aircraft magnetic compass is calibrated. The specific calibration method is: according to the obtained magnetic compass error value of the azimuth to be calibrated, the adjustment nut of the magnetic compass can be adjusted according to the magnetic compass operating procedures. Taking the prediction error of 90° azimuth as 0.87° as an example, the specific method of compass adjustment is: counterclockwise rotate the adjustment nut, the number of turns of the rotation of the adjustment nut is 1 to 2 turns (refer to the compass operation manual of the corresponding model); after calibration, measure the error of the airborne magnetic compass again, compare it with the working standard, and judge whether it meets the working requirements. If not, continue to repeat the prediction error and calibration tooling until the working standards are met. The standard error of a common airborne compass is less than 0.5°.
[0082] Further, in the technical solution disclosed in the embodiment of the present invention, the method for the error data calculation unit to calculate the true magnetic azimuth of the aircraft is:
[0083] On the digital map, the direction data of the reference magnetic compass is the true magnetic north direction; the longitudinal axis of the aircraft is determined by receiving the positioning data of the positioning sensor. Typically, at the same time, on the digital map, the line connecting the positions of the positioning sensor devices at both ends of the aircraft longitudinal axis nose and tail is the aircraft longitudinal axis; along the aircraft longitudinal axis, the center point of the positioning positions of the two positioning sensors is the vertex of the angle, and the azimuth of the aircraft longitudinal axis relative to the true magnetic north direction is calculated in a clockwise direction, which is the true magnetic azimuth. On the digital map, the vertex of the angle and one side (the longitudinal axis of the aircraft) are known, and the angle (magnetic azimuth) relative to the other side (the true magnetic north direction) is calculated. For technicians in this field, how to calculate is existing knowledge or conventional technical means, and will not be repeated here.
[0084] Further, in the technical solution disclosed in the embodiment of the present invention, the magnetic compass correction field is typically a circular or polygonal field made of non-magnetic materials with a smooth and flat surface. The magnetic azimuth error of the horizontal component of the earth's magnetic field between any two points in a cylindrical airspace with a radius of 80 meters and a circle centering at the center of the correction field at 0.5 meters to 1.5 meters above the correction field is no more than 0.2°. Furthermore, the edge of the correction field should be no less than 300 meters away from the centerline of the steel plate runway of the airport, and there should be no tall buildings, DC power lines or any other magnetic objects within 200 meters around it.
[0085] Typically, receiving antennas of a positioning sensor device or a satellite positioning device are respectively arranged at the front and rear ends of the nose and tail of the longitudinal axis of the aircraft. If the positioning sensor device and its signal receiving antenna are integrated, the layout position of the positioning sensor device is the same as the layout position of the receiving antenna; if the positioning sensor device and its receiving antenna are not integrated, and a certain length of cable is connected therebetween, the layout position of the receiving antenna shall prevail, that is, the layout setting position of the receiving antenna represents the position of the positioning sensor device. Typically, in the technical solution disclosed in the embodiment of the present invention, when there is only one positioning signal receiving module in the installed positioning sensor device, two positioning sensor devices need to be arranged on the aircraft, and the receiving antennas of the positioning sensor devices are respectively arranged at the nose and tail ends of the longitudinal axis of the aircraft. Further, in the technical solution disclosed in the embodiment of the present invention, in order to facilitate the determination of the accuracy of the positioning sensor device arranged on the longitudinal axis of the aircraft, a plumb bob is hung at each end of the nose and tail of the longitudinal axis of the aircraft; the receiving antenna of the positioning sensor device should be arranged in the same vertical plane as the plumb bob, and the antenna of the installed satellite positioning device should be in the same horizontal plane. Typically, the positioning sensor device is a Beidou satellite positioning device, and its position update period is about 0.02 seconds.
[0086] In the prior art, it is usually done at certain angle intervals by rotating the towing aircraft to accurately align the longitudinal axis of the aircraft with each azimuth to be calibrated, and the error between the actual magnetic azimuth measured by the aircraft magnetic compass and the true magnetic azimuth is measured at each azimuth to be calibrated. For example, the calibration is performed at intervals of 15° in the azimuth marking method and at intervals of 45° in the compass method, and calibration is performed at each angle in turn. In the towing aircraft link of the calibration process, close cooperation between the towing aircraft staff, cockpit calibration personnel, ground command personnel, etc. is required; however, due to the large inertia of the aircraft, especially large platforms such as civil aircraft and bombers, it is difficult to tow the aircraft to stop accurately at a certain time or angle, and the towing vehicle often stops too early or too late, which requires repeated towing, repeated communication, and repeated operations. The towing is difficult, resulting in long calibration time and low efficiency.
[0087] In the technical solution disclosed in the embodiment of the present invention, a recurrent neural network prediction model is designed based on a gated recurrent unit to predict the magnetic compass error and perform calibration settings. The error data of the magnetic compass is used as the input sample data of the prediction model, and the recurrent neural network prediction is used to improve the accuracy of the error data. By setting a reference magnetic compass, a positioning sensor, etc., the aircraft is towed to rotate for multiple cycles, and the error data samples of the airborne magnetic compass are obtained by data processing. The magnetic compass prediction error is obtained based on the prediction model to perform magnetic compass calibration. When obtaining the error sample data, it is not necessary to use a towing vehicle to accurately tow the aircraft to each angle to be calibrated, but the aircraft can be towed and rotated for multiple cycles at a uniform or nearly uniform speed in the magnetic compass correction field, without stopping for measurement in the middle, eliminating the cumbersome towing command, angle measurement and other processes, and simplifying the towing aircraft process. During the rotation process, based on wireless WiFi, by collecting data, transmitting data and receiving data, the real magnetic azimuth is calculated on the digital map, and then the magnetic compass error is determined by comparison, so that the error sample data of the aircraft magnetic compass can be obtained, which is used as the input sample data of the recurrent neural network prediction model, and the recurrent neural network method is used to predict the error, and then the airborne magnetic compass is calibrated. Therefore, the technical solution disclosed in the embodiment of the present invention obtains the magnetic compass error sample data by data processing, and uses the neural network to predict the error, which greatly simplifies the towing aircraft process, shortens the magnetic compass calibration time, and improves the magnetic compass calibration efficiency.
[0088] In the prior art, the calibration process is relatively complicated and cumbersome. For example, in the azimuth marking method, 24 radial lines need to be pre-set in the magnetic compass calibration field, and one line is set every 15°. Each radial line needs to be measured using calibration equipment. In addition, circular lines with radii of 15 meters and 26 meters are set in the calibration field respectively; in addition, a non-magnetic radial rod with a certain rigidity is set to rotate around the center of the calibration field and can be locked at 24 positions at intervals of 15° to guide the aircraft to be towed and rotated to the angle to be calibrated; the process of towing the aircraft is complicated, and it is necessary to complete the precise towing of 24 positions, stop and go, and repeat; due to the inertia of the aircraft, it is difficult to complete the alignment of an angle position to be calibrated in one towing, and the towing vehicle often stops too early or too late, and the towing process at each position is very complicated.
[0089] In the technical solution disclosed in the embodiment of the present invention, when measuring the error sample data of the airborne magnetic compass, it is not necessary to pre-set radial lines, radial rods and circular lines in the calibration field. It is only necessary to tow the aircraft to rotate for multiple cycles to complete the towing process of all angles to be calibrated, and then the error sample data of the airborne magnetic compass can be collected through data processing, that is, the data processing process is used to replace the mechanical process, avoiding the complex and difficult towing process in the existing calibration method, thereby greatly reducing the calibration links. Therefore, compared with the prior art, the technical solution disclosed in the embodiment of the present invention reduces the calibration links and greatly reduces the difficulty of calibration.
[0090] In the prior art, the error calibration of an airborne magnetic compass is usually performed by obtaining the magnetic compass error data through ground measurement and then calibrating. The error data obtained by this calibration method only represents the historical error of the current or previous magnetic compass, and cannot represent the future working state of the magnetic compass and its working accuracy. In the technical solution disclosed in the embodiment of the present invention, a recurrent neural network prediction model is designed based on a gated recurrent unit. By collecting the error sample data of the magnetic compass, a recurrent neural network model is used to predict the future error of the magnetic compass, so as to achieve the purpose of being more in line with the future working state of the magnetic compass. Therefore, compared with the prior art, the technical solution disclosed in the embodiment of the present invention is conducive to improving the calibration accuracy of the airborne magnetic compass.
[0091] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. Aircraft magnetic compass error calibration method based on gated recurrent unit, It is characterized in that The following steps are involved: (S1) establishing a recurrent neural network prediction model based on a gated recurrent unit design including an input layer, a hidden layer, and an output layer, the model is used to predict the compass error and perform calibration; (S2) using a calibration device to measure the error data of the aircraft magnetic compass to obtain sample data of the input layer of the prediction model; the calibration device includes a reference magnetic compass, a positioning sensor and an error data calculation unit, wherein the reference magnetic compass is arranged in the direction of the nose of the aircraft longitudinal axis, and the two positioning sensors are arranged at the ends of the nose and tail of the aircraft respectively along the longitudinal axis of the aircraft; the aircraft is towed to rotate in situ in the magnetic compass correction field, and during the rotation process, the direction data of the reference magnetic compass and the positioning data of the positioning sensor are transmitted to the error data calculation unit; the error data calculation unit calculates the true magnetic azimuth of the aircraft in a clockwise direction on the digital map with the direction of the reference magnetic compass as the true magnetic north direction, and compares it with the indicated angle of the onboard magnetic compass to obtain the error data of the same true magnetic azimuth in each rotation cycle, and uses it as the input sample data of the input layer of the prediction model; (S3) Error prediction: The hidden layer uses the input sample as data, uses a recurrent neural network method to predict the error and outputs it to the output layer. t The prediction error at time Satisfies the relationship: ; in, express t The prediction error at time -1, It is expressed as: ; in, It is expressed as: ; In the above formula, is the sigmoid activation function, is the hyperbolic tangent activation function, , is the connection weight of the gated recurrent unit, , is represented as the bias of the gated recurrent unit, , Represents the input sample data of the gated recurrent unit; (S4) Using the prediction error output by the recurrent neural network prediction model as calibration data to calibrate the aircraft compass.
2. The aircraft magnetic compass error calibration method based on gated recurrent unit according to claim 1, It is characterized in that The loss function of the gated recurrent unit is the mean square error function , expressed as: ; in, N represents the number of magnetic compass error samples, Indicates i The true value of the magnetic compass error, Indicates i The predicted value of the compass error.
3. The aircraft magnetic compass error calibration method based on gated recurrent unit according to claim 2, It is characterized in that The magnetic compass correction field is a circular or polygonal field made of non-magnetic material with a smooth and flat surface. In a cylindrical airspace 0.5 to 1.5 meters above the field and with a radius of 80 meters and with the center of the correction field as the center, the magnetic azimuth error of the horizontal component of the earth's magnetic field between any two points is no more than 0.2°.
4. The aircraft magnetic compass error calibration method based on gated recurrent unit according to claim 2, It is characterized in that The calibration standard of the reference magnetic compass is that the magnetic azimuth error is no greater than 0.5°.
5. The aircraft magnetic compass error calibration method based on gated recurrent unit according to claim 2, It is characterized in that The positioning sensor is arranged on the aircraft as follows: a plumb bob is hung at each end of the longitudinal axis of the aircraft; the positioning signal receiving antenna of the positioning sensor is arranged at the ends of the longitudinal axis of the aircraft, and its position is in the same vertical plane as the plumb bob.
