Passive Radar platform using Stepper and Rotary encoder

how do you zero the rotary encoder?
in the simulation I use move clockwise until the hall effect switch gives the zero position and then the movements of the stepper motor gives position
however, it is only a simple simulation and no attempt to get an accurate direction