trying to set a home position. on a contentious run servo

ky1duck:
i am working on a color filter wheel for astronomy. have built a few other projects that work fine but this one is driving me nuts.
i am trying to get set it(goto) to home position when i first turn on the unit and set current filter to 1. i am using a contentious run servo for motor. and a small switch that when it goes low it sets home position. so i only want it to run 1 time at start up. been at it a few days no with no luck. here is the code i have now. might take me a day or two to replay because of work thanks for looking.

robert

Continuous rotation servos are not servos, they are small DC motors with a
speed control built-in.

You need a proper servo that will go to a set position on command, not a
continuous rotation one.