Method for determining the angular position of a motor vehicle shaft

The method compensates for shaft position sensor errors by calculating harmonic errors in sine and cosine signals, enhancing accuracy with minimal processing, addressing inaccuracies from eccentricity and tilt in motor vehicle shaft position sensing.

FR3142249B1Active Publication Date: 2024-10-04CONTINENTAL AUTOMOTIVE TECHNOLOGIES GMBH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
FR2023002449
Authority / Receiving Office
FR · FR
Patent Type
Patents
Current Assignee / Owner
Priority Date
2022-11-23
Filing Date
2023-03-16
Publication Date
2024-10-04
Estimated Expiration
2043-03-16

AI Technical Summary

Technical Problem

Existing shaft position sensors in motor vehicles suffer from errors due to eccentricity and tilt tolerances during assembly, leading to inaccuracies in angular position measurement, which conventional filtering methods struggle to correct effectively without significant processing requirements.

Method used

A method that compensates for harmonic errors by calculating the angular position using sine and cosine signals, determining zero crossings, and averaging angular resolution to correct for misalignments, requiring minimal processing capacity.

Benefits of technology

Significantly reduces angular position measurement errors by integrating harmonic errors, thus improving accuracy with reduced hardware and software demands.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000017_0000
    Figure 00000017_0000
  • Figure 00000017_0001
    Figure 00000017_0001
  • Figure 00000018_0000
    Figure 00000018_0000
Patent Text Reader

Abstract

The invention relates to a method for determining the angular position of a motor vehicle shaft, comprising in particular the calculation (E8) of the average angular resolution, the calculation (E9) of the zero-crossing time of the cosine signal from the zero-crossing time of the sine signal and the average angular resolution, the determination (E10) of the measured angle at the calculated zero-crossing time of the cosine signal, the calculation (E11) of the amplitude of the second harmonic of the measured angle signal, the calculation (E12) of a second-harmonic error from the calculated amplitude of the second harmonic, and the calculation (E13) of a compensated angle representing the corrected angular position of the shaft from the real-time measured angle and the calculated second-harmonic error. Figure 5 (for the abstract)
Need to check novelty before this filing date? Find Prior Art

Description

Title of the invention: Method for determining the angular position of a motor vehicle shaft Technical field

[0001] The present invention relates to the field of shaft position sensors in a motor vehicle and more particularly concerns a method for measuring the angular position of a rotating shaft of a motor vehicle from a target fixed to a free end of said shaft and a position sensor mounted opposite said target, as well as a system suitable for implementing said method. Prior art

[0002] Nowadays, it is known to use a so-called "position" sensor in a motor vehicle in order to measure the angular position of a shaft relative to a reference position. For example, it is known to measure the angular position of a crankshaft or a camshaft of a heat engine in order to determine the injection times of fuel into the cylinders or to measure the position of a rotor shaft in an electric machine in order to control it.

[0003] In a known manner, the sensor is mounted facing a free end of the shaft in the center of which is mounted a magnetic target. The sensor uses the electromagnetic response of the target to generate a sine signal and a cosine signal representative of the angular variations of the target relative to the sensor during rotation of the shaft and whose arc tangent makes it possible to obtain an angle value signal giving the angular position of the shaft relative to the reference position. This sensor can for example be of the TMR (Tunnel MagnetoResistance), GMR (Giant MagnetoResistance) or AMR (Anisotropic MagnetoResistance) type or a Hall effect sensor.

[0004] In a known solution, the sensor comprises an electronic circuit on which are mounted a first Wheatstone bridge for generating the sine signal and a second Wheatstone bridge for generating the cosine signal. In the case of an AMR type sensor, the first Wheatstone bridge and the second Wheatstone bridge are mechanically offset by an angle of 45°. In the case of a GMR or TMR type sensor, the first Wheatstone bridge and the second Wheatstone bridge are mechanically offset by an angle of 90°.

[0005] An eccentricity tolerance is allowed when mounting the sensor relative to the center of the target. Similarly, an inclination tolerance between the electronic circuit and the target, which should ideally be parallel, is allowed. However, these tolerances lead to an error in the value of the angular position delivered by the sensor. In particular, the more the sensor is offset from the center of the target, and therefore from the axis of shaft rotation, and the more the angular error increases.

[0006] [Fig.l] shows the variation of the error Err (in degrees), observed between the calculated angle and the actual angle (in degrees), as a function of the actual angle ANG (in degrees) of the shaft. It can be seen that the error Err between the calculation carried out by the sensor and the actual angular position ANG of the shaft can be up to approximately plus or minus 8°.

[0007] One solution would be to ensure a centered and parallel placement of the sensor and the target, but assembly constraints on production lines always imply tolerances. [Fig. 2] shows the error Err (in degrees), observed between the calculated angle and the actual angle (in degrees), as a function of the actual angle ANG of the shaft (in degrees). It can be seen that the error Err between the calculation carried out by the sensor and the actual angular position ANG of the shaft can be up to approximately plus or minus 0.12° for an eccentricity offset of 0.25 mm. Another solution consists of processing the angle value signal by filtering in order to reduce the error. However, the effectiveness of such processing may be limited because it only works correctly at fixed frequencies in particular.Furthermore, processing the angle value signal by filtering requires significant processing capabilities, both hardware and software, which presents another disadvantage.

[0008] It would therefore be advantageous to propose a solution making it possible to remedy at least part of these drawbacks. Statement of the invention

[0009] To this end, the invention firstly relates to a method for determining the angular position of a motor vehicle shaft from a target, fixed to a free end of said shaft and comprising a magnetic element, and a magnetoresistance position sensor, mounted opposite said target, said method comprising

[0010] - at each instant: the rotation of the shaft, the generation of a sinus signal, recording the values ​​of the sine signal in a first memory area, generating a cosine signal, recording the values ​​of the cosine signal in a second memory area, calculating a so-called “measured” angle in real time from the sine and cosine signals representing the angular position of the shaft, recording the calculated measured angle in a third memory area,

[0011] - over a period of sine and cosine signals:

[0012] - determination of the angle measured when the sinus signal crosses zero, preference for positive over negative,

[0013] - determination of the zero crossing time of the sinus signal,

[0014] - calculation of the average angular resolution, said average angular resolution cor corresponding to the derivative of the measured angle determined with respect to time,

[0015] - calculation of the zero crossing time of the cosine signal, preferably from negative to positive, from the zero crossing time of the sine signal and the average angular resolution,

[0016] - determination of the measured angle at the calculated time of zero crossing of the signal cosine,

[0017] - calculation of the amplitude of the second harmonic of the angle signal measured from of the measured angle determined during the zero crossing time of the sine signal and the measured angle determined during the calculated zero crossing time of the cosine signal,

[0018] - calculation of a second harmonic error from the calculated amplitude of the second harmonic,

[0019] - calculation of a compensated angle representing the corrected angular position of the shaft to from the real-time measured angle and the calculated second harmonic error

[0020] By determining the harmonic angular error due in part to the eccentricity of the sensor relative to the axis of rotation of the shaft, the invention makes it possible to integrate said harmonic error into a calculation making it possible to compensate for the imperfections of the system and thus significantly reduce the error made in determining the angle. In addition, the method according to the invention requires only a low processing capacity, which makes it possible to limit hardware and memory costs.

[0021] An obvious solution to at least partially overcome the drawbacks of the prior art would have been to process the signal using a Fast Fourier Transform, but such a solution would require significant processing capabilities at the level of the electronic control unit.

[0022] Preferably, the compensated angle [Math.l] $ compensated

[0023] representing the corrected angular position of the shaft is calculated according to the following formula:

[0024] [Math.2] $ compensated ~ @measured harmonic

[0025] where [Math.3] fi ^measured

[0026] is the measured angle and [Math.4] EA" fharmonic

[0027] the second harmonic error.

[0028] Preferably, the average angular resolution is calculated according to the following formula

[0029]

[0030]

[0031]

[0032]

[0033]

[0034]

[0035]

[0036]

[0037]

[0038]

[0039]

[0040]

[0041]

[0042]

[0043]

[0044]

[0045]

[0046]

[0047]

[0048]

[0049] [Math.5] P - K"1'angular measure OR [Math.6] R^angular is the angular resolution, At is the time interval between two measurements and [Math.7] measure The difference between angles measured at two successive times. Preferably the zero crossing time of the cosine signal X2 is calculated according to the following formula: [Math. 8] X2 = X1+^-^— ^^^angular where XI is the zero crossing time of the sine signal from positive to negative and [Math.9] ReSangular the average angular resolution. Preferably the amplitude of the second harmonic of the measured angle signal is calculated according to the following formula: [Math. 10] . 0v1+9O-0™ Amp, = ----.....— r harmonic 2. Or [Math. 11] ^¥1 is the angle determined during the zero crossing time of the sinus signal XI and [Math. 12] is the angle determined during the zero crossing time of the cosine signal X2. Preferably, the second harmonic error [Math. 13] prr.] • hannom.qtie as a function of time t is calculated according to the following formula: [Math. 14] Err^amatiique ( f ) ~ Amp ( 2ü)t ) Or [Math. 15] Amp, 1 harmonic

[0050] is the amplitude of the second harmonic and co the angular rotation speed of the shaft (with co=(360 / Resanguinaire).

[0051] Preferably, the detection of the passage of the cosine signal to 0 is a passage from negative to positive of the amplitude of said cosine signal.

[0052] The invention also relates to a computer program product characterized in that it comprises a set of program code instructions which, when executed by one or more processors, configure the processor(s) to implement a method as presented previously.

[0053] The invention also relates to a system for determining the angular position of a motor vehicle shaft from a target, fixed to a free end of said shaft and comprising a magnetic element, and a magnetoresistance position sensor, mounted opposite said target, said system comprising said sensor, said sensor being configured to generate a sine signal and a cosine signal representative of the angular position of the shaft, the system being configured to:

[0054] - at each instant: generate a sine signal, record the values ​​of the sine signal in a first memory area, generate a cosine signal, record the values ​​of the cosine signal in a second memory area, calculate a so-called “measured” angle in real time from the sine and cosine signals representing the angular position of the shaft and record the calculated measured angle in a third memory area,

[0055] - determine the angle measured when the sinus signal crosses zero,

[0056] - determine the zero crossing time of the sinus signal,

[0057] - calculate the average angular resolution,

[0058] - calculate the zero crossing time of the cosine signal from the zero crossing time zero of the sine signal and the average angular resolution,

[0059] - determine the angle measured at the calculated time of zero crossing of the cosine signal,

[0060] - calculate the amplitude of the second harmonic of the measured angle signal from of the measured angle determined during the zero crossing time of the sine signal and of the measured angle determined during the calculated zero crossing time of the cosine signal,

[0061] - calculate a second harmonic error from the calculated amplitude of the second harmonic,

[0062] - calculate a compensated angle representing the corrected angular position of the shaft to from the real-time measured angle and the calculated second harmonic error.

[0063] Preferably, the system is configured to calculate the compensated angle representing the corrected angular position of the shaft is calculated according to the following formula:

[0064]

[0065]

[0066]

[0067]

[0068]

[0069]

[0070]

[0071]

[0072]

[0073]

[0074]

[0075]

[0076]

[0077]

[0078]

[0079]

[0080]

[0081]

[0082]

[0083]

[0084]

[0085]

[0086] [Math. 16] compensated @measured harmonic OR [Math. 17] measured angle is the measured angle and [Math. 18] ETTharmonic the second harmonic error. Advantageously, the system is configured to calculate the average angular resolution according to the following formula: [Math. 19] A# J angular Ai OR [Math.20] ReSangular is the angular resolution, At is the time interval between two measurements and [Math.21] Ad measures The difference between the angles measured at two successive times. Advantageously, the system is configured to calculate the zero crossing time of the cosine signal X2 according to the following formula: [Math.22] “ angular Where XI is the zero crossing time of the sine signal and [Math.23] ReSangulaire the average angular resolution. Advantageously, the system is configured to calculate the amplitude of the second harmonic of the measured angle signal according to the following formula: [Math.24] Amp. . = ■■■■■■■■■-........ ' narmonu / ue OR [Math.25] is the angle determined during the zero crossing time of the sinus signal XI and

[0087] [Math.26]

[0088] is the angle determined during the zero crossing time of the cosine signal X2.

[0089] Advantageously, the system is configured to calculate the second error harmonic according to the following formula:

[0090] [Math.27] ErrharmoniqUe ( t ) = Amphann^ ( 2œt )

[0091] where [Math.28] Amp, f harmonic

[0092] is the amplitude of the second harmonic and co the angular rotation speed of the shaft (with co=(360 / Resanguinaire).

[0093]

[0094] Preferably, the target comprises a magnetic element of cylindrical shape with a circular cross-section.

[0095] Advantageously, the system is configured to detect the passage of the compensated sine signal to 0 by detecting a passage from positive to negative of the amplitude of said signal.

[0096] Preferably, the system is configured to record the values ​​of the final compensated angle in a memory area different from the previous ones.

[0097] Preferably, the system is configured to send an anomaly message when the difference between the value of the final compensated angle calculated at said instant and the value of the measured angle recorded in real time at said instant is greater than a predetermined alert threshold.

[0098] The invention also relates to a motor vehicle comprising a drive shaft and a system as presented previously. Brief description of the drawings

[0099] Other characteristics and advantages of the invention will become apparent from reading the description which follows. This is purely illustrative and must be read in conjunction with the appended drawings in which:

[0100] [Fig-1] [Fig. 1] illustrates an example of a signal representing the error between the angular position of a shaft calculated by a position sensor and the actual angle of the shaft in the absence of correction.

[0101] [Fig.2] [Fig.2] illustrates an example of a signal representing the error between the angular position of a shaft calculated by a position sensor and the actual angle of the shaft with an eccentricity offset of 0.25 mm.

[0102] [Fig.3] [Fig.3] schematically illustrates one embodiment of the system according to the invention.

[0103] [Fig.4] [Fig.4] schematically illustrates a position sensor and drive shaft arrangement.

[0104] [Fig.5] [Fig.5] schematically illustrates an embodiment of the method according to the invention. Description of the embodiments

[0105] [Fig.3] represents an example of vehicle 1 according to the invention.

[0106] In this non-limiting example, the vehicle 1 is an electric vehicle comprising an electric propulsion machine comprising a rotor 10 and a stator 20. The electric machine is powered by an electric battery 30 and is controlled by an electronic control unit 40 via a converter 25 and using a sensor 50.

[0107] The rotor 10 comprises a central rotating shaft 11 for driving the wheels 2 of the vehicle 1 via a transmission chain (not shown for the sake of clarity). It will be noted that, in this example, the shaft 11 is a rotor shaft 10 but that this is in no way limiting of the scope of the present invention, the shaft 11 being able to be any type of rotating shaft of a motor vehicle.

[0108] With reference to [Fig. 4], the shaft 11 is in the form of a rod extending in a longitudinal direction from the body of the rotor 10 and comprising a free end 1 IA. In this example, the shaft 11 is a transmission shaft but could just as well be, in one embodiment, a crankshaft, a camshaft, a steering shaft or any shaft of the vehicle 1 whose angular position needs to be measured, for example to allow the engine of the vehicle 1 to operate correctly.

[0109] The free end 1 IA of the shaft 11 comprises a target 12, for example in the form of a disc, mounted coaxially with the shaft 11, that is to say that the center of the target 12 coincides with the longitudinal axis of the shaft 11. The target 12 comprises at its center a centered magnetic element. This magnetic element may be a portion of the target 12 or an added element fixed to the center of the target 12. Preferably, the magnetic element has a cylindrical shape of circular section.

[0110] The vehicle 1 also comprises a system 100 according to the invention.

[0111] In this example, the system 100 comprises the electronic control unit 40, the sensor 50 and a plurality of memory areas (not visible) which can be implemented in the electronic control unit 40 and / or in the sensor 50 and / or at another location in the system 100.

[0112] The sensor 50 is preferably a magnetoresistive type sensor, for example of TMR (Tunneling Magneto Resistance) type or a Hall effect sensor. The sensor 50 is mounted facing the magnetic element of the target 12 of the shaft 11, in a substantially centered and coaxial manner.

[0113] The sensor 50 is configured to generate a sinusoidal type signal, called a sine signal, and a cosine signal, called a cosine signal, representative of the electromagnetic variations of the magnet when the shaft 11 is rotated.

[0114] The system 100, i.e. the sensor 50 and / or the electronic control unit 40, is configured to, at each instant, in a manner known per se: generate a sine signal, record the values ​​of the sine signal in a first memory area, generate a cosine signal, record the values ​​of the cosine signal in a second memory area, calculate a so-called “measured” angle in real time from the sine and cosine signals representing the angular position of the shaft and record the calculated measured angle in a third memory area.

[0115] Advantageously, the system 100, i.e. the electronic control unit 40 and / or the sensor 50, can be configured to, at each instant, compensate in amplitude and offset the signals generated by the sensor, to record the values ​​of the compensated sine signal in a first memory area, to record values ​​of the compensated cosine signal in a second memory area, to calculate the so-called “measured” angle in real time from the compensated sine and cosine signals and to record the calculated measured angle in a third memory area.

[0116] The system 100 is configured to determine the zero crossing time of the sine signal, preferably by detecting a transition from negative to positive.

[0117] The system 100 is configured to determine the measured angle during the zero crossing time of the determined sine signal.

[0118] The system 100 is configured to calculate the average angular resolution, preferably according to the following formula:

[0119] [Math.29] AVv, . — âÉïïSÜLÉ angular Âî

[0120] where

[0121] [Math.30] angular

[0122] is the angular resolution At is the time interval between two measurements and

[0123] [Math.31] HAS / / 'measure

[0124] The difference between the angles measured at two successive times.

[0125] The system 100 is configured to calculate the zero crossing time of the signal cosine X2 from the zero crossing time of the sine signal XI and the resolution

[0126]

[0127]

[0128]

[0129]

[0130]

[0131]

[0132]

[0133]

[0134]

[0135]

[0136]

[0137]

[0138]

[0139]

[0140]

[0141]

[0142]

[0143] mean angular, preferably according to the following formula: [Math.32] X2 = X1+t- Res, 90 'angular where XI is the zero crossing time of the sine signal and [Math.33] ReSangular the average angular resolution. The system 100 is configured to determine the measured angle at the calculated zero crossing time of the cosine signal. The system 100 is configured to calculate the amplitude of the second harmonic of the measured angle signal from the measured angle determined at the zero crossing time of the sine signal and the measured angle determined at the calculated zero crossing time of the cosine signal, preferably according to the following formula: [Math.34] . 0yi+9O-0v? Amp, . = ----.....— T harmonic 2 Or [Math.35] is the angle determined during the zero crossing time of the sine signal and [Math.36] 6x2 is the measured angle calculated during the zero crossing time of the cosine signal. The system 100 is configured to calculate a second harmonic error from the calculated amplitude of the second harmonic, preferably according to the following formula: [Math.37] Errharmünique 0 = Amphum^ Or [Math.38] Amp, harmonic r is the amplitude of the second harmonic and co the angular rotational speed of the shaft. The system 100 is configured to calculate a compensated angle representing the corrected angular position of the shaft from the real-time measured angle and the calculated second harmonic error, preferably according to the following formula:

[0144] [Math.39] compensated @measured harmonic

[0145] where

[0146] [Math.40] measured

[0147] is the measured angle and

[0148] [Math.41] Errharmonic

[0149] the second harmonic error.

[0150] By the terms “each instant” is meant continuously or in real time, electronically by periodic time samples, in a manner known per se, for example every N milliseconds where N is a natural integer.

[0151] The system 100 comprises at least one processor capable of implementing a set of instructions making it possible to carry out these functions.

[0152] Example of implementation

[0153] An example of implementation of the method according to the invention will now be described with reference to [Fig.5].

[0154] First, the shaft 11 is rotated in a step E1.

[0155] As soon as the shaft 11 starts rotating, at each instant, the sensor 50 begins to generate a sine signal and a cosine signal in a step E2.

[0156] As the shaft 11 rotates and the sine and cosine signals are generated, the recording of each measured value of the compensated sine signal is carried out in a first memory area of ​​the system 100 in a step E3-1 and the recording of each measured value of the compensated cosine signal is carried out in a second memory area of ​​the system 100 in a step E3-2. The calculation of the so-called "measured" angle in real time from the compensated sine and cosine signals is carried out in a step E4 by the system 100. The measured angle is determined by calculating the arctangent of the compensated sine and cosine signals.

[0157] Preferably, the first angle value signal is generated by taking the arc tangent of the ratio between the value of the first sine signal and the value of the first cosine signal and the second angle value signal is generated by taking the arc tangent of the ratio between the value of the second sine signal and the value of the second cosine signal.

[0158] The calculated measured angle is recorded in a third memory area of ​​the system 100 in a step E5.

[0159] When the shaft is rotated, the system will perform the following series of tasks at least during the first rotation of the shaft 11 and possibly then periodically during a rotation, for example at each rotation.

[0160] The system 100 detects the zero crossing of the sinus signal from positive to negative and determines the angle measured during said zero crossing in a step E6.

[0161] The system 100 determines the zero crossing time of the sine signal in a step E7 and calculates the average angular resolution in a step E8 by calculating the derivative of the determined measured angle with respect to time.

[0162] The system 100 calculates in a step E9 the zero crossing time of the cosine signal from negative to positive from the zero crossing time of the determined sine signal and the calculated average angular resolution.

[0163] The system 100 obtains the value of the angle at the zero crossing time of the cosine signal previously determined in a step E10.

[0164] The system 100 then calculates in a step El 1 the amplitude of the second harmonic of the measured angle signal from the measured angle determined during the zero crossing time of the sine signal and the measured angle determined during the calculated zero crossing time of the cosine signal.

[0165] Once this harmonic amplitude has been determined, the system 100 determines in a step E12 the harmonic error at each instant of the measurement by multiplying said harmonic amplitude by the cosine of twice the angular speed of rotation of the axis multiplied by the time considered.

[0166] Finally, the system 100 adds this harmonic error to the measured angle to obtain a compensated angle value in a step E13, then records the compensated angle in a fourth memory area.

[0167] As indicated previously, steps E2-1 to E13 can be implemented entirely by the sensor 50 or entirely by the electronic control unit 40. Alternatively, part of steps E2-1 to E13 can be implemented by the sensor 50 and the following steps by the electronic control unit 40.

[0168] The method according to the invention makes it possible to correct the error generated by a misalignment and / or a parallelism defect between the position sensor 50 and the target 12 by compensating for the defects in the angle value signal using a harmonic error to suppress the second harmonic in order to calculate a compensated angular position of the shaft 11 which corresponds substantially to the actual angular position of said shaft 11.

Claims

Claims

1. Method for determining the angular position of a shaft (11) of a motor vehicle (1) from a target (12), fixed to a free end (1 IA) of said shaft (11) and comprising a magnetic element, and from a magnetoresistance position sensor (50), mounted opposite said target (12), said method comprising: - at each instant: the rotation (El) of the shaft (11), the generation (E2-1) of a sine signal, the recording (E2-2) of the values ​​of the sine signal in a first memory zone, the generation (E3-1) of a cosine signal, the recording (E3-2) of the values ​​of the cosine signal in a different memory zone, the calculation (E4) of a so-called “measured” angle in real time from the sine and cosine signals representing the angular position of the shaft (11), the recording (E5) of the measured angle calculated in a memory zone different from the previous ones, - over a period of the sine and cosine signals: - determination (E6) of the angle measured when the sinus signal crosses zero, - determination (E7) of the zero crossing time of the sinus signal, - calculation (E8) of the average angular resolution, said average angular resolution corresponding to the derivative of the measured angle determined with respect to time, - calculation (E9) of the zero crossing time of the cosine signal, from the zero crossing time of the sine signal and the average angular resolution, - determination (E10) of the angle measured at the calculated time of zero crossing of the cosine signal, - calculation (El 1) of the amplitude of the second harmonic of the measured angle signal from the measured angle determined during the zero crossing time of the sine signal and the measured angle determined during the calculated zero crossing time of the cosine signal, - calculation (E12) of a second harmonic error from the calculated amplitude of the second harmonic, - calculation (El3) of a compensated angle representing the corrected angular position of the shaft from the angle measured in real time and the calculated second harmonic error.

2. The method of claim 1, wherein the compensated angle [Math.42] fi ucom thought representing the corrected angular position of the shaft is calculated according to the following formula: [Math.43] $ compensated @measured harmonic Where [Math.44] ^measured is the measured angle and [Math.45] / / / 'r~, ' harmonic the second harmonic error.

3. A method according to any one of the preceding claims, wherein the average angular resolution is calculated according to the following formula: [Math.46] _ A^measured angular — Where [Math.47] RgSangulaire is the angular resolution, At is the time interval between two measurements and [Math.48] Ad 'measure The difference between the angles measured at two successive times.

4. A method according to any preceding claim, wherein the zero crossing time of the cosine signal X2 is calculated according to the following formula: [Math.49] X2 = Xl+^_ Where XI is the zero crossing time of the sine signal from positive to negative and [Math.50] R^Angular the average angular resolution.

5. A method according to any preceding claim, in which the amplitude of the second harmonic of the measured angle signal is calculated according to the following formula: [Math.51] . ,+90-¾. Amp, - -—-5.....— f harmonic £ where [Math.52] ^¥1 is the angle determined during the zero crossing time of the sine signal XI and [Math.53] ®X2 is the angle determined during the zero crossing time of the cosine signal X2.

6. A method according to any preceding claim, wherein the second harmonic error [Math.54] In harmonic is calculated according to the following formula: [Math.55] Errhartnonic(t} = Ampharmon.qi^ Where [Math.56] Amp, ' harmonic is the amplitude of the second harmonic and w is the angular rotational speed of the shaft.

7. A computer program product characterized in that it comprises a set of program code instructions which, when executed by one or more processors, configure the processor(s) to implement a method according to any one of the preceding claims.

8. System (100) for determining the angular position of a shaft (11) of a motor vehicle (1) from a target (12), fixed to a free end (1 IA) of said shaft (11) and comprising a magnetic element, and a magnetoresistance position sensor (50), mounted opposite said target (12), said system (100) comprising said sensor (50), said sensor (50) being configured to generate a sinusoidal signal and

9. of a cosine signal representative of the angular position of the shaft (11), the system (100) being configured to: - at each instant: generate a sine signal, record the values ​​of the sine signal in a first memory area, generate a cosine signal, record the values ​​of the cosine signal in a second memory area, calculate a so-called “measured” angle in real time from the sine and cosine signals representing the angular position of the shaft and record the calculated measured angle in a third memory area, - over a period of the sine and cosine signals: - determine the angle measured when the sinus signal crosses zero, - determine the zero crossing time of the sinus signal, - calculate the average angular resolution, said average angular resolution corresponding to the derivative of the measured angle determined with respect to time, - calculate the zero crossing time of the cosine signal from the zero crossing time of the sine signal and the average angular resolution, - determine the measured angle at the calculated zero crossing time of the cosine signal, - calculate the amplitude of the second harmonic of the measured angle signal from the measured angle determined during the zero crossing time of the sine signal and the measured angle determined during the calculated zero crossing time of the cosine signal, - calculate a second harmonic error from the calculated amplitude of the second harmonic, - calculate a compensated angle representing the corrected angular position of the shaft (11) from the angle measured in real time and the calculated second harmonic error. Motor vehicle (1) comprising a drive shaft (11) and a system (100) according to the preceding claim.