Commit Graph

130 Commits

Author SHA1 Message Date
Peter Barker c7fe8f7c33 autotest: add test for transitioning with disabled airspeed sensor 2023-02-28 21:43:09 +11:00
Andrew Tridgell 4c6648fada autotest: added VTOLQuicktune test
ensure this script doesn't break
2023-02-24 09:43:41 -08:00
Pierre Kancir f8187984a7 Tools: fix flake8 checks 2023-02-04 12:41:06 +11:00
Peter Barker 2b2bd2b85b autotest: add a test for VTOL land spiral code 2023-01-15 21:32:27 +11:00
Peter Barker ea167d5bd8 autotest: create fresh fly_mission suitable for other missions
the fly_mission in quadplane was very-much Dalby-specific
2023-01-15 10:16:17 +11:00
Peter Barker 7d38164176 autotest: add simple test for LoiterAltQLand 2022-12-31 10:58:19 +11:00
Peter Barker b6f1891f9f autotest: add test for loiter-to-alt 2022-12-13 11:41:23 +11:00
Peter Barker 49ec94af1b autotest: add test for manual throttle control for ICEngine 2022-11-08 08:59:56 +11:00
Andrew Tridgell ee003d7eee autotest: fixed ICE tests to use an IC engine
we need to use quadplane-ice or plane-ice to get a simulated IC engine
the test was just using an electric motor
2022-10-16 06:25:59 +11:00
Peter Barker ba6cf1a42b autotest: remove disabled LogUpload test
This has been unused for a long time, and is getting in the way of reforms.  Its position as a test rather than as a part of a framework was always going to cause oddities, particularly after we split the Copter tests into several chunks.
2022-09-11 20:45:13 +10:00
m 3fdcf5f940 autotest: test landed state of copter during takeoff in auto mode 2022-09-10 21:53:23 +10:00
Peter Barker 80c36ecc97 autotest: use reflection to collect test details
We had a pattern emerging of using the test name as the method name to contain the actual test.  We also tended to duplicate the docstrings in the test description - or omit the docstring.

This uses reflection to retrieve both the test name and the description, meaning less duplication of this information and enforcing having docstrings on the test methods.
2022-09-10 18:27:27 +10:00
Peter Barker f2ceb6b0a9 autotest: add a test for SIM_SHIP_ENABLE
trivial takeoff test in qloiter.

Will break with the default ship speed of 3.
2022-09-02 14:24:51 +10:00
Peter Barker 8360a3c247 autotest: force-disarm quadplane after ICEngine test
ICE provides forward thrust, which can make us think we're flying
2022-08-17 09:58:11 +10:00
Peter Barker 00d3af6fc5 autotest: handle terrain requests internally to autotest
We will cache all required SRTM data within the autotest branch
2022-08-16 11:12:44 +10:00
Peter Barker 9f58e7df31 autotest: add test for quadplane booting in auto 2022-08-16 07:24:22 +10:00
Peter Barker 46dacd3b61 autotest: add tests for disallowing flying mid-air 2022-08-12 09:44:08 +10:00
Peter Barker 5ee8f99e7b autotest: adjust for terrain arming requirements
Lots of tests really did need terrain stuff but weren't able to get it
2022-08-09 14:31:14 +10:00
Peter Barker 215842fe82 Tools: add tests for ICE Planes 2022-07-01 19:33:51 +10:00
Andrew Tridgell 985e24275a autotest: don't try to arm in RTL mode for quadplanes 2022-05-18 06:43:16 +10:00
Andrew Tridgell 151f17d563 autotest: reset mission on takeoff for quadplanes 2022-05-15 21:17:50 +10:00
Andrew Tridgell 6fcf85edb8 autotest: more changes for plane disarm disallow 2022-03-09 17:13:45 +11:00
Andrew Tridgell e6bbd7f548 autotest: adjust for arming change in plane
expect disarm to fail when airmode on
2022-03-09 17:13:45 +11:00
Peter Barker 376d7ade50 autotest: use assert_receive_message to remove redundant code 2022-02-15 11:06:10 +11:00
Gone4Dirt a11634e1e8 Tools: autotest: quadplane: add weathervane test 2022-02-08 10:38:16 +11:00
Peter Barker 873e04195f autotest: add test for QuadPlane transition states 2021-11-15 07:21:27 +11:00
Iampete1 a69f40b7fb Tools: autotest: update quadplane throttle min param name 2021-10-11 22:19:17 -04:00
Iampete1 52a805e978 Tools: autotest: update arming swich option number 2021-09-21 09:36:24 +10:00
Iampete1 2fa24fa7da Tools: autotest: enable tailsitter for tailsitter test 2021-08-25 14:34:50 +01:00
Peter Barker 0d4bee8f7b autotest: except QRTL/QLAND from airmode tests due to non-armability
The test wasn't checking the return value for arming, so of course the
motors weren't spinning.... now we've fixed the checked-for-arming thing
these two modes were failing.
2021-08-13 13:40:28 +10:00
Peter Barker 8fc6e98900 autotest: raise exception for arm/disarm failures on switch/rc
Users were calling these without checking the return values. Make that
a non-issue
2021-08-13 13:40:28 +10:00
Peter Barker 99a0f5a86a autotest: disable quadplane ConfigErrorLoop test
failing on the autotest server (and locally).

AT-1474.6: RC values bad: (ch=1 want=1500 got=0)
AT-1474.6: AP: Config error: Baro: unable to initialise driver
AT-1474.6: AP: Config Error: fix problem then reboot
AT-1474.6: RC values bad: (ch=1 want=1500 got=0)
AT-1474.6: RC values bad: (ch=1 want=1500 got=0)
AT-1474.6: RC values bad: (ch=1 want=1500 got=0)
2021-06-27 11:09:39 +10:00
Peter Barker 6944ef6af1 autotest: fly each working Helicopter frame 2021-06-09 12:15:42 +10:00
Peter Barker cf4acaa2aa autotest: re-enable quadplane QAutoTune test 2021-05-05 23:43:59 +10:00
Peter Barker fdbbcaa506 autotest: bump default speedups for several vehicles
These tests seem to run stabley on my box with essentially no speedup
limit
2021-03-24 14:46:48 +11:00
Peter Barker 462ac255a3 autotest: start MAVProxy only as needed for testing 2021-03-19 09:46:45 +11:00
Peter Barker 4b3adb806c autotest: add test for tailsitter throttle 2021-03-16 10:41:44 +11:00
Randy Mackay 4abae23306 Tools: disable QuadPlane.GyroFFT autotest 2021-03-08 08:52:05 +09:00
Peter Barker d4aef2dba8 autotest: stop using MAVProxy to change mode 2021-02-20 00:03:24 +11:00
Peter Barker 05c9b79a5e autotest: make and declare quadplane.py flake8-clean 2021-02-20 00:02:33 +11:00
Peter Barker c13d229877 autotest: use self.set_current_waypoint rather than "wp set" to set current wp 2021-02-19 12:25:40 +11:00
Peter Barker cdaff74948 autotest: stop trying to arm in QRTL 2021-02-03 18:22:10 +11:00
Andrew Tridgell 3e640eed80 autotest: changes for per-IMU biases and scaling 2021-01-21 13:09:21 +11:00
Andrew Tridgell c396d15890 Revert "autotest: ensure defaults files don't set already-default-values"
This reverts commit 3d431cd4f1.

It breaks MissionPlanner SITL. We can re-apply once MissionPlanner
copes with external_model.
2021-01-20 08:54:43 +11:00
Peter Barker 3d431cd4f1 autotest: ensure defaults files don't set already-default-values
autotest: mark some vehicles as having external physics models

autotest: add default_params_filename to some vehicle info
2021-01-19 10:34:00 +11:00
Peter Barker e85e6d3375 autotest: use new set_parameters in place of many set_parameter calls
autotest: use set_parameters for applying from parameter file

autotest: use set_parameters in place of many set_parameter calls
2021-01-13 15:09:29 +11:00
Andrew Tridgell 3e3da61396 Tools: fixes from review feedback 2020-10-28 14:20:44 +11:00
Andrew Tridgell 1286c5f64e Tools: adjust quadplane tuning and QAssist test
fixed roll RTL and land in QAssist test
2020-10-28 14:20:44 +11:00
Andrew Tridgell 7820b402d6 Tools: tweak Qassist test to be more reliable
disabling stall prevention should help with travis
2020-10-28 14:20:44 +11:00
Andrew Tridgell c7a60f57ad Tools: improved quadplane tuning
and shorten GyroFFT log msgs so values can be seen in log
2020-10-28 14:20:44 +11:00