SIM001 › Beyond the cockpit › Watching a real plane
Watching a flight from the pilot box › The plane takes off, turns and goes quiet passed
As a pilot with a real plane, I want to see the flight in the 3D view of the simulator, so that I can replay what the plane did, and record pictures for a camera system.
The test behind the tutorial Watching a flight from the pilot box: every step it takes, what it checks and what it saw.
Start
From the setup of Watching a real plane.
Everything it starts with
Given the telemetry is silent And the reported distance north of home is 0 m And the reported height is 0 m And the reported bank is 0 degrees And the reported heading is north And the plane in the view is missing
- Every arranged state read back as arranged (6)
1 When 1 second passes
When 1 second passes Then the plane in the view is missing
Expected behaviour: No telemetry, no plane.
- the plane in the view is missing · No telemetry, no plane
2 When the telemetry is flowing and the reported distance north of home is 120 m and the reported height is 40 m and 1 second passes
When the telemetry is flowing And the reported distance north of home is 120 m And the reported height is 40 m And 1 second passes Then the plane in the view is shown And the height above the pilot box in the view is 40 m And the distance north of the pilot box in the view is 120 m
Expected behaviour: The plane is where it says it is.
- the plane in the view is shown · The plane is where it says it is
- the distance north of the pilot box in the view is 120 m · The plane is where it says it is
- the height above the pilot box in the view is 40 m · The plane is where it says it is
3 When the reported bank is 30 degrees and the reported heading is east and 1 second passes
When the reported bank is 30 degrees And the reported heading is east And 1 second passes Then the right wing in the view is low And the heading in the view is east
Expected behaviour: The plane is where it says it is, The plane banks as it banks, The plane points where it flies.
- the plane in the view is shown · The plane is where it says it is
- the distance north of the pilot box in the view is 120 m · The plane is where it says it is
- the height above the pilot box in the view is 40 m · The plane is where it says it is
- the right wing in the view is low · The plane banks as it banks
- the heading in the view is east · The plane points where it flies
4 When the telemetry is silent and 10 seconds pass
When the telemetry is silent And 10 seconds pass Then the plane in the view is shown
Expected behaviour: A quiet plane stays where it was last heard.
- the plane in the view is shown · A quiet plane stays where it was last heard
- the distance north of the pilot box in the view is 120 m · A quiet plane stays where it was last heard