I’m developing an open-source landing analysis tool for ArduPlane that works from DataFlash (.BIN) logs.
I’m trying to understand the exact meaning of the LAND.stage field recorded in the LAND message.
From several flights (ArduPlane 4.7 beta) I’ve observed:
-
LAND.stagetransitions from 0 → 1 at approximately 10 m AGL, before the rangefinder becomes valid (RNGFND1_MAX = 6 m). -
LAND.stagetransitions from 1 → 2 later during final approach. -
LAND.stagetransitions from 2 → 3 shortly before the aircraft begins slowing rapidly for the flare. -
The transitions appear consistent across multiple landings.
I’m not looking for the user-facing description of the landing sequence, but the internal logic behind these stage changes.
Specifically:
-
What does each
LAND.stagevalue represent? -
What conditions trigger the transitions between stages?
-
Which sensors or estimates are involved (baro altitude, rangefinder, airspeed, flare logic, etc.)?
-
Is there any documentation or source file that defines the landing state machine?
The goal is to align the analysis tool with ArduPlane’s actual behaviour rather than inferring the stages from flight plots.
Thanks.