Linear 3phase bldc motor. How to run start tuning

Hi guys I’ll be attempting to calibrate a linear bldc motor.
I’m worried about initial calibration sequence.
I will be using incremental linear encoder.
I’ll have 45 magnets and 12 coils in the stator winding.
As you can understand it would not be desirable to run off the end.