SIM001

SIM001 › Beyond the cockpit › Flying by plan

Test report

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
Screenshot
  • 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.

Screenshot

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.

Screenshot

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.

Screenshot

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.

Screenshot

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.

Screenshot