SIM001 › Flying the VTOL › Flying with a flight controller
Learning with self-levelling › Pick ANGLE mode and throw passed
As a pilot learning to fly, I want the plane to level itself when I let go of the sticks, so that I can learn the controls without it getting away from me.
The test behind the tutorial Learning with self-levelling: every step it takes, what it checks and what it saw.
Start
From the setup of Flying with a flight controller.
Everything it starts with
Given the throttle is 0 % And the pitch stick is centred And the roll stick is centred And the flight controller is fitted And the flight mode is MANUAL And the sim is running

- Every arranged state read back as arranged (6)
1 When the pilot changes flight mode
When the pilot changes flight mode Then the flight mode is ANGLE
Expected behaviour: ANGLE levels the plane for you.

- the flight mode is ANGLE · ANGLE levels the plane for you
2 When the throttle is 80 %
When the throttle is 80 % Then the plane is flying

- the plane is flying · the story
3 When the roll stick is left
When the roll stick is left Then the wings are banked
Expected behaviour: In ANGLE, the stick sets the bank.

- the wings are banked · In ANGLE, the stick sets the bank
4 When the roll stick is centred
When the roll stick is centred Then the wings are level
Expected behaviour: In ANGLE, the wings become level again.

- the wings are level · In ANGLE, the wings become level again