SIM001 › Flying the VTOL › Flying with a radio
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
- 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.
- the vehicle is armed · The arm switch arms the vehicle
- the last plan item is none · An empty plan has no last item
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.
- the autopilot mode is QLOITER · The mode switch picks the mode
- the last plan item is none · An empty plan has no last item
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.
- the flight is hovering · A raised throttle stick lifts the plane — observed grounded
- the height above home is at least 15 m · A raised throttle stick lifts the plane — observed -0.061
- the plane is flying · A raised throttle stick lifts the plane — observed on the ground
- the last plan item is none · An empty plan has no last item
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.
- the autopilot mode is QHOVER · QHOVER is a hover mode
- the flight is hovering · QHOVER is a hover mode
- the last plan item is none · An empty plan has no last item
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.
- the autopilot mode is CRUISE · CRUISE changes a hover into forward flight with the radio
- the flight is cruising · CRUISE changes a hover into forward flight with the radio
- the last plan item is none · An empty plan has no last item
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.
- the autopilot mode is QRTL · QRTL brings the plane home and lands it softly
- the last landing is soft · QRTL brings the plane home and lands it softly
- the plane is on the ground · QRTL brings the plane home and lands it softly
- the last plan item is none · An empty plan has no last item