Passive Radar platform using Stepper and Rotary encoder

You REALLY need HARD stops.
Looking at your code, I thought I would see some where in setup where you calibrate you machine to zero before continuing to loop(), but nothing there. So how do you know how to set the zero, beginning, for your rotary encoder?

Addition. I live in a rather windy location and sometimes have problems with Yagi antennas and rotators and wind. The wind loves to twist antenna mountings.