runway, and will calibrate the barometer for automatic landing. In this
example, we define the maximum times of scans to be 2, but it can be
up to 9 if you need.
The following is a detailed description of runway scanning:
1. The plane has entered the automatic landing mode LND (it can be
triggered by either moving the ELE stick to 4 corners in RTH mode, or by
presetting plane's behavior after the last waypoint is executed in WPT
mode).
2. The altitude of the plane is adjusted to the proper circle altitude and
circled around L4. The "proper circling altitude" is calculated from:
AltitudeTrim
=
The current ASL(from GPS) - L1 ASL - The current barometric
altitude
*ASL stands for Above Sea Level
CircleAltitude
= L4 Altitude -
AltitudeTrim
In this example, when the ground pressure changes little, the calculation
result of the
AltitudeTrim
is almost zero. When landing in a different
place, the error of altitude may be 100 meters or even more. We used
GPS altitude to calibrate the barometer, however doing so we also