Trying to get a homing search move to work for an incremental encoder.
I have Motor[2].HomeOffset=0. I run #2home, it does the homing search. It's set to capture on the Home flag, which works, and the Motor[2].HomeInProgress changes to HomeComplete.
However, when this happens, the motor position gets set to -5,000,000ish counts and it tries to post-trigger-move to position 0, which is outside of travel.
What am I doing wrong that when it sees the home flag, the position gets set to a non-zero value? I have a 2nd identical motor configured exactly the same which works as expected - the position at the home flag gets set as the 0 point and it stops moving.