For what I know, the angle between sensor won't effect the code. All you need is the sewuanece input of 101, 100 etc... The angle between sensors is given by the amount of poles the motor has. In my case were 9 poles so the angle between sensosrs was 360º/9 = 40 degrees.
The code shuld be the same!