Pierre Kancir
daaf769055
Tools: add arm/disarm testing on all modes
6 years ago
Pierre Kancir
9850d1afec
Tools: update with flake8
...
W605 invalid escape sequence '\s'
F402 import 'time' from line 10 shadowed by loop variable
E101 indentation contains mixed spaces and tabs
E703 statement ends with a semicolon
6 years ago
Peter Barker
7b933ffd8a
Tools: autotest: add test for mission_item download
...
Ensures that target_system and target_component are appropriately set in
return packet
6 years ago
Peter Barker
e6b1fa507d
Tools: autotest: rename get_mission_item_on_link to get_mission_item_int_on_link
6 years ago
SergeyBokhantsev
c9447776b2
Tools: autotest: correct debounce tests under Rover
...
Channel 8 is the mode channel under Rover
6 years ago
Peter Barker
e4761e1ee4
Tools: autotest: avoid draining button change message we want
6 years ago
Peter Barker
0a2ee0f04c
Tools: autotest: unshadow clear_mission method
6 years ago
Peter Barker
d8278335a1
Tools: autotest: move upload_using_mission_protocol up to common.py
6 years ago
Peter Barker
8d90b09829
Tools: autotest: add tests for upload/download rally using mission protocol
...
Tools: autotest: add tests for mission clearing
Tools: autotest: add tests for out-of-range mission counts
Tools: autotest: add test for Plane DO_CHANGE_SPEED
6 years ago
Peter Barker
967bf39ec0
Tools: autotest: correct Rover zero throttle
6 years ago
Peter Barker
c726db2a82
Tools: autotest: add trivial test for old fence protocol
6 years ago
Peter Barker
12e62d0107
Tools: autotest: correct reversion of self.mav.mav.srcSystem
6 years ago
Peter Barker
4bdc18569e
Tools: autotest: correct for new staustext output
6 years ago
Peter Barker
da2cf627d8
Tools: autotest: add test for buttons
6 years ago
Peter Barker
86f8fcfd8a
Tools: autotest: add test for Rover manual control
6 years ago
Peter Barker
9a16b40a73
Tools: autotest: rename get_rudder_channel to get_stick_arming_channel
...
... as some of these aren't actually rudder inputs...
6 years ago
Peter Barker
6fe7db2f43
Tools: autotest: add test for REQUEST_MESSAGE
6 years ago
Peter Barker
6bf600c587
Tools: autotest: cope with being unable to reboot while armed
6 years ago
Peter Barker
873096f791
Tools: autotest: add test for Rover offboard-in-auto function
6 years ago
Peter Barker
4f136512f0
Tools: autotest: fix balancebot RTL test
6 years ago
Peter Barker
d53f787a14
Tools: factor init up into parent class
...
Tools: autotest: use speedup 8 for all suites
for reliability
6 years ago
Peter Barker
844999c458
Tools: autotest: get accuracy before doing RTL
...
It can take a very long time to get our parameter value, so get it while
we're NOT moving away from the RTL location!
6 years ago
Peter Barker
fcff818a23
Tools: autotest: increase timeout allowed for getting first nav-controller-output message
6 years ago
Peter Barker
28e27b4120
Tools: autotest: improve test reliability
...
Also remove redundant reset code
Tools: autotest: drain mav and all pexexpects before running each test
Tools: autotest: increase some timeouts for failures when running under GDB
Tools: autotest: correct ordering of operations in mount test
6 years ago
Peter Barker
6418226106
Tools: autotest: increase test diagnostics
...
Tools: autotest: improve wait_distance_home_gt output
Tools: autotest: emit progress for parameter sets
Tools: autotest: add progress for RC health checks
Tools: autotest: remove pointless context
6 years ago
Peter Barker
d48eab893a
Tools: autotest: stop swallowing critical messages with get_sim_time()
6 years ago
Peter Barker
e4b3ad377d
Tools: autotest: acceptance distance for rally points is WP_RADIUS
6 years ago
Peter Barker
e78eec3292
Tools: autotest: account for Rover blowing past home in DriveRTL
6 years ago
Peter Barker
f2e3d377ad
Tools: autotest: drain mav during RTL test to improve reliability
6 years ago
Peter Barker
6103d5ebac
Tools: autotest: add a simple dataflash-over-mavlink test
6 years ago
Peter Barker
50687c9add
Tools: autotest: ArmFeatures is common to all vehicles; use inheritted tests
6 years ago
Pierre Kancir
7e12f16be6
Tools: fix lambda test
6 years ago
Peter Barker
a117e4571d
Tools: autotest: add simple Rally test
6 years ago
Peter Barker
c0394e9577
Tools: autotest: tidy handling of SITL start position
6 years ago
Peter Barker
07c07928ee
Tools: autotest: adjust Rover mission-toggling mission for magic-home
6 years ago
Peter Barker
957f637043
Tools: autotest: add autotest for setting home position with command-int
6 years ago
Peter Barker
1347083548
Tools: autotest: add tests for Rover gripper support
6 years ago
Peter Barker
6f1f98dc3c
Tools: autotest: add assumption run_tests is only called once - remove hasInit
6 years ago
Pierre Kancir
8a7555bf56
Tools: autotest: fix up the arming tests
...
Tools: unify arm function failure message
Tools: get autodisarm time from parameter for autodisarm test
Tools: disable autodisarm for arm/disarm tests.
Tools: fix interlock channel for heli
Tools: simplify arming_test sub exclusion
Tools: fix empty string in progress
Tools: add back arming test to plane
Tools: allow single test run on Sub
Tools: remove old comments on autotest common
Tools: add vehicle type getter function
Tools: make get_rudder_channel abstract method
Tools: common make get_disarm_delay abstract method
Tools: make set_autodisarm_delay abstract method
Tools: rename set_throttle_zero to zero_throttle and use it
Tools: common.py remove unnecessary exception
Tools: subclass vehicle type
6 years ago
Peter Barker
584013de58
Tools: autotest: correct debug for precision
6 years ago
Peter Barker
657e1bee5a
Tools: autotest: use absolute path for rover avoidance fence
...
This stops us making the assumption MAVProxy's cwd is the ArduPilot git
root
6 years ago
Peter Barker
fa37ad344b
Tools: autotest: refactor setting of rc defaults
6 years ago
Peter Barker
2834fd8017
Tools: autotest: add test for channel override cancel
6 years ago
Peter Barker
7aa1d51585
Tools: autotest: move balancebot to new tests structure
6 years ago
cclauss
89be497897
Tools: Undefined name: 'AutoTestTimeoutException'
...
[flake8](http://flake8.pycqa.org ) testing of https://github.com/ArduPilot/ardupilot on Python 3.7.1
$ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__
```
./Tools/autotest/apmrover2.py:688:27: F821 undefined name 'AutoTestTimeoutException'
raise AutoTestTimeoutException("Did not reach speed")
^
./Tools/autotest/apmrover2.py:717:27: F821 undefined name 'AutoTestTimeoutException'
raise AutoTestTimeoutException("Did not stop")
^
2 F821 undefined name 'AutoTestTimeoutException'
2
```
6 years ago
Peter Barker
28b0267b6c
Tools: autotest: add timeout on Rover test_rc_overrides
6 years ago
Peter Barker
686bfc367e
Tools: autotest: tee MAVProxy output to per-test file
6 years ago
Peter Barker
9eae7857dd
Tools: autotest: make Rover use new tests framework
6 years ago
Peter Barker
10c27e07d4
Tools: autotest: make aux switch test more reliable
6 years ago
Peter Barker
31d6daa1ae
Tools: auotest: add test to ensure components are accepted if SYSID_ENFORCE
6 years ago