SIM001 › The ground station › Ground control station › Flying a mission
Flying the circuit and coming home › Three waypoints, then home not supported yet
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.
The driver can't arrange the autopilot mode, arrange the game clock, arrange the home position and 31 more things yet.
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 not 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
- the game clock is off · arranged
- the link is connected · arranged
- the vehicle is armed · arranged
- the autopilot mode is AUTO · arranged
- the map tool is pan · arranged
- the plan has 3 items · arranged
- the plan altitude is 40 m · arranged
- the last plan item is WAYPOINT · arranged
- the takeoff is not planned · arranged
- the vehicle mission is up to date · arranged
- the home position is set · arranged
- the waypoints are unchecked · arranged
- the mission file is missing · arranged
- the measured distance is hidden · arranged
- the vehicle's current item is 1 · arranged
- the plane is flying the mission · arranged
1 When the plane reaches a waypoint
When the plane reaches a waypoint Then the vehicle's current item is 2
Expected behaviour: Each waypoint reached moves the mission on.
- the vehicle's current item is 2 · Each waypoint reached moves the mission on
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