Peter Barker
73be6c55f7
Tools: add Sagetech MXS simulator
2023-10-25 20:06:47 +11:00
Peter Barker
7d9cd3c1de
Tools: accept LOITER_UNLIM and RETURN_TO_LAUNCH as command_int
2023-10-17 12:58:57 +11:00
Andrew Tridgell
823a917ae1
autotest: added Plane.TerrainRally test
...
reproduces the issue from
https://github.com/ArduPilot/ardupilot/issues/25157
2023-10-14 10:46:00 +11:00
Peter Barker
c942dad35e
Tools: allow Plane to run MAV_CMD_MISSION_START as long and int
2023-10-11 19:05:56 +11:00
Peter Barker
54c5809428
Tools: add InterActTest to show interaction with automated setup
2023-10-06 13:03:53 +11:00
Peter Barker
3dfd06cff2
Tools: add tests for MAV_CMD_DO_LAND_START for both int and long
2023-10-04 19:04:25 +11:00
Peter Barker
4adc3fb25f
autotest: test MAV_CMD_DO_AUX_FUNCTION as both COMMAND_LONG and COMMAND_INT
2023-10-04 19:01:22 +11:00
Peter Barker
ad70237013
Tools: handle MAV_CMD_DO_FLIGHTTERMINATION as both long and int
2023-09-27 11:27:45 -07:00
Peter Barker
67b9a50153
autotest: add test for Plane do-go-around
2023-09-27 17:37:55 +10:00
Peter Barker
e8792eec68
autotest: add test for enabling autotune via mavlink command
2023-09-26 11:36:57 +10:00
Peter Barker
712237ec3a
autotest: add test for Plane MAV_CMD_DO_PARACUTE
2023-09-20 17:37:59 +10:00
Peter Barker
23150a0830
autotest: loosen constraint on achieved angles
...
apparently within 5 degrees is asking too much....
2023-09-18 20:40:18 +10:00
Peter Barker
ecbad5b35a
autotest: add test for ArduPlane fly-inverted mission item
2023-09-17 09:54:51 +10:00
Peter Barker
0918ddc05a
autotest: allow lots of time for GPS rate to recover after simple gyrocal
...
simple gyro cal makes the GPS units go unhealthy as they are
not maintaining their update rate (gyro cal is synchronous
in the main loop). Usually ~30 seconds to recover...
2023-09-13 17:24:07 +10:00
Peter Barker
8b59ad9006
autotest: add tests for MAV_CMD_PREFLIGHT_CALIBRATION
2023-09-13 17:24:07 +10:00
Peter Barker
2d4b952f47
autotest: augment DO_CHANGE_SPEED test to run as commadn_int/test throttle
2023-09-12 09:22:36 +10:00
Peter Barker
b1a0b35401
autotest: tweak Soaring test
...
autotest is failing because our vspeed is below the 0.6 threshold after we exceed the minimal thermal time.
Tweak both numbers to try to make test reliable
Also re-arrange to try to reduce race-conditions between the Python and C++ code
2023-09-08 22:16:52 +10:00
Pierre Kancir
9d76d1e3df
Tools: Test for membership should be `not in`
2023-09-02 13:27:25 +10:00
Pierre Kancir
31ee88adbb
Tools: use isinstance for type comparison
2023-09-02 13:27:25 +10:00
Pierre Kancir
904486c846
Tools: fix flake8 test
2023-09-02 13:27:25 +10:00
Ryan Friedman
74750ca952
Tools: Rename MicroStrain to MicroStrain5
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-08-29 10:31:44 +10:00
Andrew Tridgell
914d31b4cf
autotest: fixed test known frames
...
this test can't handle periph based frames
2023-08-24 13:06:40 +10:00
Andy Piper
a47009e103
autotest: autotest autotune without filtering updates
2023-08-23 18:06:22 +10:00
Tom Pittenger
b9543b3795
Tools/autotest: fix Deepstall CI
2023-08-16 12:18:00 -07:00
Tom Pittenger
3defde99ee
Tools/autotest: extend WindEstimates duration
2023-08-16 12:17:23 -07:00
Peter Barker
10f93b9e50
autotest: add test for MAV_CMD_GUIDED_CHANGE_ALTITUDE
2023-08-08 11:59:06 +10:00
Ryan Friedman
4f08451ade
Tools: Rename LORD to MicroStrain
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-08-07 19:16:03 +10:00
Peter Barker
550f95f094
autotest: add autotest for RunMission script
2023-07-29 18:20:16 +10:00
Peter Barker
3f7d245c2c
autotest: tweak plan GCS failsafe test
...
taking off when we're already aloft
also correct the test to make things actually tested; things were setup in such a way they'd pass without testing the things they were supposed to be
2023-07-29 09:33:37 +10:00
Peter Barker
7bf1a3e978
Tools: autotest: add test for Plane reposition using terrain offset
2023-07-17 20:39:40 +10:00
Peter Barker
bde43f167e
autotest: use named parameters for send_cmd and run_cmd
2023-07-16 10:23:20 +10:00
Peter Barker
d182baa6b8
auototest: fail test if pymavlink too old
2023-07-07 12:21:27 +10:00
Henry Wurzburg
8201b6b214
Tools:add reboot for failing CI test
2023-07-04 10:24:30 +10:00
Andrew Tridgell
4e09fe04a3
Tools: added test for MAV_CMD_EXTERNAL_POSITION_ESTIMATE
2023-06-06 15:19:12 +10:00
Andrew Tridgell
0b34df3328
autotest: update airspeed test for new message
2023-05-09 11:26:33 +10:00
Iampete1
6659b02e14
Tools: autotest: Plane: expand guided attitude target test
2023-04-18 09:36:06 +10:00
Peter Barker
2529c7fc40
autotest: add test for RESET_MODE_SWITCH
2023-04-18 09:19:20 +10:00
Peter Barker
38390d2840
autotest: allow more time for deepstall text
...
intermittent failures in CI - perhaps due to Plane dynamics changes
2023-04-17 21:26:07 +10:00
Peter Barker
5cc046b9cc
Tools: AP_Arming ensures mission items present when in auto mode
...
Co-authored-by: Henry Wurzburg <hwurzburg@yahoo.com>
2023-04-14 07:49:54 +10:00
Peter Barker
7563dcd916
autotest: correct race condition in spiral test
2023-03-11 20:17:48 +11:00
Andrew Tridgell
1530dbde3d
autotest: added test of BRD_SD_MISSION
...
check that we can create and compare 4368 WPs
2023-03-10 14:13:55 +11:00
Randy Mackay
c33de6c872
Tools: autotest fix for plane TestRCCamera
2023-03-01 18:18:51 +11:00
Shashwat Ganesh
11fb7c64e0
Tools: plane: GCSFailsafe test: cleanup timeouts
2023-02-27 07:56:25 +11:00
Shashwat Ganesh
2ffae80866
Tools: plane: GCSFailsafe test: cleanup parameters
2023-02-27 07:56:25 +11:00
Shashwat Ganesh
dba76d2c8b
Tools: plane: test gcs failsafe: FBWA and Parachute
2023-02-26 09:56:47 +11:00
Shashwat Ganesh
ea206670c4
Tools: plane: test gcs failsafe: RTL
2023-02-26 09:56:47 +11:00
Tom Pittenger
f96a3176ab
autotest: more jumptag test
2023-02-22 05:33:38 -08:00
Peter Barker
20279417e8
autotest: more tests for jump tags
2023-02-22 05:33:38 -08:00
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
Ryan Beall
69ffac890f
CI fix Climb before turn Timeout again
2022-06-30 20:06:33 +10:00
Ryan Beall
2b9d116274
CI fix Climb before turn Timeout
2022-06-30 20:06:33 +10:00