This device helped sailors determine their direction.