Commit Graph

171 Commits

Author SHA1 Message Date
Peter Barker 5b45931728 autotest: test buttons on Plane and Copter as well as Rover 2019-12-10 09:29:52 +09:00
Peter Barker e5521ce6c4 autotest: add frame tests for upload/download waypoint missions 2019-12-05 08:03:33 +08:00
Peter Barker 4d628c2822 autotest: add test for send_to_components 2019-11-26 12:10:12 +11:00
Peter Barker 7dda87fd44 autotest: assert ArduPilot announces compass cal capability 2019-11-05 11:26:23 +11:00
Michael du Breuil 88fa7eee6e Tools: Add a more complicated scripting test 2019-10-31 07:10:55 +11:00
Peter Barker d8f0960214 autotest: correct delay in simple loop test 2019-10-28 19:02:58 +11:00
Peter Barker 117630a469 autotest: add delay for loop test to ensure we get >=3 messages 2019-10-27 09:17:54 +11:00
Peter Barker 7842d07b12 autotest: add test for scripting 2019-10-24 13:50:51 +11:00
Peter Barker 8785ff7a14 autotest: make polyfence avoidance test more reliable
Amusingly, at faster speedups the car made a decision to turn North
rather than South which it does when at lower speedups.

Gave it no choice in the matter.
2019-10-15 23:14:31 +11:00
Peter Barker f7e39bd9f4 Tools: autotest changes after Auto behaviour change on completion 2019-10-15 17:03:00 +09:00
Andrew Tridgell 3f9999d932 autotest: fixed MISSION_ITEM_INT receive to be reliable
use a condition in recv_match() to ensure we don't mix up msgs from
other protocols
2019-10-09 19:56:51 +11:00
Peter Barker 34ef247449 Tools: autotest: correct mavproxy version test 2019-10-09 08:07:24 +11:00
Peter Barker a637c6e4ea Tools: autotest: correct test for MAVProxy capabilities
Once MAVProxy actually gets support for fence and rally via mission item
protocol this can be changed.
2019-10-09 08:04:54 +11:00
Peter Barker 05b6f727ee Tools: autotest: add wheel encoder test for Rover 2019-10-07 07:31:53 +11:00
Peter Barker c5f52a8355 Tools: autotest: tests for new fence code
Tools: autotest: move clear_mission up, use it before running each test

Also have it understand MAV_MISSION_TYPE_ALL

Tools: autotest: add tests for polyfence

Tools: autotest: add tests for multiple inclusion polyfences

Tools: autotest: ensure we can't arm inside a circle exclusion zone

Tools: autotest: add test for arming outside an inclusion zone

Tools: autotest: add tests for upload timeout

Tools: autotest: add tests for not arming due to polygon zones

Tools: autotest: add test for fence point reboot survivability

Tools: autotest: add test for moving fence point

Tools: autotest: add some tests via MAVProxy

Tools: autotest: add test for avoiding polygonal exclusion zones

Tools: autotest: add test for object avoidance

Currently disabled as it doesn't pass where it seemingly should.

Tools: autotest: skip MAVProxy tests on older MAVProxy versions

Tools: autotest: adjust fence loading for lack of string back from MAVProxy

Tools: autotest: create a do_RTL function

Tools: autotest: cope with loading QGC-style fence files

Tools: autotest: add test for object-avoidance in guided mode

Tools: autotest: add OA test for auto mode

Tools: autotest: add test for bendy ruler in guided mode

Tools: autotest: adjust for new MAVProxy fence module not emitting old strings

Tools: autotest: add tests for prearming due to bad parameter values
2019-09-28 07:58:48 +09:00
Peter Barker 642935fd43 Tools: random Python cleanups based on lgtm analysis 2019-09-21 22:26:03 +10:00
Peter Barker 1f25b6e406 Tools: autotest: add test for SITL implementation of Block backend 2019-09-18 17:42:18 +10:00
Ebin c449be3afb Autotest: Balance Bot changes to Acro after Auto mission instead of Loiter 2019-09-18 07:07:08 +10:00
Peter Barker c153a2d891 Tools: autotest: add test for motor test 2019-08-19 09:03:06 +09:00
Peter Barker bf0a947317 Tools: autotest: improve test diagnostics 2019-08-08 08:35:52 +10:00
Peter Barker 472d98dcb7 Tools: autotest: wait longer for mission acks
Nothing is adjusting the streamrates on our second mavlink port, meaning
we have to get through a lot of traffic before getting acks.
2019-08-07 12:28:57 +10:00
Peter Barker d68e8f4cfb Tools: autotest: wait for any message on link before requesting mission count 2019-08-07 08:39:53 +10:00
Peter Barker 6896b7b302 Tools: autotest: improve tests of MISSON_ITEM compatability layer
Tools: autotest: test returned MISSION_ITEM has correct mission_type

Tools: autotest: correct spelling on mission

Tools: autotest: add sanity check for sequence number on returned items

Tools: autotest: add test that we MISSION_ACK for bad MISSION_ITEM seq

Tools: autotest: improve debug on MISSION_COUNT assertion

Tools: autotest: validate returned mission type
2019-08-06 13:58:44 +10:00
Peter Barker 0805547ba6 Tools: autotest: break out roundtrip_fencepoint_protocol method 2019-08-05 18:31:27 +10:00
Peter Barker 44ccbcf78a Tools: autotest: rename send_clear_mission to clear_mission 2019-08-05 16:49:58 +10:00
Peter Barker 12b9928a56 Tools: autotest: break out a load_fence function 2019-08-05 16:37:08 +10:00
Peter Barker 428b790771 Tools: autotest: correct rally point upload tests 2019-08-01 17:44:37 +10:00
Peter Barker 1fbd41e6f3 Tools: autotest: add test for Rover SmartRTL 2019-07-23 19:00:38 +10:00
Pierre Kancir 32f5d80689 Tools: rover: use do_set_relay 2019-07-16 18:58:54 +10:00
Pierre Kancir daaf769055 Tools: add arm/disarm testing on all modes 2019-07-11 11:42:45 +10:00
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
2019-07-09 12:46:39 +10:00
Peter Barker 7b933ffd8a Tools: autotest: add test for mission_item download
Ensures that target_system and target_component are appropriately set in
return packet
2019-07-09 09:25:06 +10:00
Peter Barker e6b1fa507d Tools: autotest: rename get_mission_item_on_link to get_mission_item_int_on_link 2019-07-09 09:25:06 +10:00
SergeyBokhantsev c9447776b2 Tools: autotest: correct debounce tests under Rover
Channel 8 is the mode channel under Rover
2019-07-04 11:35:05 +10:00
Peter Barker e4761e1ee4 Tools: autotest: avoid draining button change message we want 2019-06-24 10:04:39 +10:00
Peter Barker 0a2ee0f04c Tools: autotest: unshadow clear_mission method 2019-06-24 10:04:24 +10:00
Peter Barker d8278335a1 Tools: autotest: move upload_using_mission_protocol up to common.py 2019-06-07 16:29:37 +10:00
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
2019-05-22 08:53:45 +10:00
Peter Barker 967bf39ec0 Tools: autotest: correct Rover zero throttle 2019-05-15 12:50:35 +09:00
Peter Barker c726db2a82 Tools: autotest: add trivial test for old fence protocol 2019-04-30 08:44:03 +10:00
Peter Barker 12e62d0107 Tools: autotest: correct reversion of self.mav.mav.srcSystem 2019-04-29 21:53:23 +10:00
Peter Barker 4bdc18569e Tools: autotest: correct for new staustext output 2019-04-02 11:07:58 +11:00
Peter Barker da2cf627d8 Tools: autotest: add test for buttons 2019-04-02 08:13:44 +11:00
Peter Barker 86f8fcfd8a Tools: autotest: add test for Rover manual control 2019-03-27 11:57:51 +11:00
Peter Barker 9a16b40a73 Tools: autotest: rename get_rudder_channel to get_stick_arming_channel
... as some of these aren't actually rudder inputs...
2019-03-27 11:29:53 +11:00
Peter Barker 6fe7db2f43 Tools: autotest: add test for REQUEST_MESSAGE 2019-03-26 16:20:50 +11:00
Peter Barker 6bf600c587 Tools: autotest: cope with being unable to reboot while armed 2019-03-19 10:53:37 +11:00
Peter Barker 873096f791 Tools: autotest: add test for Rover offboard-in-auto function 2019-03-15 14:51:35 +09:00
Peter Barker 4f136512f0 Tools: autotest: fix balancebot RTL test 2019-03-15 12:22:22 +11:00
Peter Barker d53f787a14 Tools: factor init up into parent class
Tools: autotest: use speedup 8 for all suites

for reliability
2019-03-13 08:20:20 +11:00