1. Which Basic Parameters Does Auto-Steering Need?
The technical elements of vehicle autonomous navigation mainly include four aspects: the “sensors” that replace human facial features, the “controller” that acts as the brain, the “actuators” that serve as hands and feet, and the “communication network” that transmits information. The basic parameters required to realize vehicle autonomous navigation include the vehicle’s global positioning information, tilt attitude information, forward speed, and steering wheel angle. Sensor selection, installation, calibration, and data processing are carried out for the purpose of obtaining high-precision sensor data.

1.1 Sensors, Actuators, and the CAN-Bus Communication Network
A vehicle auto-steering navigation system mainly consists of three parts: sensors, actuators, and a CAN-Bus communication network. The sensors include an RTK-DGPS (Real time kinematics Differential GPS) system, an inertial sensor, an absolute photoelectric encoder, and an incremental photoelectric encoder, which are used in turn to measure the vehicle’s global positioning information, tilt attitude information, steering wheel angle, and vehicle speed. The actuators include a steering mechanism, a braking mechanism, and a speed control mechanism. The system contains multiple sensors and actuators, which places higher demands on the system’s data communication network and requires high-speed, stable, and reliable data communication among all modules.
1.2 How RTK-DGPS Delivers Centimeter-Level Global Positioning
The working principle of the RTK-DGPS positioning system is as follows: one receiver is placed at a base station and another is placed on the vehicle. The base station and the rover simultaneously receive signals transmitted by the same GPS satellites at the same time (at least four satellites). The observations obtained by the base station are compared with the known position information to obtain GPS differential corrections. These corrections are then transmitted in a timely manner through a radio data link to the rover that shares the same satellites, refining its GPS observations and thereby obtaining a relatively accurate real-time position for the rover after differential correction.
1.3 What the Inertial Sensor Measures Is Tilt Attitude
In agricultural machinery IMU installations, the inertial sensor is used to detect the vehicle’s roll angle and pitch angle. The measured tilt attitude (roll and pitch) is used to compensate for the lever-arm effect, enabling precise vehicle positioning in uneven soil environments.

2. Why the GPS Positioning Point Is Not the Vehicle Position
Navigation parameters refer to the lateral deviation and heading deviation between the vehicle and the desired path. The lateral deviation provides the control input for straight-line tracking control (lateral control), and the heading deviation provides the control input for headland turning control (heading control); neither can be omitted. The GPS receiver is usually installed at the top of the vehicle. The distance between the GPS antenna phase center and the vehicle’s mass point — the lever arm offset — causes the lever-arm effect. Under harsh soil conditions, this phenomenon can create a large deviation between the GPS measurement point and the vehicle’s center of mass. Therefore, the key to calculating the lateral deviation is to measure the vehicle’s tilt attitude and compensate for the lever-arm effect in order to improve straight-line tracking accuracy.
2.1 A 5° Roll Produces a 0.134 m Lateral Deviation
Because farmland terrain is uneven, agricultural vehicles inevitably tilt while driving in the field; under normal circumstances, the maximum tilt angle can reach 20°. In the system, the height from the top of the GPS receiver to the ground is 1.53 m. If the roll angle is 5°, a lateral deviation of 0.134 m will be produced in the vehicle’s lateral direction, so the lever-arm effect must be compensated.
In the vehicle tilt diagram, H is the height of the GPS receiver antenna perpendicular to the ground. When the ground slopes uphill or downhill, the plane coordinates obtained by the GPS receiver are the same as the plane coordinates of point q, but the vehicle’s actual positioning point is the plane coordinate of the point where the GPS receiver is perpendicular to the ground, and there is an error between point Q and point X; in the vehicle coordinate system, the value of point q on the x-axis is H·tan(pitch). Similarly, when the ground slopes left or right, the value of point q on the y-axis is H·tan(roll).

2.2 Geodetic Plane Coordinate System and Vehicle Coordinate System
The geodetic plane coordinate system XOY is a plane coordinate system obtained by converting spherical coordinates (WGS-84 world geodetic coordinates) through UTM (Universal Transverse Mercator projection). The vehicle coordinate system is defined with the center of the rear axle as the origin, the x-axis pointing in the vehicle’s forward direction, and the y-axis perpendicular to the x-axis and pointing to the left side of the vehicle.
The inertial sensor’s UX axis coincides with the vehicle’s X0 axis, and the UY axis lies on the same straight line as the vehicle’s Y0 axis but points in the opposite direction. The roll angle is the angle through which the inertial sensor rotates about the UX axis, positive clockwise and negative counterclockwise; the pitch angle is the angle through which the inertial sensor rotates about the UY axis, positive clockwise and negative counterclockwise.
3. The Three-Step Lever Arm Compensation Algorithm
Lever arm compensation means that, given the coordinates (X, Y) of point Q0 in the geodetic plane coordinate system XOY and the coordinates (ex, ey) of point q in the vehicle coordinate system, we solve for the coordinates (x′, y′) of point q in the geodetic plane coordinate system. The solution steps are as follows:
3.1 Step One: Find the Angle θ Between the Two Coordinate Systems
Find the angle θ between the vehicle coordinate system X0O0Y0 and the geodetic plane coordinate system XOY. Depending on the vehicle’s heading, there are eight distribution cases for the two coordinate systems: two cases with opposite vehicle headings when the slope is 0, two cases with opposite vehicle headings when the slope does not exist, two cases with opposite vehicle headings when the slope is greater than 0, and two cases with opposite vehicle headings when the slope is less than 0. The angle θ between the vehicle coordinate system and the geodetic plane coordinate system can thus be obtained.
3.2 Step Two: Map the Lever-Arm Vector into the Geodetic Coordinate System
Map ex and ey in the vehicle coordinate system into the geodetic plane coordinate system to obtain e′x and e′y:
e′x = ex·cos(θ) − ey·sin(θ)
e′y = ex·sin(θ) + ey·cos(θ)
3.3 Step Three: Superimpose to Obtain the Actual Positioning Point
The coordinates of point q in the geodetic plane coordinate system are obtained as:
x′ = X + e′x
y′ = Y + e′y
The coordinate point (x′, y′) is the corrected actual positioning point of the vehicle.
3.4 With Only One Receiver, Use the Positioning Point from 0.05 s Earlier
Because only one GPS receiver is installed on the vehicle, the coordinates of point q and point Q0 cannot be obtained simultaneously. A dynamic positioning method is adopted: the vehicle’s current positioning point is taken as point q, and the positioning point from the previous instant (0.05 s earlier) is taken as point Q0.

4. How to Calculate Lateral Deviation
The calculation of lateral deviation includes the lateral deviation between the vehicle’s current position and a desired path point, and the lateral deviation between the vehicle’s current position and the desired path line. The coordinates of two points on the path line are A(xa, ya) and B(xb, yb). The equation of the path line is y = k0·x + b0, where k0 = (ya − yb)/(xa − xb) and b0 = ya − k0·xa. Then the distance from point C to line AB, that is, the lateral deviation, is:
d = |k0·x_end + b0 − y_end| / √(k0² + 1)

5. Heading Deviation Without a Magnetic Sensor
In the geodetic coordinate system, the heading deviation ψ = θ_vehicle − θ_path, where θ_path can be calculated from the GPS positioning information collected in advance at the two ends of the path. The key to calculating heading deviation from GPS lies in calculating θ_vehicle. Because only one GPS receiver is installed on the vehicle, a single point cannot provide the angle between the vehicle and the OX axis of the geodetic coordinate system. To solve this problem, a GPS dynamic positioning method is adopted.
5.1 Steering Angle Within 10°: Least-Squares Straight-Line Fit
When the absolute value of the vehicle’s steering wheel angle is within 10°, the vehicle can be considered to be traveling nearly in a straight line. The dynamic positioning points of the vehicle after lever-arm compensation are collected to form a vehicle travel path vector, and the least-squares method is used to fit the vehicle path vector to a straight line. Let the regression line be y = kx + b, and let the measured points on the vehicle path vector be (xi, yi) (i = 1, 2, …, n). The principle of least squares is to minimize the sum of squares of the errors between the measured points and the points on the regression line. k and b are thus obtained, and the angle θ_vehicle is then obtained from the distribution relationship between the two coordinate systems.
5.2 Steering Angle Greater Than 10°: Fit a Circle and Take the Tangent
When the absolute value of the vehicle’s steering wheel angle is greater than 10°, the vehicle is considered to be moving in a circle while driving. The least-squares method is used to fit the dynamic positioning points to a circle, yielding the center (x0, y0) and radius R. Ray CD is the tangent at the point on the fitted circle corresponding to the current positioning point, and θ_vehicle can be obtained from two coordinate points on the tangent line.

6. Field Test: The Error Is Halved After Compensation
6.1 Lateral Deviation: From 0.054 m to 0.026 m
RTK-DGPS positioning data were collected at the start point and the end point respectively (3 minutes per point) and saved to a document as the desired path. The vehicle drove along the desired path, with obstacles laid in the middle of the path to make the vehicle tilt. During driving, the vehicle’s maximum pitch angle was 1.25° and its maximum roll angle was 2.52°. Three test points were set along the path. The vehicle was driven manually from the start point to the end point. At each test point the vehicle stopped, and the calculated lateral deviation before and after lever-arm compensation was recorded. At the same time, the actual lateral deviation at that point was measured, and the average error between multiple calculated values and measured values was used to evaluate the calculation accuracy of the lateral deviation.
The average error between the calculated and actually measured lateral deviation before lever-arm compensation was 0.054 m, and the average error between the calculated and actually measured lateral deviation after lever-arm compensation was 0.026 m. This shows that the vehicle tilt attitude information collected by the inertial sensor can effectively correct the lever-arm effect and improve the calculation accuracy of the lateral deviation.
6.2 Heading Deviation: Average Error Under Three Motion Modes
Under three motion modes — the vehicle traveling nearly in a straight line, moving in a circle with a 20° steering wheel angle, and traveling along an arbitrary curve — with a driving speed of 0.5 m/s in all cases and the reference heading used as the evaluation standard, the average errors between the heading deviation calculated by RTK-DGPS and the reference heading were 0.4798°, 1.8029°, and 1.2277°, respectively. The test data show that under all three motion modes the RTK-DGPS heading deviation calculation method is effective, and its calculation accuracy meets the control requirements.

7. What This Method Means for DAISCH IMU Users
This method adopts a navigation approach in which RTK-DGPS is primary and the inertial sensor is auxiliary, and it proposes a navigation parameter calculation method with anti-interference characteristics. To address the interference caused by uneven ground, the vehicle tilt attitude measured by the inertial sensor effectively compensates for the deviation between the RTK-DGPS measurement point and the vehicle’s center of mass caused by the lever-arm effect. The test results show that on a road surface with obstacles laid on it, the average errors between the calculated and measured lateral deviation before and after compensation were 0.054 m and 0.026 m, respectively, and the calculation accuracy of the lateral deviation after compensation was higher.
For developers of auto-steering systems using DAISCH IMU core modules and intelligent inertial sensors, the engineering implication of this chain is straightforward: GNSS provides the absolute position, the six-axis IMU provides roll and pitch, and a coordinate transformation between the antenna phase center and the vehicle reference point suppresses the systematic deviation caused by slopes. It should be noted that DAISCH’s IMU core modules and intelligent inertial sensors are six-axis (three-axis gyroscope + three-axis accelerometer) and do not contain a magnetometer. Heading does not rely on a geomagnetic reference; instead, it is solved from RTK-DGPS dynamic positioning points, or obtained by integrating gyroscope angular velocity combined with motion constraints to suppress drift. The benefit of this design is that the entire navigation parameter calculation is immune to external magnetic interference and is more stable in farmland, orchards, pastures, and other scenes with complex magnetic environments.
