A position sensor system comprising: a magnetic field generator (301) movable relative to two sensor devices (303, 304) or vice versa.. The system has at least one processor (306, 307, 309) adapted with a special algorithm for determining a position of the magnetic field generator (301) in a manner which is highly robust against a disturbance field (Bext). A method for determining the position of the magnetic field generator (301) based on a set of equations, in particular a set of linear equations which allows to completely eliminate the external disturbance field. |