Commit Graph

270 Commits

Author SHA1 Message Date
Peter Barker 4d0ae8c371 Tools: autotest: add test for MAVLINK_MSG_ID_SET_POSITION_TARGET_LOCAL_NED 2019-02-26 14:09:21 +11:00
Peter Barker e9fc158c8a Tools: autotest: eliminate use of recv_match with condition
We have functions for achieving this

Also, a lot of these places were missing timeouts, so any failure would
cause the entire suite to stop running
2019-02-22 16:30:05 +11:00
Pierre Kancir 7e12f16be6 Tools: fix lambda test 2019-02-22 08:04:03 +11:00
Peter Barker c0394e9577 Tools: autotest: tidy handling of SITL start position 2019-02-16 19:14:48 +11:00
Peter Barker 025f007f96 Tools: autotest: simplify mission loading 2019-02-16 10:27:41 +11:00
Peter Barker a1aefaff27 Tools: autotest: add parachute tests
Tools: autotest: add test for triggering parachute via mavlink

Tools: autotest: add Copter mission test for parachute release

Tools: autotest: add Plane test for parachute deployment in auto
2019-02-13 09:25:27 +09:00
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