Commit Graph

264 Commits

Author SHA1 Message Date
Peter Barker
6f1f98dc3c Tools: autotest: add assumption run_tests is only called once - remove hasInit 2019-02-09 11:31:17 +11:00
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
2019-02-09 10:04:57 +11:00
Peter Barker
fe2f9f1f14 Tools: autotest: improve autotest output 2019-02-07 08:51:13 +11:00
Dmitri Ranfft
4e8f3a7a3a Autotest: renamed requested RangeFinder parameters to account for the new changes. 2019-02-04 11:08:52 +09:00
Peter Barker
1fcd7fac06 Tools: autotest: add test for flip mode 2019-02-04 11:07:28 +09:00
Peter Barker
e23313e16b Tools: autotest: ensure RC input is at defaults before each test 2019-02-04 08:00:07 +11:00
Peter Barker
fa37ad344b Tools: autotest: refactor setting of rc defaults 2019-02-04 08:00:07 +11:00
Peter Barker
2834fd8017 Tools: autotest: add test for channel override cancel 2019-02-01 11:48:01 +11:00
Peter Barker
44ff21479d Tools: autotest: add a test for RTL speed 2019-01-31 19:34:32 +09:00
Peter Barker
b66f80f452 Tools: autotest: allow heli tests to be run individually 2019-01-16 21:36:13 +11:00
Peter Barker
d0aaf34db5 Tools: autotest: add option to skip tests if they're annoying us in CI 2019-01-14 20:15:47 +11:00
Peter Barker
ecb3cabf72 Tools: add flight test for rangefinder in Copter 2019-01-09 16:55:42 +11:00
Peter Barker
55f751a8f4 Tools: autotest: add some tests for Copter parachute functions 2019-01-09 13:16:03 +11:00
Peter Barker
e93cff6e44 Tools: autotest: add test that rangefinder switch works 2019-01-08 12:39:40 +11:00
Peter Barker
e6bfbe5f07 Tools: autotest: fix initial mode switch position race
Solves a race condition where an initial setting of mode via mavlink
could be overwritten by the vehicle polling the RC channels and changing
mode based on the new positions.

This will require each vehicle to specify the mode expected without an
RC inputs present and the expected mode once the RC defaults have been
installed.  These two modes will need to be different to eliminate the
race condition.
2018-12-27 15:15:59 +11:00
Peter Barker
69293f46f3 Tools: autotest: convert Heli to new tests framework 2018-12-18 10:06:09 +11:00
Peter Barker
3b57635ec9 Tools: autotest: convert Copter to new tests framework 2018-12-18 10:06:09 +11:00
Peter Barker
a320a54f66 Tools: autotest: new wait_heartbeat raises exception if none received 2018-12-14 11:10:41 +11:00
Peter Barker
ec288cd867 Tools: autotest: make reboot detection more reliable 2018-12-14 09:48:17 +11:00
Peter Barker
f442a0a1b7 Tools: autotest: remove bad calls to progress 2018-12-11 12:04:24 +11:00
Peter Barker
723ad34dfb Tools: autotest: disable disarm_delay in case of rc getting stuck 2018-12-10 12:52:41 +09:00
Peter Barker
4ae8595da3 Tools: autotest: make fly_avc_test a little more self-contained 2018-12-06 10:02:03 +11:00
Peter Barker
88a003edd9 Tools: autotest: flake8 compliance 2018-11-24 08:30:02 +11:00
Peter Barker
f84370bb04 Tools: autotest: consolidate mission-loading functions
Also add sanity checks for mission loading

Tools: autotest: add missing import for arduplane.py
2018-11-16 10:06:25 +11:00
Peter Barker
8b36565b6c Tools: autotest: disable terrain in optical flow test
It is possible this is the cause of the unreliability of this test; the
rangefinder sees step-jumps in its readings.
2018-11-16 09:02:15 +11:00
Peter Barker
a75d678e7f Tools: autotest: add tests for precision loiter and landing 2018-11-15 19:03:01 +11:00
Peter Barker
1d2f8555c0 Tools: ardupilotwaf: adjust for new location of uploader.py 2018-11-15 09:55:14 +11:00
Andrew Tridgell
6b5088207b autotest: upload failed CI logs to autotest server 2018-11-10 21:23:02 +11:00
Peter Barker
c0af0cfe70 Tools: autotest: improve debug on optical limits test 2018-11-09 15:50:07 +11:00
Peter Barker
4e82250055 Tools: autotest: add test for Copter loiter-to-alt 2018-10-30 17:50:46 +09:00
Peter Barker
432b1fda3a Tools: autotest: add tests for AP_Mount 2018-10-30 17:19:14 +11:00
Peter Barker
2157999307 Tools: autotest: add tests for gripper mission items 2018-10-30 15:37:18 +11:00
Peter Barker
a66cc52573 Tools: autotest: provide description of exceptions in constructors 2018-10-19 08:52:44 +11:00
Andrew Tridgell
de39318f6d autotest: increase GPS AUTO glitch timeout
this was timing out in CI
2018-10-17 13:56:06 +11:00
Peter Barker
14d2012f54 Tools: autotest: add test for ekf navigation speed limits 2018-10-09 10:47:38 +11:00
Pierre Kancir
3a29379d9e Tools: run test_arm_feature for heli 2018-10-03 20:10:13 +10:00
Pierre Kancir
f441ab9f2a Tools: autotest: validate RTL if disarmed close to home 2018-10-03 17:45:54 +10:00
Pierre Kancir
598b487fef Tools: autotest: adjust start alt for throttle failsafe 2018-10-03 17:45:54 +10:00
Peter Barker
e4738192dd Tools: autotest: clear mission before toggling it in with ch7 2018-10-03 17:45:54 +10:00
Peter Barker
38ae0765ff Tools: autotest: increase throttle in stabilize mode to account for pitching 2018-10-03 17:45:54 +10:00
Peter Barker
a7042e3847 Tools: autotest: tweak output messages, loosen camera trigger timeout 2018-09-08 12:56:15 +10:00
Peter Barker
a9621191d8 Tools: autotest: correct descent throttle in copter fence test
1500 is sufficient that we may not descend.
2018-09-05 10:42:33 +10:00
Pierre Kancir
f6cc934678 Tools: pep8 corrections + correct variable shadowing 2018-08-27 17:08:47 +10:00
Pierre Kancir
d5c4c32529 Tools: add gripper test for copter 2018-08-27 14:39:49 +10:00
cclauss
da7fe1055a Tools: add missing import to arducopter.py
Fixes undefined names on lines 1406 and 1408
2018-08-27 11:40:47 +10:00
Pierre Kancir
aedd5a9db2 Tools: make takeoff check if it need arming and auto arm 2018-08-25 09:29:24 +09:00
Pierre Kancir
92d06c354e Tools: rise nav_takeoff_delay_abstime delta to cope with rounding. 2018-08-25 09:28:36 +09:00
Pierre Kancir
cc8aca1619 Tools: various fixes for Copter tests
Tools: correct altitude check

Tools: correct tests syntax

Tools: add autotest syntax check on common

Tools: search for syntax mistake on autotest lambda

Tools: put copter in hover trottle to prevent crash

Tools: reboot after baterry failsafe test

Tools: copter takeoff wait_ready_to_arm before arming

Tools: arm copter after land on RTL

Tools: reset copter battery voltage after battery failsafe
2018-08-21 20:41:09 +10:00
Peter Barker
ac55fae1c1 Tools: autotest: add test for Copter delayed-takeoff-with-do-set-speed 2018-08-20 14:15:40 +09:00
Peter Barker
680f78869d Tools: autotest: tidy and fix nav-delay test 2018-08-16 13:33:56 +10:00