This paper describes an algorithm for evaluation of magnetic compass deviat
ion based on the least squares method. An automatic system was built, coupl
ed with a magnetic compass recording device, for fine estimation of the dev
iation curve on the basis of an incomplete compass swing circulation.