SIM001

SIM001 › Flying the VTOL › Flying with a radio

Test report

Trying the buttons of the radio › Lift off, try QHOVER and CRUISE, then fly home failed

As a pilot with a radio, I want to try the flight modes on the six buttons, so that I know what each mode does before I fly a real flight.

The test behind the tutorial Trying the buttons of the radio: every step it takes, what it checks and what it saw.

Start

From the setup of Flying with a radio.

Everything it starts with
Given the game clock is off
  And the link is connected
  And the vehicle is disarmed
  And the autopilot mode is MANUAL
  And the map tool is pan
  And the plan has 0 items
  And the plan altitude is 40 m
  And the last plan item is none
  And the takeoff is not planned
  And the vehicle mission is empty
  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 0
  And the throttle stick is low
  And the arm switch is off
  And the mode switch is QHOVER
  And the radio line is USB
  And the airframe is VTOL
  And the plane is on the ground
No screenshot of this step.
No screenshot of this step.
  • Every arranged state read back as arranged (21)

1 When the arm switch is on

When the arm switch is on
Then the vehicle is armed

Expected behaviour: The arm switch arms the vehicle.

No screenshot of this step.
No screenshot of this step.

2 When the mode switch is QLOITER

When the mode switch is QLOITER
Then the autopilot mode is QLOITER

Expected behaviour: The mode switch picks the mode.

No screenshot of this step.
No screenshot of this step.

3 When the throttle stick is high

When the throttle stick is high
Then the flight is hovering
  And the plane is flying
  And the height above home is at least 15 m

Expected behaviour: A raised throttle stick lifts the plane.

No screenshot: the test failed before this step.
No screenshot: the test failed before this step.

4 When the pilot switches to QHOVER

When the pilot switches to QHOVER
Then the autopilot mode is QHOVER
  And the flight is hovering

Expected behaviour: QHOVER is a hover mode.

No screenshot: the test stopped at an earlier step.
No screenshot: the test stopped at an earlier step.

5 When the pilot switches to cruise

When the pilot switches to cruise
Then the flight is cruising
  And the autopilot mode is CRUISE

Expected behaviour: CRUISE changes a hover into forward flight with the radio.

No screenshot: the test stopped at an earlier step.
No screenshot: the test stopped at an earlier step.

6 When the pilot sends the plane home

When the pilot sends the plane home
Then the autopilot mode is QRTL
  And the plane is on the ground
  And the last landing is soft

Expected behaviour: QRTL brings the plane home and lands it softly.

No screenshot: the test stopped at an earlier step.
No screenshot: the test stopped at an earlier step.