SIM001 › Real hardware › The flight computer
Reading the flight display › From PreArm to RTL passed
As a pilot with a TX15, I want the screen of the TX15 to show the flight as a flight display, so that I see the mode, the attitude, the speeds, the battery and what ArduPilot says.
The test behind the tutorial Reading the flight display: every step it takes, what it checks and what it saw.
Start
From the setup of The flight computer.
Everything it starts with
Given the TX15 is connected And the TX15 roll stick is 0 % And the TX15 pitch stick is 0 % And the TX15 throttle stick is 0 % And the TX15 arm switch is off And the corrupted frames are 0 % And the TX15 screen battery is 12 V And the TX15 screen bank is 0 degrees And the TX15 screen airspeed is 0 m/s And the TX15 screen climb is 0 m/s And the TX15 screen satellites is 12 And the TX15 screen message is none And the ground station telemetry is silent And the ground station map distance is 0 m And the TX15 screen mode is MANUAL And the TX15 screen arming is disarmed
- Every arranged state read back as arranged (16)
1 When the TX15 screen message is PreArm: Throttle (RC3) is not neutral and 5 seconds pass
When the TX15 screen message is PreArm: Throttle (RC3) is not neutral And 5 seconds pass Then the TX15 screen message is PreArm: Throttle (RC3) is not neutral
Expected behaviour: A centred stick is 1500 us, The screen shows what ArduPilot says.
- the roll channel is 1500 us · A centred stick is 1500 us
- the pitch channel is 1500 us · A centred stick is 1500 us
- the TX15 screen message is PreArm: Throttle (RC3) is not neutral · The screen shows what ArduPilot says
2 When the TX15 screen arming is armed and 5 seconds pass
When the TX15 screen arming is armed And 5 seconds pass Then the TX15 screen arming is armed
Expected behaviour: A centred stick is 1500 us, The TX15 shows when the plane is armed, The screen shows what ArduPilot says.
- the roll channel is 1500 us · A centred stick is 1500 us
- the pitch channel is 1500 us · A centred stick is 1500 us
- the TX15 screen arming is armed · The TX15 shows when the plane is armed
- the TX15 screen message is PreArm: Throttle (RC3) is not neutral · The screen shows what ArduPilot says
3 When the TX15 screen satellites is 9 and 5 seconds pass
When the TX15 screen satellites is 9 And 5 seconds pass Then the TX15 screen satellites is 9
Expected behaviour: A centred stick is 1500 us, The TX15 shows when the plane is armed, The screen counts the satellites, The screen shows what ArduPilot says.
- the roll channel is 1500 us · A centred stick is 1500 us
- the pitch channel is 1500 us · A centred stick is 1500 us
- the TX15 screen arming is armed · The TX15 shows when the plane is armed
- the TX15 screen satellites is 9 · The screen counts the satellites
- the TX15 screen message is PreArm: Throttle (RC3) is not neutral · The screen shows what ArduPilot says
4 When the TX15 screen airspeed is 18 m/s and 5 seconds pass
When the TX15 screen airspeed is 18 m/s And 5 seconds pass Then the TX15 screen airspeed is 18 m/s
Expected behaviour: A centred stick is 1500 us, The TX15 shows when the plane is armed, The screen shows the airspeed, The screen counts the satellites, The screen shows what ArduPilot says.
- the roll channel is 1500 us · A centred stick is 1500 us
- the pitch channel is 1500 us · A centred stick is 1500 us
- the TX15 screen arming is armed · The TX15 shows when the plane is armed
- the TX15 screen airspeed is 18 m/s · The screen shows the airspeed
- the TX15 screen satellites is 9 · The screen counts the satellites
- the TX15 screen message is PreArm: Throttle (RC3) is not neutral · The screen shows what ArduPilot says
5 When the TX15 screen bank is 30 degrees and 5 seconds pass
When the TX15 screen bank is 30 degrees And 5 seconds pass Then the TX15 screen bank is 30 degrees
Expected behaviour: A centred stick is 1500 us, The TX15 shows when the plane is armed, The TX15 shows the bank, The screen shows the airspeed, The screen counts the satellites, The screen shows what ArduPilot says.
- the roll channel is 1500 us · A centred stick is 1500 us
- the pitch channel is 1500 us · A centred stick is 1500 us
- the TX15 screen arming is armed · The TX15 shows when the plane is armed
- the TX15 screen bank is 30 degrees · The TX15 shows the bank
- the TX15 screen airspeed is 18 m/s · The screen shows the airspeed
- the TX15 screen satellites is 9 · The screen counts the satellites
- the TX15 screen message is PreArm: Throttle (RC3) is not neutral · The screen shows what ArduPilot says
6 When the TX15 screen climb is -3 m/s and the TX15 screen mode is RTL and 5 seconds pass
When the TX15 screen climb is -3 m/s And the TX15 screen mode is RTL And 5 seconds pass Then the TX15 screen mode is RTL And the TX15 screen climb is -3 m/s
Expected behaviour: A centred stick is 1500 us, The TX15 shows the flight mode, The TX15 shows when the plane is armed, The TX15 shows the bank, The screen shows the airspeed, The screen shows the climb with its sign, The screen counts the satellites, The screen shows what ArduPilot says.
- the roll channel is 1500 us · A centred stick is 1500 us
- the pitch channel is 1500 us · A centred stick is 1500 us
- the TX15 screen mode is RTL · The TX15 shows the flight mode
- the TX15 screen arming is armed · The TX15 shows when the plane is armed
- the TX15 screen bank is 30 degrees · The TX15 shows the bank
- the TX15 screen airspeed is 18 m/s · The screen shows the airspeed
- the TX15 screen climb is -3 m/s · The screen shows the climb with its sign
- the TX15 screen satellites is 9 · The screen counts the satellites
- the TX15 screen message is PreArm: Throttle (RC3) is not neutral · The screen shows what ArduPilot says
7 When the TX15 screen battery is 11.1 V and 5 seconds pass
When the TX15 screen battery is 11.1 V And 5 seconds pass Then the TX15 screen battery is 11.1 V
Expected behaviour: A centred stick is 1500 us, The TX15 shows the flight mode, The TX15 shows when the plane is armed, The TX15 shows the battery, The TX15 shows the bank, The screen shows the airspeed, The screen shows the climb with its sign, The screen counts the satellites, The screen shows what ArduPilot says.
- the roll channel is 1500 us · A centred stick is 1500 us
- the pitch channel is 1500 us · A centred stick is 1500 us
- the TX15 screen mode is RTL · The TX15 shows the flight mode
- the TX15 screen arming is armed · The TX15 shows when the plane is armed
- the TX15 screen battery is 11.1 V · The TX15 shows the battery
- the TX15 screen bank is 30 degrees · The TX15 shows the bank
- the TX15 screen airspeed is 18 m/s · The screen shows the airspeed
- the TX15 screen climb is -3 m/s · The screen shows the climb with its sign
- the TX15 screen satellites is 9 · The screen counts the satellites
- the TX15 screen message is PreArm: Throttle (RC3) is not neutral · The screen shows what ArduPilot says