How to control the line detector line position and drop the line