SIM001 › Beyond the cockpit › Flying by plan
Sending your first plan › Send a plan passed
As an operator of a plane in AGENT mode, I want to send a plan and read the reply, so that I know that the plane flies my plan.
The test behind the tutorial Sending your first plan: every step it takes, what it checks and what it saw.
Start
From the setup of Flying by plan, and:
Given the flight mode of the plane is FBWA
Everything it starts with
Given the flight mode of the plane is FBWA And the reply to the plan is none And the time to live of the plan is 0 s And the reported plan is 0 And the reported primitive is none
- Every arranged state read back as arranged (5)
1 When the ground sends a go-to plan
When the ground sends a go-to plan Then the reply to the plan is refused for the mode
Expected behaviour: A plan is refused outside AGENT mode.
- the reply to the plan is refused for the mode · A plan is refused outside AGENT mode
- the reported plan is 0 · A plan is refused outside AGENT mode
2 When the flight mode of the plane is AGENT
When the flight mode of the plane is AGENT Then the reported plan is 0
Expected behaviour: AGENT mode starts with no plan.
- the reported plan is 0 · AGENT mode starts with no plan
- the reported primitive is none · AGENT mode starts with no plan
3 When the ground sends a go-to plan
When the ground sends a go-to plan Then the reply to the plan is accepted And the reported plan is 1 And the reported primitive is go to
Expected behaviour: AGENT mode takes a go-to plan.
- the reply to the plan is accepted · AGENT mode takes a go-to plan
- the time to live of the plan is 600 s · AGENT mode takes a go-to plan
- the reported plan is 1 · AGENT mode takes a go-to plan
- the reported primitive is go to · AGENT mode takes a go-to plan
4 When the ground sends a malformed plan
When the ground sends a malformed plan Then the reply to the plan is refused as malformed And the reported plan is 1
Expected behaviour: A malformed plan is refused with a reason.
- the reply to the plan is refused as malformed · A malformed plan is refused with a reason
- the reported plan is 1 · A malformed plan is refused with a reason
5 When the ground sends an orbit plan
When the ground sends an orbit plan Then the reported plan is 2 And the reported primitive is orbit
Expected behaviour: A new plan id replaces the plan, An orbit plan circles a point.
- the reported plan is 2 · A new plan id replaces the plan
- the reported primitive is orbit · A new plan id replaces the plan
- the reply to the plan is accepted · An orbit plan circles a point
- the time to live of the plan is 600 s · An orbit plan circles a point