Commit Graph

383 Commits

Author SHA1 Message Date
Peter Barker
edb301a4d0 autotest: add tests for JumpToTag 2023-02-22 05:33:38 -08:00
Peter Barker
fab1c47b27 autotest: add test for calibrating different nos of airspeed sensors
only success is checked for, not the calibration values
2023-02-21 17:07:41 +11:00
Andrew Tridgell
d00290edfe autotest: added AltResetBadGPS test
this tests the bug in handling a glitching GPS with low accuracy with
AHRS alt reset
2023-02-19 10:45:42 +11:00
Peter Barker
69b8e30f28 autotest: rename remove_example_script to remove_installed_script 2023-02-17 12:54:49 +11:00
Peter Barker
17429bb687 autotest: reboot after DCMFallback test
EKF3 can remain annoyed for a very, very long time after disarm
2023-02-07 19:24:59 +11:00
Peter Barker
f20769057b autotest: give WindEstimate more time to converge
this was right on the edge
2023-01-06 15:06:22 +11:00
Peter Barker
1a262010ff autotest: simplify Plane Rangefinder test
this was written before there was an implicit context and reboot-on-failure at the level calling these tests
2023-01-04 18:29:41 +11:00
Peter Barker
128a6430de autotest: add test for AHRS backend wind estimates 2023-01-04 12:30:27 +11:00
Peter Barker
c95daeea3e autotest: fix race condition in NeedEKFToArm
EKF may still be active when arming is first attempted
2022-12-16 11:06:56 +11:00
Peter Barker
dfb88839d3 autotest: loosen channel-value constrain in Soaring test
test is flapping here, channel value is moving in right direction
2022-12-02 12:12:32 +11:00
Andrew Tridgell
76b83c3d57 autotest: fixed aerobatics test for new Schedules location 2022-11-28 10:40:50 +11:00
Andrew Tridgell
2409b69245 autotest: adjust aerobatics test for new airshow schedule 2022-11-28 06:23:29 +11:00
Peter Barker
ce6763cc91 autotest: add test for Plane MANUAL_CONTROL handling 2022-11-23 19:33:46 +11:00
Paul Riseborough
740b7ba041 autotest: allow for reduced overspeed in DO_CHANGE_SPEED_mission plane test
Plane was overspeeding more in legacy TECS which meant it arrived at the test waypoint sooner.
2022-11-18 05:43:59 +11:00
Andrew Tridgell
38a9269822 autotest: lower aerobatics speedup to 5 2022-11-12 10:45:18 +11:00
Andrew Tridgell
46d41e5995 autoest: fixed spelling
and adjust max error for aerobatics
2022-11-12 07:34:21 +11:00
Andrew Tridgell
f2da06ebdf autotest: adjust aerobatics test for BarrellRoll 2022-11-11 14:19:44 +11:00
Andrew Tridgell
4ab0919d63 autotest: run aerobatics at slower speedup
need more cycles for lua
2022-11-11 08:25:33 +11:00
Andrew Tridgell
0abeca15e2 autotest: added scripting aerobatics test 2022-11-10 13:53:15 +11:00
Peter Barker
bacbac798c autotest: add tests for embedded defaults parsing 2022-10-13 14:38:30 +11:00
Andrew Tridgell
14be09d72c autotest: don't try and fly the ICE aircraft
they would need ignition control
2022-10-07 07:53:50 +11:00
Andrew Tridgell
9dd2301198 autotest: move do_aux_function to common 2022-09-30 07:44:42 +10:00
Peter Barker
3bf76dbb64 autotest: augment Plane following test to ensure we terrain follow 2022-09-27 21:32:42 +10:00
Paul Riseborough
221dc5c4d1 Tools: Use a more typical wind speed for the PitotBlockage autotest 2022-09-26 14:17:53 +10:00
Paul Riseborough
94f791c13e Tolls/autotest: Fix Flake8 style check fails 2022-09-26 14:17:53 +10:00
Paul Riseborough
b2e9d01a2e Tools/autotest: fail pitot tube at start of takeoff 2022-09-26 14:17:53 +10:00
Paul Riseborough
2ee8a34f70 Tools/autotest: rework arming and takeoff mode change order
Co-authored-by: Peter Barker <pb-gh@barker.dropbear.id.au>
2022-09-26 14:17:53 +10:00
Paul Riseborough
235cbbde1c Tools/autotest: Use clearer method of setting parameters
Co-authored-by: Peter Barker <pb-gh@barker.dropbear.id.au>
2022-09-26 14:17:53 +10:00
Paul Riseborough
5a1f02bbf2 Tools: Python coding style fixes 2022-09-26 14:17:53 +10:00
Paul Riseborough
3bf3a0348a Tools: Add partial unblockage to pitot blockage test 2022-09-26 14:17:53 +10:00
Paul Riseborough
d9321d09b3 Tools: Add autotest for pitot tube blockage handling 2022-09-26 14:17:53 +10: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
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
Michael du Breuil
80d7bf9b11 Tools: Update autotest to accomodate accel cal changes 2022-09-09 08:52:14 +10:00
Peter Barker
7571ef67af autotest: fix airspeed driver test mismatch at end of mission
ground interactions cause fluctuations
2022-08-29 11:02:14 +10:00
Peter Barker
3022299e71 autotest: disable SpeedToFly McReady tests
# mcReady tests don't work ATM, so just return early:
2022-08-29 08:23:41 +10:00
Peter Barker
2170c86b9c autotest: stop vehicle running into terrain in MAV_CMD_NAV_LOITER_TURNS 2022-08-19 17:05:22 +10:00
Iampete1
e7cbf266b3 Tools: autotest: plane: test allow mode change after fence breach option 2022-08-17 17:21:30 +10:00
Iampete1
83b544dd0c Tools: autotest: plane: wait at least 10 seconds before retriggering fence 2022-08-17 17:21:30 +10:00
Peter Barker
d2d5aada09 autotest: re-enable terrain loiter check
We now have reliable terrain in autotest
2022-08-16 21:12:37 +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
46dacd3b61 autotest: add tests for disallowing flying mid-air 2022-08-12 09:44:08 +10:00
Peter Barker
fecf7c2e0c autotest: augment Plane TerrainMission to check we *do* follow the terrain 2022-08-09 14:31:14 +10:00
Peter Barker
82bc2a7d85 autotest: adjust Plane EKF check for new configured-backend check 2022-07-28 15:53:13 +10:00
Peter Barker
3c700bdf44 autotest: disable terrain during frsky passthrough test
If terrain isn't available then our expected statustext gets blatted with one which RCTelemetry library emits
2022-07-21 14:31:32 +10:00
Peter Barker
515b79a6ca autotest: remove un-needed calls to drain_mav_unparsed
these calls are generally bad now, given we have context_collect things going on which always want to see messages coming in
2022-07-20 15:17:25 +10:00
Peter Barker
acd9fb9c0a autotest: pause/unpause SITL while draining mav
If Python can't keep up with the message volume coming from the autopilot we never manage to drain all messages from the vehicle.

So try pausing/unpausing the simulation so we can drain the link...

AT-1968.6: AP: PreArm: Radio failsafe on
AT-1969.9: AP: PreArm: Radio failsafe on
AT-1971.2: AP: PreArm: Radio failsafe on
AT-1972.4: AP: PreArm: Radio failsafe on
AT-1973.7: AP: PreArm: Radio failsafe on
AT-1974.9: AP: PreArm: Radio failsafe on
AT-1975.3: Drained 2000283 messages from mav (7218.974791/s)
AT-1975.3: Exception caught: Traceback (most recent call last):
  File "/mnt/volume_nyc3_01/autotest/APM/APM/Tools/autotest/common.py", line 699
8, in run_one_test_attempt
    self.context_pop()
  File "/mnt/volume_nyc3_01/autotest/APM/APM/Tools/autotest/common.py", line 499
3, in context_pop
    self.set_parameters(dead_parameters_dict, add_to_context=False)
2022-07-19 11:00:27 +10:00
Peter Barker
e77d0ce1a4 autotest: rewrite speedtofly test using wait_airspeed 2022-07-07 21:29:43 +10:00
Ryan Beall
592201d831 CI fix Soaring channel 3 check timeout 2022-06-30 20:06:33 +10:00
Ryan Beall
5a26635aca CI fix Climb before turn Timeout again 2 2022-06-30 20:06:33 +10:00