| CPC G01D 5/24471 (2013.01) [G01D 5/183 (2021.05)] | 10 Claims |

|
1. A method for dynamic error compensation of a position sensor, comprising:
determining a position of a moving target by the position sensor with a certain sampling frequency,
calculating a speed of the moving target for each determined position,
calculating a running average of the speed of the moving target over a certain number of determined positions,
calculating a dynamic angle error for each determined position on basis of the calculated running average of the speed, wherein the calculated dynamic angle error is used to correct an output of the position sensor,
determining a first condition where the calculated speed of the moving target for a current determined position is within a first window around the calculated running average of the speed of the moving target over the certain number of determined positions;
in response to determining the first condition, maintaining the dynamic angle error;
determining a second condition where the calculated speed of the moving target for the current determined position is within a second window around the calculated running average of the speed of the moving target over the certain number of determined positions; and
in response to determining the second condition, re-calculating the dynamic angle error by deleting the dynamic angle error and calculating a new dynamic angle error to correct the output of the position sensor.
|