The quantitative relationship between the magnetic deviation and its induced current direction error is deduced and derived. The approach for calibrating the coefficients on the spot and compensating the current direction error is proposed. The approach's effect for compensating is remarkable, with the root mean square error as the evaluation standard.