SIM001 › Ground control › Ground control station › Flying a mission
Flying the circuit and coming home › Takeoff, two waypoints, then home passed
As a pilot, I want the plane to fly the waypoints in order and come home after the last one, so that all I have to do is throw it and catch it.
The test behind the tutorial Flying the circuit and coming home: every step it takes, what it checks and what it saw.
Start
From the setup of Flying a mission.
Everything it starts with
Given the game clock is off And the link is connected And the vehicle is armed And the autopilot mode is AUTO And the map tool is pan And the plan has 3 items And the plan altitude is 40 m And the last plan item is WAYPOINT And the takeoff is planned And the vehicle mission is up to date And the home position is set And the waypoints are unchecked And the mission file is missing And the measured distance is hidden And the vehicle's current item is 1 And the plane is flying the mission
- Every arranged state read back as arranged (16)
1 When the plane finishes its takeoff
When the plane finishes its takeoff Then the vehicle's current item is 2
Expected behaviour: After the takeoff the plane heads for the first waypoint.
- the vehicle's current item is 2 · After the takeoff the plane heads for the first waypoint
2 When the plane reaches a waypoint
When the plane reaches a waypoint Then the vehicle's current item is 3
Expected behaviour: Each waypoint reached moves the mission on.
- the vehicle's current item is 3 · Each waypoint reached moves the mission on
3 When the plane reaches the last item
When the plane reaches the last item Then the plane is flying home And the autopilot mode is RTL
Expected behaviour: After the last waypoint the plane flies home.
- the autopilot mode is RTL · After the last waypoint the plane flies home
- the plane is flying home · After the last waypoint the plane flies home