A history of nautical astronomy