SIM001 › Real hardware › The flight computer
Checking the sticks on the serial line › Centre, full travel, half travel, arm passed
As a pilot with a TX15, I want to see that each stick reaches ArduPilot, so that I know the plane does what my hands do.
The test behind the tutorial Checking the sticks on the serial line: 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 5 seconds pass
When 5 seconds pass Then the roll channel is 1500 us And the pitch channel is 1500 us
Expected behaviour: A centred stick is 1500 us.
- the roll channel is 1500 us · A centred stick is 1500 us
- the pitch channel is 1500 us · A centred stick is 1500 us
2 When the TX15 roll stick is 100 % and the TX15 throttle stick is 100 % and 5 seconds pass
When the TX15 roll stick is 100 % And the TX15 throttle stick is 100 % And 5 seconds pass Then the roll channel is at least 1990 us And the throttle channel is at least 1990 us
Expected behaviour: A stick at full travel is at the end of the range.
- the roll channel is at least 1990 us · A stick at full travel is at the end of the range
- the throttle channel is at least 1990 us · A stick at full travel is at the end of the range
3 When the TX15 pitch stick is -50 % and 5 seconds pass
When the TX15 pitch stick is -50 % And 5 seconds pass Then the pitch channel is at least 1245 us And the pitch channel is at most 1255 us
Expected behaviour: A stick at full travel is at the end of the range, A stick at half travel is half way.
- the roll channel is at least 1990 us · A stick at full travel is at the end of the range
- the throttle channel is at least 1990 us · A stick at full travel is at the end of the range
- the pitch channel is between 1245 and 1255 us · A stick at half travel is half way
- the pitch channel is at least 1245 us · the story
- the pitch channel is at most 1255 us · the story
4 When the TX15 arm switch is on and 5 seconds pass
When the TX15 arm switch is on And 5 seconds pass Then the arm channel is at least 1900 us
Expected behaviour: A stick at full travel is at the end of the range, A stick at half travel is half way, The arm switch goes to its channel.
- the roll channel is at least 1990 us · A stick at full travel is at the end of the range
- the throttle channel is at least 1990 us · A stick at full travel is at the end of the range
- the pitch channel is between 1245 and 1255 us · A stick at half travel is half way
- the arm channel is at least 1900 us · The arm switch goes to its channel