Vehicle heading calculating apparatus

Abstract: In a vehicle rotational-angle calculating apparatus a first sensor outputs a signal representing an angular rate of a vehicle body. A second sensor outputs a signal representing a direction of the vehicle body. A signal representing a tentative rotational angle of the vehicle body is generated by integrating the output signal of the first sensor. First data pieces representing temporally spaced samples of the output signal of the second sensor and second data pieces representing temporally spaced samples of the tentative rotational signal are generated. The output signal of the first sensor is corrected into an offset-free signal in response to the calculated offset amount. A magnitude of the output signal of the first sensor is corrected in response to the sensitivity coefficient to convert the output signal of the first sensor into a gain-corrected signal. Furthermore the gain-corrected signal is integrated to generate a signal representing a final rotational angle of the vehicle body.

Description: BACKGROUND OF THE INVENTION Field of the Invention This invention relates to an apparatus for calculating a rotational angle or a turn angle of a moving object such as an automotive vehicle, and in particular to a vehicle rotational-angle calculating apparatus as defined in the preamble of claim 1. Description of the Prior Art Some car navigation systems (automotive navigation systems) include sensors for detecting angular rates or angular velocities of car bodies (vehicle bodies). Examples of such angular-velocity sensors are fiber-optic gyroscopes, mechanical gyroscopes, and vibratory gyroscopes. Generally, the output signal of an angular-velocity sensor has offset components in addition to detected information components. To accurately derive detected information from the output signal of the angular-velocity sensor, it is necessary to cancel the offset components in the angular-velocity sensor output signal. In a car navigation system, the amount of offset in the output signal of an angular-velocity sensor tends to be drifted by various causes. A prior-art device for canceling the signal offset can not adequately follow certain types of drift of the signal offset. A vehicle rotational-angle calculating apparatus of the above-mentioned kind is known from EP-A-0 567 268. This document discloses a vehicle heading correcting apparatus comprising a gyro, integrating means for integrating output data of said gyro, a global positioning system receiver, acquisition means for acquiring heading data a vehicle supplied from said global positioning system receiver, first computing means for computing a first turning angle of said vehicle based on two consecutive data of said heading data acquired by said acquisition means, second computing means for computing a second turning angle of the vehicle based on an integrated value of said output data of said gyro obtained by said integrating means during a period of time at which said two consecutive data are acquired, offset computing means for computing a difference between said first and second turning angles and for computing an offset value of said output data of said gyro by dividing said difference by said period of time, and offset correcting means for correcting said output data of said gyro with said offset value calculated by said offset computing means. SUMMARY OF THE INVENTION It is an object of this invention to provide an improved apparatus for calculating a rotational angle (a turn angle) of a moving object such as an automotive vehicle. The invention provides a vehicle rotational-angle calculating apparatus comprising a first sensor outputting a signal representing an angular rate of a vehicle body; a second sensor outputting a signal representing a direction of the vehicle body; first means connected to the first sensor for integrating the output signal of the first sensor to generate a signal representing a tentative rotational angle of the vehicle body; second means connected to the second sensor for generating first data pieces representing temporally spaced samples of the output signal of the second sensor respectively; third means connected to the first means for generating second data pieces representing temporally spaced samples of the signal generated by the first means respectively; fourth means connected to the second means for selecting a first pair of first data pieces and a second pair of first data pieces from among the first data pieces generated by the second means; fifth means connected to the fourth means for calculating a first time interval between the occurrence moments of the two first data pieces in the first pair, and a second time interval between the occurrence moments of the two first data pieces in the second pair; sixth means connected to the third means for selecting a first pair of second data pieces and a second pair of second data pieces from among the second data pieces generated by the third means, wherein the two second data pieces in the first pair relate to occurrence moments corresponding to the occurrence moments of the first data pieces in the first pair respectively, and the two second data pieces in the second pair relate to occurrence moments corresponding to the occurrence moments of the first data pieces in the second pair respectively; seventh means connected to the fourth means for calculating a first direction difference between directions represented by the two first data pieces in the first pair, and a second direction difference between directions represented by the two first data pieces in the second pair; eighth means connected to the fifth means for calculating a sum of the first time interval and the second time interval calculated by the fifth means; ninth means connected to the seventh means for calculating a sum of the first direction difference and the second direction difference calculated by the seventh means; tenth means connected to the eighth means for deciding whether or not the sum calculated by the eighth means is smaller than a predetermined time interval; eleventh means connected to the ninth means for deciding whether or not the sum calculated by the ninth, means is greater than a predetermined direction difference; twelfth means connected to the sixth means for calculating a first rotational-angle difference between tentative rotational angles represented by the two second data pieces in the first pair, and a second rotational-angle difference between tentative rotational angles represented by the two second data pieces in the second pair; thirteenth means connected to the twelfth means for calculating a sum of the first rotation-angle difference and the second rotational-angle difference calculated by the twelfth means; fourteenth means connected to the eighth means, the tenth means, the eleventh means, and the thirteenth means for calculating an amount of offset in the output signal of the first sensor in response to the sum calculated by the eighth means and the sum calculated by the thirteenth means in cases where the tenth means decides that the sum calculated by the eighth means is equal to or greater than the predetermined time interval and the eleventh means decides that the sum calculated by the ninth means is equal to or smaller than a predetermined direction difference; fifteenth means connected to the first sensor and the fourteenth means for correcting the output signal of the first sensor into an offset-free signal in response to the offset amount calculated by the fourteenth means; and sixteenth means connected to the fifteenth means for integrating the offset-free signal to generate a signal representing a final rotational angle of the vehicle body. According to a preferred embodiment the vehicle rotational-angle calculating apparatus further comprises seventeenth means connected to the seventh means for calculating a difference between the first direction difference and the second direction difference calculated by the seventh means; eighteenth means connected to the twelfth means for calculating a difference between the first rotational-angle difference and the second rotational-angle difference calculated by the twelfth means; nineteenth means connected to the seventeenth means and the eighteenth means for calculating a sensitivity coefficient related to the output signal of the first sensor in response to the difference calculated by the seventeenth means and the difference calculated by the eighteenth means; twentieth means connected to the first sensor and the nineteenth means for correcting a magnitude of the output signal of the first sensor in response to the sensitivity coefficient calculated by the nineteenth means to convert the output signal of the first sensor into a gain-corrected signal; and said sixteenth means being connected to the first sensor via the twentieth means and the fifteenth means for integrating the gain-corrected offset-free signal to generate said signal representing a final rotational angle of the vehicle body. According to another preferred embodiment the vehicle rotational-angle calculating apparatus further comprises : seventeenth means connected to the second means and the third means for storing each of the first data pieces and the second data pieces during a predetermined length of time. According to another preferred embodiment the vehicle rotational-angle calculating apparatus further comprises: seventeenth means connected to the second sensor for detecting an accuracy of the output signal of the second sensor, and eighteenth means connected to the fourteenth means and the thirteen means for controlling the offset amount calculated by the fourteenth means in response to the accuracy detected by the seventeenth means. According to another preferred embodiment the vehicle rotational-angle calculating apparatus further comprises: seventeenth means connected to the fourteenth means for deciding whether or not the offset amount calculated by the fourteenth means is in a predetermined range, and eighteenth means connected to the fifteenth means and the seventeenth means for controlling the correction by the fifteenth means in response to whether or not the offset amount calculated by the fourteenth means is in the predetermined range. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a flow diagram of the function of a prior-art apparatus for calculating a rotational angle of an automotive vehicle. Fig. 2 is a block diagram of a vehicle rotational-angle calculating apparatus according to a first example which is useful for the understanding of certain aspects of the invention as claimed in dependent claims 2 to 5. Fig. 3 is a flow diagram of the function of the vehicle rotational-angle calculating apparatus according to the first example. Fig. 4 is a diagram of an example of a time-domain change in the azimuth of a vehicle body. Fig. 5 is a flow diagram of a portion of the function of the vehicle rotational-angle calculating apparatus in Fig. 3. Fig. 6 is a diagram of another example of a time-domain change in the azimuth of a vehicle body. Fig. 7 is a flow diagram of the function of a vehicle rotational-angle calculating apparatus according to a second example which is useful for the understanding of certain aspects of the invention as claimed in dependent claims 2 to 5. DESCRIPTION OF THE PREFERRED EMBODIMENTS First, a prior-art apparatus for calculating a rotational angle (a turn angle) of an automotive vehicle will be described for a better understanding of this invention. Fig. 1 shows a prior-art rotational-angle calculating apparatus. With reference to Fig. 1, the prior-art apparatus includes an angular-velocity sensor 1 mounted on a vehicle body (not shown). The angular-velocity sensor 1 outputs a signal representing the angular velocity or the angular rate of the vehicle body. A tentative rotational-angle calculating section 2 following the angular-velocity sensor 1 calculates the tentative value of a rotational angle (a turn angle) of the vehicle body by integrating the output signal of the angular-velocity sensor 1. A stop/straight motion detecting section 3 connected to the vehicle body detects whether or not the vehicle body is stationary, and also detects whether or not the vehicle body is traveling straight. An offset calculating section 4 following the tentative rotational-angle calculating section 2 and the stop/straight motion detecting section 3 estimates or calculates an amount of offset in the output signal of the angular-velocity sensor 1 from output signals of the tentative rotational-angle calculating section 2 and the stop/straight motion detecting section 3. The offset calculating section 4 generates and outputs a signal representing the calculated amount of offset in the output signal of the angular-velocity sensor 1. The signal representing the offset amount is referred to as the offset-representing signal. An offset correcting section 5 follows the angular-velocity sensor 1 and the offset calculating section 4, and receives the output signals thereof. The offset correcting section 5 subtracts the output signal of the offset calculating section 4 from the output signal of the angular-velocity sensor 1, thereby removing offset components from the output signal of the angular-velocity sensor 1 and correcting the output signal of the angular-velocity sensor 1 into an offset-free angular-velocity signal. The offset correcting section 5 outputs the offset-free angular-velocity signal. A final rotational-angle calculating section 6 following the offset correcting section 5 calculates the final value of the rotational angle (the turn angle) of the vehicle body by integrating the offset-free angular-velocity signal outputted from the offset correcting section 5. The final rotational-angle calculating section 6 outputs a signal representing the calculated final value of the rotational angle (the turn angle) of the vehicle body. The offset calculating section 4 is enabled and disabled in response to the output signal of the stop/straight motion detecting section 3. Specifically, the offset-calculating section 4 is enabled when the output signal. of the stop/straight motion detecting section 3 represents that the vehicle body is stationary or traveling straight. Otherwise, the offset-calculating section 4 is disabled. When the vehicle body is stationary or traveling straight, angular-velocity components (information-indicating components) of the output signal of the angular-velocity sensor 1 are nullified but offset components remain therein. During other conditions of the vehicle body, angular-velocity components (information-indicating components) as well as offset components are present in the output signal of the angular-velocity sensor 1. When the vehicle body is stationary or traveling straight, the offset calculating section 4 is enabled and hence calculates the amount of offset in the output signal of the angular-velocity sensor 1 from the output signal of the tentative rotational-angle calculating section 2. During other conditions of the vehicle body, the offset calculating section 4 remains disabled. The offset-representing signal is held by a memory within the offset calculating section 4. The offset-representing signal can be continuously fed from the offset calculating section 4 to the offset correcting section 5. In general, each time the vehicle body stops or travels straight, the offset calculating section 4 updates the offset-representing signal. As long as the vehicle body turns or meanders, the offset-representing signal continues to be not updated. Therefore, in the case where the vehicle body remains turning or meandering for a long time, the updating of the offset-representing signal continues to be unexecuted. Since the offset components of the output signal of the angular-velocity sensor 1 tend to considerably drift in such a long time, the accuracy of the offset-representing signal significantly decreases as time goes by during the continuation of un-execution of the updating thereof. The decrease in the accuracy of the offset-representing signal results in a decrease in the accuracy of the output signal of the final rotational-angle calculating section 6 which represents the final value of the rotational angle of the vehicle body. First Example A first example which is useful for the understanding of certain aspects of the invention as claimed in dependent claims 2 to 5 will be described hereinafter. Fig. 2 shows a vehicle rotational-angle calculating apparatus according to a first example. With reference to Fig. 2, the vehicle rotational-angle calculating apparatus includes an angular-velocity sensor 11 mounted on a vehicle body (not shown). The angular-velocity sensor 1 outputs a signal representing the angular velocity or the angular rate of the vehicle body. The angular-velocity sensor 11 uses one of various gyroscopes such as fiber-optic gyroscopes, mechanical gyroscopes, and vibratory gyroscopes. An azimuth sensor (a direction sensor) 12 mounted on the vehicle body outputs a signal representing the azimuth (the pointing direction) of the vehicle body. Thus, the output signal of the azimuth sensor 12 represents the direction in which the vehicle body is pointed, or the direction in which the vehicle is advancing. The azimuth sensor 12 uses a GPS (global positioning system) direction sensor or a geomagnetic sensor. A signal processor or a microcomputer 80 connected to the angular-velocity sensor 11 and the azimuth sensor 12 receives the output signals thereof. The signal processor 80 generates a signal representative of a rotational angle (a turn angle) of the vehicle body in response to the output signals of the angular-velocity sensor 11 and the azimuth sensor 12. The generated signal representing the rotational angle is referred to as the rotational-angle signal. The signal processor 80 outputs the rotational-angle signal. The signal processor 80 includes a combination of an interface circuit (an input/output circuit), a CPU, a RAM, and a ROM. The interface circuit has analog-to-digital converters for converting the output signals of the angular-velocity sensor 11 and the azimuth sensor 12 into corresponding digital signals (data). Specifically, a first analog-to-digital converter periodically samples the output signal of the angular-velocity sensor 11, and changes every resultant sample into a corresponding digital data piece. In addition, a second analog-to-digital converter periodically samples the output signal of the azimuth sensor 12, and changes every resultant sample into a corresponding digital data piece. The timing of the sampling of the output signal of the angular-velocity sensor 11 substantially agrees with the timing of the sampling of the output signal of the azimuth sensor 12. The signal processor 80 operates in accordance with a program stored in the ROM. Fig. 3 is a flow diagram of the function of the signal processor 80 which is determined by the aforementioned program. It should be noted that Fig. 3 does not directly show the hardware of the signal processor 80. It is a common practice in the art to use such a function flow diagram in explaining the operation of a signal processor. With reference to Fig. 3, a tentative rotational-angle calculating section 13 periodically calculates the tentative value of a rotational angle (a turn angle) of the vehicle body by integrating the output signal of the angular-velocity sensor 11. For example, the integration is executed by adding or accumulating digitized samples of the output signal of the angular-velocity sensor 11. A rotation data collecting section 14 collects data pieces representing the latest and previous tentative rotational-angle values which are calculated by the tentative rotational-angle calculating section 13. Specifically, the collected data pieces representing the latest and previous tentative rotational-angle values are stored in the RAM within the signal processor 80. In addition, the rotation data collecting section 14 collects data pieces representing the latest and previous azimuths of the vehicle body which are represented by the output signal of the azimuth sensor 12. Occurrence moments with respect to the latest and previous azimuths substantially agree with occurrence moments related to the latest and previous tentative rotational-angle values respectively. The collected data pieces representing the latest and previous azimuths are stored in the RAM within the signal processor 80. The collected data pieces representing the latest and previous tentative rotational-angle values are referred to as the first-type rotation data pieces. The collected data pieces representing the latest and previous azimuths are referred to as the second-type rotation data pieces. It is preferable that the number of the first-type rotation data pieces and the number of the second-type rotation data pieces held by the RAM within the signal processor 80 are limited to a given number. In this case, the oldest first-type and second-type rotation data pieces are erased from the RAM each time the new first-type and second-type rotation data pieces are written into the RAM. Thus, the time during which every first-type rotation data piece and every second-type rotation data piece remains stored in the RAM is limited to a given interval. An offset calculating section 15 receives the first-type and second-type rotation data pieces which are collected by the rotation data collecting section 14. The offset calculating section 15 estimates or calculates an amount of offset in the output signal of the angular-velocity sensor 11 from the first-type and second-type rotation data pieces. The offset calculating section 15 generates a signal representing the calculated amount of offset in the output signal of the angular-velocity sensor 11. The generated signal representing the calculated amount of offset is referred to as the offset-representing signal. An offset correcting section 16 receives a digitized version of the output signal of the angular-velocity sensor 11. The offset correcting section 16 is informed of the offset-representing signal generated by the offset calculating section 15. The offset correcting section 16 subtracts the offset-representing signal from the digitized version of the output signal of the angular-velocity sensor 11, thereby removing offset components from the digitized version of the output signal of the angular-velocity sensor 11 and correcting the digitized version of the output signal of the angular-velocity sensor 11 into an offset-free angular-velocity signal. A sensitivity coefficient calculating section (A gain factor calculating section) 17 receives the first-type and second-type rotation data pieces which are collected by the rotation data collecting section 14. The sensitivity coefficient calculating section 17 estimates or calculates a sensitivity coefficient (a gain factor), related to the output signal of the angular-velocity sensor 11, from the first-type and second-type rotation data pieces. The sensitivity coefficient calculating section 17 generates a signal representing the calculated sensitivity coefficient related to the output signal of the angular-velocity sensor 11. The generated signal representing the calculated sensitivity coefficient is referred to as the sensitivity coefficient signal. A sensitivity coefficient correcting section (A gain factor correcting section) 1& receives the offset-free angular-velocity signal which is generated by the offset correcting section 16. The sensitivity coefficient correcting section 18 also receives the sensitivity coefficient signal which is generated by the sensitivity coefficient calculating section 17. The sensitivity coefficient correcting section 18 corrects the offset-free angular-velocity signal into a gain-corrected angular-velocity signal in response to the sensitivity coefficient signal. Specifically, the gain-corrected angular-velocity signal results from dividing the offset-free angular-velocity signal by the sensitivity coefficient which is represented by the sensitivity coefficient signal. A final rotational-angle calculating section 19 receives the gain-controlled angular-velocity signal which is generated by the sensitivity coefficient correcting section 18. The final rotational-angle calculating section 19 calculates the final value of the rotational angle (the turn angle) of the vehicle body by integrating the gain-corrected angular-velocity signal. The final rotational-angle calculating section 19 generates and outputs a signal representing the calculated final value of the rotational angle of the vehicle body. The output signal of the final rotational-angle calculating section 19 constitutes the rotational-angle signal. The offset calculating section 15 will be further described. It is now assumed that, as shown in Fig. 4, the vehicle body sequentially assumes azimuths (pointing directions) 21, 22, 23, 24, and 25. The azimuths 21, 22, 23, 24, and 25 are also denoted by a, b, c, d, and e respectively. The offset calculating section 15 refers to the azimuths a, b, c, d, and e which are represented by the second-type rotation data pieces collected by the rotation data collecting section 14. The offset calculating section 15 also uses the first-type rotation data pieces collected by the rotation data collecting section 14. The first-type rotation data pieces represent the tentative rotational-angle values a, b, c, d, and e which correspond in occurrence moments to the azimuths a, b, c, d, and e respectively. The offset calculating section 15 calculates the time Tea between the moment of the occurrence of the azimuth a and the moment of the occurrence of the azimuth e. The offset calculating section 15 calculates the difference ea between the tentative rotational-angle value a and the tentative rotational-angle value e which relate to occurrence moments substantially equal to the moments of the occurrence of the azimuths a and e respectively. The offset calculating section 15 estimates or calculates a first amount Aofs of offset in the output signal of the angular-velocity sensor 11 by referring to the following equation. Aofs = ea/Tea The offset calculating section 15 evaluates the calculated first offset amount Aofs. Specifically, the offset calculating section 15 compares the time Tea with a predetermined reference time corresponding to a preset shortest interval. In addition, the offset calculating section 15 calculates the difference ea between the azimuth a and the azimuth e. Here, the azimuth difference ea is given as ea=e-a. The offset calculating section 15 compares the azimuth difference ea with a predetermined reference azimuth difference corresponding to a preset maximum azimuth difference. In the case where the time Tea is equal to or longer than the predetermined reference time and the azimuth difference ea is equal to or smaller than the predetermined reference azimuth difference, the offset calculating section 15 updates or newly calculates a second amount Bofs of offset in the output signal of the angular-velocity sensor 11 by referring to the following equation. Bofs = Aofs On the other hand, when the time Tea is shorter than the predetermined reference time or when the azimuth difference ea is greater than the predetermined reference azimuth difference, the offset calculating section 15 discards the calculated first offset amount Aofs and holds a second offset amount Bofs unchanged. A signal indicating the second offset amount Bofs constitutes the offset-representing signal. Fig. 5 shows the offset calculating section 15 and the offset correcting section 16. It should be noted that Fig. 5 is a function flow diagram which does not directly show the hardware. With reference to Fig. 5, the offset calculating section 15 estimates or calculates an amount of offset in the output signal of the angular-velocity sensor 11 from the first-type and second-type rotation data pieces collected by the rotation data collecting section 14. The offset calculating section 15 generates a signal representing the calculated amount of offset in the output signal of the angular-velocity sensor 11. The generated signal representing the calculated amount of offset is referred to as the offset-representing signal. The offset correcting section 16 includes a subtracting section which receives a digitized version of the output signal of the angular-velocity sensor 11. The subtracting section 16 is informed of the offset-representing signal generated by the offset calculating section 15. The subtracting section 16 subtracts the offset-representing signal from the digitized version of the output signal of the angular-velocity sensor 11, thereby removing offset components from the digitized version of the output signal of the angular-velocity sensor 11 and correcting the digitized version of the output signal of the angular-velocity sensor 11 into an offset-free angular-velocity signal. The offset-free angular-velocity signal generated by the subtracting section 16 is fed to the sensitivity coefficient correcting section 18. The sensitivity coefficient calculating section 17 will be further described. It is now assumed that, as shown in Fig. 6, the vehicle body sequentially assumes azimuths (pointing directions) 41, 42, 43, and 44. The azimuths 41, 42, 43, and 44 are also denoted by a, b, c, and d respectively. The sensitivity coefficient calculating section 17 refers to the azimuths a, b, c, and d which are represented by the second-type rotation data pieces collected by the rotation data collecting section 14. The offset calculating section 17 also uses the first-type rotation data pieces collected by the rotation data collecting section 14. The first-type rotation data pieces represent the tentative rotational-angle values a, b, c, and d which correspond in occurrence moments to the azimuths a, b, c, and d respectively. The sensitivity coefficient calculating section 17 calculates the difference ba between the azimuth a and the azimuth b. Here, the azimuth difference ba is given as ba=b-a. The sensitivity coefficient calculating section 17 calculates the difference dc between the azimuth c and the azimuth d. Here, the azimuth difference dc is given as dc=d-c. The sensitivity coefficient calculating section 17 calculates a synthetic azimuth difference sns by referring to the following equation. sns = dc - ba The sensitivity coefficient calculating section 17 calculates the difference ba between the tentative rotational-angle value a and the tentative rotational-angle value b which relate to occurrence moments substantially equal to the moments of the occurrence of the azimuths a and b respectively. The sensitivity coefficient calculating section 17 calculates the difference dc between the tentative rotational-angle value c and the tentative rotational-angle value d which relate to occurrence moments substantially equal to the moments of the occurrence of the azimuths c and d respectively. The sensitivity coefficient calculating section 17 calculates a synthetic angular difference sns by referring to the following equation. sns = dc - ba The sensitivity coefficient calculating section 17 estimates or calculates a first sensitivity coefficient (a first gain factor) Gf, related to the output signal of the angular-velocity sensor 11, by referring to the following equation. Gf = sns/sns The calculated first sensitivity coefficient Gf indicates a relative sensitivity error. When the relative sensitivity error is equal to, for example, +3% (+0.03), the first sensitivity coefficient Gf is expressed as 1.03. The sensitivity coefficient calculating section 17 evaluates the calculated first sensitivity coefficient Gf. Specifically, the sensitivity coefficient calculating section 17 compares the calculated synthetic azimuth difference sns with a predetermined reference azimuth difference corresponding to a preset minimum azimuth difference. In the case where the synthetic azimuth difference sns is equal to or greater than than the predetermined reference azimuth difference, the sensitivity coefficient calculating section 17 updates or newly calculates a second sensitivity coefficient (a second gain factor) Hf, related to the output signal of the angular-velocity sensor 11, by referring to the following equation. Hf = Gf On the other hand, when the synthetic azimuth difference sns is smaller than the predetermined reference azimuth difference, the sensitivity coefficient calculating section 17 discards the calculated first sensitivity coefficient Gf and holds a second sensitivity coefficient Hf unchanged. A signal indicating the second sensitivity coefficient Hf constitutes the sensitivity coefficient signal. The vehicle rotational-angle calculating apparatus of this embodiment may be modified as follows. A modified vehicle rotational-angle calculating apparatus additionally includes a judging section for deciding whether or not the offset amount calculated by the offset calculating section 15 is in a predetermined range, and an adjusting section for controlling the correction by the offset correcting section 16 in response to the result of the decision by the judging section. The vehicle rotational-angle calculating apparatus of this embodiment has the following advantages. In a wide range of conditions of the vehicle body, the offset-representing signal generated by the offset calculating section 15 is periodically updated. For example, even in the case where the vehicle body remains turning or meandering for a long time, the offset-representing signal can be periodically updated. Therefore, the offset-representing signal adequately follows a drift in the offset components of the output signal of the angular-velocity sensor 11. This fact causes a high accuracy of the offset-free angular-velocity signal generated by the offset correcting section 16, and also a high accuracy of the rotational-angle signal generated by the final rotational-angle calculating section 19. The sensitivity conditions related to the offset-free angular-velocity signal or the output signal of the angular-velocity sensor 11 are corrected time to time by the sensitivity coefficient correcting section 18. This correction enables a high accuracy of the rotational-angle signal generated by the final rotational-angle calculating section 19. First Embodiment A first embodiment of this invention is similar to the first example except that the offset calculating section 15 (see Fig. 3) is modified as follows. The offset calculating section 15 in the first embodiment will now be described. It is now assumed that, as shown in Fig. 4, the vehicle body sequentially assumes azimuths (pointing directions) 21, 22, 23, and 24. The azimuths 21, 22, 23, and 24 are also denoted by a, b, c, and d respectively. The offset calculating section 15 refers to the azimuths a, b, c, and d which are represented by the second-type rotation data pieces collected by the rotation data collecting section 14. The offset calculating section 15 also uses the first-type rotation data pieces collected by the rotation data collecting section 14. The first-type rotation data pieces represent the tentative rotational-angle values a, b, c, and d which correspond in occurrence moments to the azimuths a, b, c, and d respectively. The offset calculating section 15 calculates the time Tba between the moment of the occurrence of the azimuth a and the moment of the occurrence of the azimuth b. The offset calculating section 15 calculates the time Tdc between the moment of the occurrence of the azimuth c and the moment of the occurrence of the azimuth d. The offset calculating section 15 calculates the difference ba between the tentative rotational-angle value a and the tentative rotational-angle value b which relate to occurrence moments substantially equal to the moments of the occurrence of the azimuths a and b respectively. The offset calculating section 15 calculates the difference dc between the tentative rotational-angle value c and the tentative rotational-angle value d which relate to occurrence moments substantially equal to the moments of the occurrence of the azimuths c and d respectively. The offset calculating section 15 estimates or calculates a first amount Aofs of offset in the output signal of the angular-velocity sensor 11 by referring to the following equation. Aofs = (ba + dc)/(Tba + Tdc) The offset calculating section 15 evaluates the calculated first offset amount Aofs. Specifically, the offset calculating section 15 compares the time Tba + Tdc with a predetermined reference time corresponding to a preset shortest interval. In addition, the offset calculating section 15 calculates the difference ba between the azimuth a and the azimuth b. Here, the azimuth difference ba is given as ba=b-a. The offset calculating section 15 calculates the difference dc between the azimuth c and the azimuth d. Here, the azimuth difference dc is given as dc=d-c. The offset calculating section 15 calculates a total azimuth difference ofs by referring to the following equation. ofs = ba + dc The offset calculating section 15 compares the calculated total azimuth difference ofs with a predetermined reference azimuth difference corresponding to a preset maximum azimuth difference. In the case where the time Tba + Tdc is equal to or longer than the predetermined reference time and the total azimuth difference ofs is equal to or smaller than the predetermined reference azimuth difference, the offset calculating section 15 updates or newly calculates a second amount Bofs of offset in the output signal of the angular-velocity sensor 11 by referring to the following equation. Bofs = Aofs On the other hand, when the time Tba + Tdc is shorter than the predetermined reference time or when the total azimuth difference ofs is greater than the predetermined reference azimuth difference, the offset calculating section 15 discards the calculated first offset amount Aofs and holds a second offset amount Bofs unchanged. A signal indicating the second offset amount Bofs constitutes the offset-representing signal. Second Example Fig. 7 shows a second example which is useful for the understanding of certain aspects of the invention as claimed in dependent claim 2 to 5 and which is similar to the first example except for design changes indicated hereinafter. The example of Fig. 7 includes an azimuth accuracy detecting section 20. The azimuth accuracy detecting section 20 generates information of accuracies of azimuth data pieces collected by a rotation-data collecting section 14. The azimuth accuracy detecting section 20 informs the rotation-data collecting section 14 and an offset calculating section 15 of the accuracies of the azimuth data pieces. The offset calculating section 15 determines the accuracies of azimuth differences in response to the accuracies of the azimuth data pieces. Higher priority is given to azimuth differences having higher accuracies while lower priority is given to azimuth differences having lower accuracies. Generally, the azimuth differences with higher priority are used in the calculation of an offset amount while the azimuth differences with lower priority are disregarded.

Claims: A vehicle rotational-angle calculating apparatus comprising: a first sensor (11) outputting a signal representing an angular rate of a vehicle body; a second sensor (12) outputting a signal representing a direction of the vehicle body; first means (13) connected to the first sensor (11) for integrating the output signal of the first sensor (11) to generate a signal representing a tentative rotational angle of the vehicle body; second means (14) connected to the second sensor (12) for generating first data pieces representing temporally spaced samples of the output signal of the second sensor (12) respectively; third means (14) connected to the first means (13) for generating second data pieces representing temporally spaced samples of the signal generated by the first means (13) respectively; fourth means (15) connected to the second means (14) for selecting a first pair of first data pieces and a second pair of first data pieces from among the first data pieces generated by the second means (14); characterised in that it further comprises: fifth means (15) connected to the fourth means (15) for calculating a first time interval between the occurrence moments of the two first data pieces in the first pair, and a second time interval between the occurrence moments of the two first data pieces in the second pair; sixth means (15) connected to the third means (14) for selecting a first pair of second data pieces and a second pair of second data pieces from among the second data pieces generated by the third means (14), wherein the two second data pieces in the first pair relate to occurrence moments corresponding to the occurrence moments of the first data pieces in the first pair respectively, and the two second data pieces in the second pair relate to occurrence moments corresponding to the occurrence moments of the first data pieces in the second pair respectively; seventh means (15) connected to the fourth means (15) for calculating a first direction difference between directions represented by the two first data pieces in the first pair, and a second direction difference between directions represented by the two first data pieces in the second pair; eighth means (15) connected to the fifth means (15) for calculating a sum of the first time interval and the second time interval calculated by the fifth means (15); ninth means (15) connected to the seventh means (15) for calculating a sum of the first direction difference and the second direction difference calculated by the seventh means (15); tenth means (15) connected to the eighth means (15) for deciding whether or not the sum calculated by the eighth means (15) is smaller than a predetermined time interval; eleventh means (15) connected to the ninth means (15) for deciding whether or not the sum calculated by the ninth means (15) is greater than a predetermined direction difference; twelfth means (15) connected to the sixth means (15) for calculating a first rotational-angle difference between tentative rotational angles represented by the two second data pieces in the first pair, and a second rotational-angle difference between tentative rotational angles represented by the two second data pieces in the second pair; thirteenth means (15) connected to the twelfth means (15) for calculating a sum of the first rotation-angle difference and the second rotational-angle difference calculated by the twelfth means (15); fourteenth means (15) connected to the eighth means (15), the tenth means (15), the eleventh means (15), and the thirteenth means (15) for calculating an amount of offset in the output signal of the first sensor (11) in response to the sum calculated by the eighth means (15) and the sum calculated by the thirteenth means (15) in cases where the tenth means (15) decides that the sum calculated by the eighth means (15) is equal to or greater than the predetermined time interval and the eleventh means decides (15) that the sum calculated by the ninth means (15) is equal to or smaller than a predetermined direction difference; fifteenth means (16) connected to the first sensor (11) and the fourteenth means (15) for correcting the output signal of the first sensor (11) into an offset-free signal in response to the offset amount calculated by the fourteenth means (15); and sixteenth means (19) connected to the fifteenth means (16) for integrating the offset-free signal to generate a signal representing a final rotational angle of the vehicle body. A vehicle rotational-angle calculating apparatus according to claim 1, characterized in that it further comprises: seventeenth means (17) connected to the seventh means (15) for calculating a difference between the first direction difference and the second direction difference calculated by the seventh means (15); eighteenth means (17) connected to the twelfth means (15) for calculating a difference between the first rotational-angle difference and the second rotational-angle difference calculated by the twelfth means (15); nineteenth means (17) connected to the seventeenth means (17) and the eighteenth means (17) for calculating a sensitivity coefficient related to the output signal of the first sensor (11) in response to the difference calculated by the seventeenth means (17) and the difference calculated by the eighteenth means (17); twentieth means (18) connected to the first sensor (11) and the nineteenth means (17) for correcting a magnitude of the output signal of the first sensor (11) in response to the sensitivity coefficient calculated by the nineteenth means (17) to convert the output signal of the first sensor (11) into a gain-corrected signal; and said sixteenth means (19) being connected to the first sensor (11) via the twentieth means (18) and the fifteenth means (16) for integrating the gain-corrected offset-free signal to generate said signal representing a final rotational angle of the vehicle body. A vehicle rotational-angle calculating apparatus according to claim 1, characterized in that it further comprises: seventeenth means (14) connected to the second means (14) and the third means (14) for storing each of the first data pieces and the second data pieces during a predetermined length of time. A vehicle rotational-angle calculating apparatus according to claim 1, characterized in that it farther comprises: seventeenth means (20) connected to the second sensor (12) for detecting an accuracy of the output signal of the second sensor (12), and eighteenth means (15) connected to the fourteenth means (15) and the seventeenth means (20) for controlling the offset amount calculated by the fourteenth means (15) in response to the accuracy detected by the seventeenth means (20). A vehicle rotational-angle calculating apparatus according to claim 1, characterized in that it further comprises: seventeenth means connected to the fourteenth means (15) for deciding whether or not the offset amount calculated by the fourteenth means (15) is in a predetermined range, and eighteenth means connected to the fifteenth means (16) and the seventeenth means for controlling the correction by the fifteenth means (16) in response to whether or not the offset amount calculated by the fourteenth means (15) is in the predetermined range.

Inventors: IWATA EIJI, MAEDA HIROYUKI, IWATA, EIJI, MAEDA, HIROYUKI
Applicants: MATSUSHITA ELECTRIC IND CO LTD, MATSUSHITA ELECTRIC INDUSTRIAL CO., LTD.
Application year: 1995
Main classification: G01C21
IPC codes: G01C21