working distance and speed pid