Device and method for determining errors in the data of a magnetic direction sensor

Abstract: In a locator for location and direction detections of moving bodies which employs, in the direction detection, a magnetic direction sensor (1) for outputting direction data (A(t)) and a gyro (2) for outputting angular speed data (w(t)), the locator for location and direction detections of moving bodies comprising normal judgement means (6, 7, 8) for said magnetic direction sensor (1) which compares a direction variation quantity (A(T2) - A(T1)) within an assigned time (t2) which is obtained from the difference of the direction data (A(t)) of the magnetic direction sensor (1), and an angle variation quantity within the assigned time (t2) which is obtained from an integral value of the angular speed data (w(t) of the gyro (2), and in the case that the difference between the compared quantities is over a first predetermined value (C1), judges that an error has occurred in the direction data (A(t)) of the magnetic direction sensor (1). After judgement of an occurrence of the error and when the difference between the direction variation quantity (A(T2) - A(T1)) and the angle variation quantity is below a second predetermined value (C2), it is judged that the direction data (A(t)) of the magnetic direction sensor (1) has returned to normalcy.

Description: FIELD OF THE INVENTION The present invention relates to a method and an apparatus for determining errors in the direction data of a magnetic direction sensor for moving bodies such as motor vehicles and the like, and in particular to enhancing the reliability of detection by a normal judgement function for judging whether the direction data obtained from the magnetic direction sensor is normal or not. DESCRIPTION OF THE PRIOR ART In locators normally employed in motor vehicles, there are provided a speed sensor for vehicle-speed detection, and a magnetic direction sensor for detecting an absolute direction, and in order to obtain a direction angle variation, there are also provided wheel-speed sensors for detecting the rotational speed difference of left and right wheels, or a gyro. The magnetic direction sensor is mainly used in the determination of the traveling direction of vehicles, and the output of the wheel-speed sensors or gyro is used in the detection of the right and left turns at intersections and the like by an angular speed variation. Since the detection of a present location by the locator is computed from two data that are obtained by sequentially detecting the speed of a moving body and the traveling direction at that point in time, it is desired that errors in the direction detection be as few as possible, and that the return of a normal value be made as soon as possible, if errors would arise. JP-A-59 104 510 discloses a method and an apparatus for determining errors in the direction data of a magnetic direction sensor in which a difference between a direction variation quantity obtained from the magnetic sensor and an integrated angular speed obtained from a gyro is compared with a reference value. The magnetic direction sensor however has its disadvantage in that a correct direction detection cannot be performed in the place where the direction of terrestrial magnetism undergoes the influence of magnetic materials and is deflected. Also, in the direction detection by the integration of direction angle variations based on the difference between the outputs of right and left vehicle-speed sensors or by the integration of angular speed variations of gyro outputs, there is the problem that errors resulting from the integration are accumulated. Further, in the detection of a direction angle variation quantity by wheel speeds, there also occur detection errors caused by unavoidable phenomenons such as slips and the like. Consequently, the conventional locator has its disadvantage in that the reliability of location detection is not satisfactory. It is accordingly an object of the present invention to provide an improved method and apparatus for determining errors in the direction data of a magnetic direction sensor, thus eliminating the drawbacks as produced by the conventional locator and enhancing the reliability of location detection. SUMMARY OF THE INVENTION This object is achieved by a method according to claim 1. There is provided, in accordance with the present invention, normal judgement means for judging whether the output of a magnetic direction sensor is normal or not on the basis of relatively correct output data of a gyro, by the fact that the gyro output is relatively correct for an angular speed or angle variation quantity of a short time. The normal judgement is performed as follows. That is, a direction variation quantity is computed from the difference of outputs of the magnetic direction sensor within an assigned time, while the angle variation quantity is computed from the integrated value of the gyro outputs within the assigned time. The calculated direction variation quantity and angle variation quantity are compared, and if the difference therebetween exceeds a predetermined value, it is then judged that an error has occurred in the direction data of the magnetic direction sensor. After judgement of this error, if the difference between the calculated direction variation quantity and angle variation quantity within the predetermined time becomes below a predetermined value, it is judged that the direction data of the magnetic direction sensor has returned to normalcy. Such judgement of normal return is limited to the case where an angular speed data exceeding a predetermined value is included in the gyro outputs within the predetermined time. By this, the normal return judgement of the magnetic direction data is to be performed using the data at the time a moving body has turned. It is noted that the time of the normal return judgement of the magnetic direction data may further be limited to the case where the aforesaid angle variation quantity within the assigned time exceeds a predetermined value and also the assigned time is below a predetermined time. Also, instead of comparing the direction variation quantity computed from the output difference of the magnetic direction sensor within the assigned time, and the angle variation quantity computed from the integration value of the gyro outputs within the assigned time, the angle variation quantity during times, which times are before and after a period in which an angular speed is over a predetermined value and in which times the variation of angular speeds is low, may be compared with the direction variation quantity obtained from the magnetic direction sensor within the times. In that case, the aforementioned normal return judgement of the magnetic direction data is performed only when it is clear that a moving body has turned. Although such comparison of variation quantities is performed in the case that a moving body has turned from a straight road to the right or the left, it is noted that, in order to increase noise resistance, direction variation quantity may also be computed by averaging the output values of the magnetic direction sensor within the period in which the variation corresponding to the traveling direction in the road before the right or left turn is low and averaging the output values of the magnetic direction sensor within the period in which the variation corresponding to the traveling direction in the road after the right or left turn is low, and the difference between the average direction values may be compared with the aforesaid angle variation quantity within the assigned time. As previously described, the normal judgement can compensate the disadvantages of the magnetic direction sensor and gyro. That is, when the data from the magnetic direction sensor is normal, it is preferentially used in the direction detection of moving bodies, since the magnetic direction sensor does not have the problem of accumulation of errors associated with the gyro. When, on the other hand, an error has occurred in the direction data of the magnetic direction due to deflection of the magnetic direction sensor, the angle variation quantity computed from the integrated value of the gyro outputs is preferentially used in the direction detection of moving bodies. When the direction data of the magnetic direction sensor has returned to normalcy, the data is again used preferentially. Consequently, errors in the direction detection can be reduced. If micro noise in the output data of the magnetic direction sensor is removed, the detection error will be further reduced. If the period in which the gyro output is preferentially used becomes longer and longer, it is necessary to reduce the detection error by using an expensive gyro which has a correction function for correcting the errors accumulated by integration. As a result, the cost of the locator is increased. However, in the locator of the present invention as constructed above, the need of an expensive gyro can be eliminated, since the direction data of the magnetic direction sensor is preferentially used soon after normal return. The variation to error state from normal state (occurrence of error) can be sufficiently detected even when a vehicle is travelling to a constant direction, since the normal judgement is performed when a compared value exceeds a predetermined value. However, in the judgement of normal return from error state, if the normal judgement is performed only at the time of straight travel, there will be the possibility of lacking the reliability of judgement. That is, if only data at the time of straight travel is used in the normal return judgement, the magnetic direction sensor indicates a constant direction with errors and the direction variation within a certain time becomes zero, depending on the extent of a region wherein deflection of terrestrial magnetism occurs. Of course, the angle variation of the gyro in that time is zero, and there is therefore the possibility of judging by mistake that the output data of the magnetic direction sensor has returned to normalcy. Therefore, it is preferable that the judgement of normal return be performed on the basis of the data when the direction of a vehicle angle is clearly changed like right or left turn. In this respect, the reliability of judgement will be further enhanced in an apparatus provided with a limited condition of judgement time which is again described in a preferred embodiment presented below. BRIEF DESCRIPTION OF THE DRAWINGS The above and other objects and advantages will become apparent from the following detailed description when read in conjunction with the accompanying drawings wherein: FIG. 1 is a block diagram illustrating schematically a locator according to the present invention; FIG. 2 is a block diagram of a normal judgement function that is used in the comparison of a direction variation quantity obtained from the magnetic sensor of FIG. 1 and an angle variation quantity obtained from the gyro of FIG. 1; and FIG. 3 is a graph which serves to explain the case that, instead of the direction variation quantity, the difference between average values obtained from the magnetic direction sensor outputs is compared with the angle variation quantity. DESCRIPTION OF THE PREFERRED EMBODIMENT Referring to Fig. 1 of the drawings, there is shown a preferred embodiments of a locator in accordance with the present invention. As shown in Fig. 1, the outputs of a magnetic direction sensor 1, a gyro 2 and a speed sensor 3 are respectively inputted through A/D (analog/digital) converters to a CPU (central processing unit) 5, wherein operation process is performed. Fig. 2 is a block diagram showing a normal judgement function of direction data obtained from the magnetic direction sensor 1. The output of the magnetic direction sensor 1 is inputted through the A/D converter 4 to a direction variation computing unit 6, while the output of the gyro 2 is inputted through the A/D converter 4 to an angular speed integrating unit 7. To the units 6 and 7 are inputted period assigning data from a judgement processing unit 8. If now anassigned period is from time T1 to T2, the direction output of the magnetic direction sensor 1 at the time T1 is defined in terms of A(T1), the direction output of the magnetic direction sensor 1 at the time T2 is defined in terms of A(T2), and the angular speed output of the gyro 2 is defined in terms of w(t), a direction variation quantity signal of | A(T2) - A(T1) | is inputted from the direction variation computing unit 6 to the judgement processing unit 8 including a comparison circuit, and also an angle variation quantity signal of is inputted from the angular speed integrating unit 7 to the judgement processing unit8. The difference between the two signals is obtained by the following equation. When the ϑ of the equation (1) is greater than a predetermined value C1, the judgement processing unit 8 judges that an error has occurred in the magnetic direction. When, on the other hand, the ϑ is smaller than a predetermined value C2, the judgement processing unit 8 judges that the magnetic direction has returned to normalcy. The results of these judgements are outputted. It is noted that, in the case of judging whether the magnetic direction data has returned to normalcy or not, the following condition (i) is and condition (ii) may be set and the execution periods specified. (i) In t = T1∼T2, an output of | w(t) | > C3 exists during the period of t. (ii) An output of exists during the period of t and also (T2 - T1) < T (a predetermined time). The predetermined values C1 and C2 may be the same value, or different from each other. In order to remove micro noises which tend to be mixed into the output data of the magnetic direction sensor, a low-pass filter 9 may be provided as shown by the broken lines in Fig. 2. Fig. 3 is a diagram which serves to explain the case that, instead of the direction variation quantity obtained from the output difference of the magnetic direction sensor 1 during the assigned period from T1 to T2 (indicated by t2), the difference between before and after averaged direction detection data is used in the comparison with the angle variation quantity. As shown in Fig. 3, the period t2 is one which includes periods t1 and t1′, wherein lower outputs than an output w2 exist, before and after an gyro output exceeding w1. The outputs of the magnetic direction sensor during the period t1 are averaged and the outputs during the period t1′ are averaged. The ϑ of the equation (1) is obtained by substituting the average value of the period t1 for the A(T1) of the equation(1) and the average value of the period t1′ for the A(T2) of the same equation. As described above, the present invention has its advantage in that an accuracy of location detection of moving bodies can be enhanced using only direction data of high reliability, since the normal judement of output data of the magnetic direction sensor is performed on the basis of the integral data (angle variation quantity) of the gyro outputs of a relatively short time, which gyro outputs do not undergo the influence of magnetism and do not have error accumulation. In addition, since the normal return of the magnetic direction data is judged quickly, direction data of few errors are obtained, and the cost of apparatus becomes inexpensive. While the subject invention has been described with relation to the preferred embodiment thereof, various modifications and adaptations thereof will now be apparent to those skilled in the art. All such modifications and adaptations as fall within the scope of the appended claims are intended to be covered thereby.

Claims: A method for determining errors in the direction data [A(t)] of a magnetic direction sensor (1) in which a difference between a direction variation quantity [A(T2) - A(T1)] within an assigned time (t₂) equal to the period (T2 - T1) between two points in time (T1,T2) obtained from said magnetic direction sensor (1), and an angle variation quantity within an assigned time (t₂) equal to the period (T2 - T1) between two points in time (T1,T2) which is obtained from an integral value of angular speed data [w(t)] of a gyro (2) is compared with a first predetermined value (C1), characterized by judging after detection of an occurence of an error, whether said direction data [A(t)] of said magnetic direction sensor (1) has returned to normalcy, said judging of return to normalcy being performed only when said difference between said direction variation quantity [A(T2) - A(T1)] and said angle variation quantity within an assigned time (t₂) equal to the period (T2 - T1) between two points in time (T1,T2) is below a second predetermined value (C2) and when an absolute value of said angular speed data [w(t)] of said gyro (2) within said assigned time (t2) exceeds a third predetermined value (C3). A method of claim 1, wherein said judging is performed only when further an absolute value of said angle variation quantity within said assigned time (t2) exceeds a fourth predetermined value (C4) and also said assigned time (t2) is below a predetermined time (T). A method of claim 1 or 2, wherein said assigned time (t2) comprises first and second periods (t1,t1') wherein absolute values of said angular speed data [w(t)] of said gyro (2) are below a fifth predetermined value (w2), and a third period between said first and second periods (t1,t1') wherein an absolute value of said angular speed data [w(t)] of said gyro (2) is above a sixth predetermined value (w1) greater than said fifth predetermined value (w2). A method of claim 3, wherein instead of said direction variation quantity [A(T2) - A(T1)] within said assigned time (t2), the difference between an average value of said direction data [A(t)] of said magnetic direction sensor (1) during said first period (t1) and an average value of said direction data [A(t)] of said magnetic direction sensor (1) during said second period (t1') is compared with said angle variation quantity within said assigned time (t2), wherein during said periods (t1, t1') the outputs of the magnetic direction sensor (1) are lower than the fifth predetermined value (w2). An apparatus for detecting the direction of moving bodies and determining errors in the direction data of a magnetic direction sensor (1), comprising the magnetic direction sensor (1), a gyro (2) and a normal judgement means (6,7,8) consisting of a central processing unit (5) adapted to perform the method of any of claims 1 - 4.

Inventors: OOKA AKIHIRO OSAKA WORKS OF SU, OOKA, AKIHIRO OSAKA WORKS OF SUMITOMO
Applicants: SUMITOMO ELECTRIC INDUSTRIES, SUMITOMO ELECTRIC INDUSTRIES, LTD.
Application year: 1989
Main classification: G01C21
IPC codes: G01C21, G01C17