A linear or an angular position sensor system (1900; 2000; 2100; 2200; 2300) comprising: - a magnetic field generator movable relative to a first and a second sensor device (303, 304) or vice versa, and being adapted for providing a first magnetic field vector (B1mag) to the first magnetic sensor device and for providing a second magnetic field vector (B2mag) different from the first magnetic field vector, to the second magnetic sensor device; - the first sensor device being adapted for determining first vector data (v1x, v1y; v1x, v1z) related to a combination of said first magnetic field vector (B1mag) and an external disturbance field (Bext), if present; - the second sensor device being adapted for determining second vector data (v2x, v2y; v2x, v2z) related to a combination of said second magnetic field vector (B2mag) and said external disturbance field (Bext), if present; - the position sensor system further comprising at least one processor (306, 307, 309) adapted for receiving the first vector data (v1x, v1y; v1x, v1z) and the second vector data (v2x, v2y; v2x, v2z), and adapted for performing a method (500, 900, 1000, 1300, 1400, 1600, 1800) of determining a position of the magnetic field generator relative to the first and second sensor device (303; 304), which is based on the first vector data and the second vector data in a manner which eliminates the external disturbance field (Bext); - wherein the first sensor device is configured for measuring, at a first sensor position, a first magnetic field component (B1x) oriented in a first direction and a second magnetic field component (B1y; B1z) oriented in a second direction substantially perpendicular to the first direction; and - wherein the second sensor device is configured for measuring, at a second sensor position, a third magnetic field component (B2x) oriented in said first direction and a fourth magnetic field component (B2y; B2z) oriented in said second direction; characterised in that - the magnetic field generator is magnetized such that, and the first and the second sensor device (303, 304) are oriented relative to the magnetic field generator and are spaced apart such that the first magnetic field component (B1x) is phase shifted relative to the third magnetic field component (B2x) by a value in the range from 30° to 330°. - a magnetic field generator movable relative to a first and a second sensor device (303, 304) or vice versa, and being adapted for providing a first magnetic field vector (B1mag) to the first magnetic sensor device and for providing a second magnetic field vector (B2mag) different from the first magnetic field vector, to the second magnetic sensor device; - the first sensor device being adapted for determining first vector data (v1x, v1y; v1x, v1z) related to a combination of said first magnetic field vector (B1mag) and an external disturbance field (Bext), if present; - the second sensor device being adapted for determining second vector data (v2x, v2y; v2x, v2z) related to a combination of said second magnetic field vector (B2mag) and said external disturbance field (Bext), if present; - the position sensor system further comprising at least one processor (306, 307, 309) adapted for receiving the first vector data (v1x, v1y; v1x, v1z) and the second vector data (v2x, v2y; v2x, v2z), and adapted for performing a method (500, 900, 1000, 1300, 1400, 1600, 1800) of determining a position of the magnetic field generator relative to the first and second sensor device (303; 304), which is based on the first vector data and the second vector data in a manner which eliminates the external disturbance field (Bext); - wherein the first sensor device is configured for measuring, at a first sensor position, a first magnetic field component (B1x) oriented in a first direction and a second magnetic field component (B1y; B1z) oriented in a second direction substantially perpendicular to the first direction; and - wherein the second sensor device is configured for measuring, at a second sensor position, a third magnetic field component (B2x) oriented in said first direction and a fourth magnetic field component (B2y; B2z) oriented in said second direction; - the magnetic field generator is magnetized such that, and the first and the second sensor device (303, 304) are oriented relative to the magnetic field generator and are spaced apart such that the first magnetic field component (B1x) is phase shifted relative to the third magnetic field component (B2x) by a value in the range from 30° to 330°.