Fixed sign error in magTiltCompensation