Using mavlink: how to determine if the ArduPlane is actually flying?

in order to add proper stall warning only when flying, how can I determine that the plane is actually flying? (not to trigger stall warning unless actually flying)

Have you seen @magicrub’s stall detection code?

Note that it is extremely difficult to tell 100% when you’re flying in a
fixed wing.

What you probably want is the extended_sys_state message, which I
implement here for Plane:

That was hung up on tailsitter transition logic IIRC.

@peterbarker yes, that does look good, it does not help me right now, but is a great addition.