Servo move to a location, then stop

Okay, so I had a play around with the various examples offered and they seemed largely successful. So the bit I'm a bit confused at here, is which to go with. I'm not sure I understand what the distinguishing factors are here.

The action based on what happens when you continuously hold the button down probably isn't too important. I guess if it's held down, I'd like it to perform a single sweep and wait until the next press? The ultimate plan would be to replace the button with something essentially controlled by LabView, which itself has it's own delays and... idiosyncracies.

What is an edge detector?

An interesting thing to note, is it seems to sweep out slightly more than 180 degrees now, which is unexpected. It's not really a huge problem, since this project aims to put an object blocking a path, or anywhere else (i.e. not blocking the path). Just thought it was worth mentioning