by morning , matt was found leaning up against the quarterdeck rail as he had figured out how to tie the helm in a fixed course and he would adjust the knot every few minutes as the winds and current demanded a course correction .