Finally installed end-of-travel switches. Decided to go for the good old sturdy microswitches because I'm unfamiliar with magnetism really, can't see it nor feel it. Looked into hall effect sensors, but it merely complicates my adjustment problem. Did not want to drag it on forever so just got on with switches. The adjustment of these is quite intuitive: just bend until right. I got the maximum out of my travel now, and at full travel speed it stops without current peaks, so now I can now safely increase max_current a bit and not run the risk of getting stuck in an involuntary 360 again (see this post). The mounts are epoxied resp. screwed, but the bottom switch is hot glued so I can heat it up and move it if necessary, although I don't expect that will be needed.
Fingers crossed for the next trip.
Fingers crossed for the next trip.