Flap or soar? How a flight generalist responds to its aerial environment