Commit Graph

508 Commits

Author SHA1 Message Date
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
Ryan Beall
ae6295e11c CI fix RTL Timeout 2022-06-30 20:06:33 +10:00
Peter Barker
7120d4f750 autotest: fix race condition in need-ekf-to-arm check
At extreme speedups we may not detect the reboot in the Python before the autopilot is ready to arm...
2022-06-16 14:53:21 +10:00
Peter Barker
b18c597f0b autotest: fix race condition in arduplane.py fly_mission
We can lose the final message when we get_sim_time and wait_heartbeats and similar
2022-06-15 09:11:51 +10:00
Peter Barker
1b22de0dd9 autotest: fix race condition in deepstall tests 2022-06-14 08:16:03 +10:00
Peter Barker
fc2c3604e8 autotest: change plane default speedup time to 100 2022-06-12 15:56:53 +10:00
Peter Barker
2e0653ef71 autotest: be more lenient with terrain report fetching 2022-06-12 15:56:53 +10:00
Peter Barker
09ab90b8be autotest: fix flapping AirspeedDrivers test 2022-06-12 15:56:53 +10:00
Pierre Kancir
4e2e4fa4d4 Tools: autotest: remove useless shebang 2022-06-08 08:16:42 +09:00
Peter Barker
069fdfae60 autotest: test SITL airspeed sensor backend 2022-05-25 17:52:44 +10:00
Iampete1
d5e282c5a1 Tools: allow FBWB alt control option in LOITER 2022-05-22 12:09:43 +10:00
Peter Barker
24771ab2a4 autotest: fix DO_CHANGE_SPEED autotest
Recent airspeed fixes means we need to give the vehicle more time to achieve the initial airspeed
2022-05-20 09:56:31 +10:00
Peter Barker
d6504bcaa8 autotest: remove hack to get dual-airspeed-autocal passing 2022-05-18 18:06:18 +10:00
Andrew Tridgell
895c57562c autotest: adjust DO_CHANGE_SPEED test for EAS2TAS corrections 2022-05-17 19:34:32 +10:00
Peter Barker
cebb57266d autotest: calibrate two airspeed sensors in-flight 2022-05-16 09:50:52 +10:00
Peter Barker
b8407a4bec autotest: adjust current wp reset 2022-05-15 21:17:50 +10:00
Andrew Tridgell
151f17d563 autotest: reset mission on takeoff for quadplanes 2022-05-15 21:17:50 +10:00
Peter Barker
287573fff7 autotest: add test for large circle radii in NAV_LOITER_TURNS 2022-05-11 17:40:35 +10:00
Peter Barker
b659360d64 autotest: test DO_CHANGE_SPEED mission item for Plane 2022-05-05 10:48:35 +10:00
Mirko Denecke
4c727eca60 Tools: fix auxiliary typo 2022-05-02 10:55:08 +10:00
Peter Barker
43b5f22c1a autotest: add test for avoidance resume-auto-or-loiter action 2022-04-21 06:59:39 +10:00
Peter Barker
573cb0494d autotest: set RL_AUTOLAND=1 for more tests 2022-03-14 09:52:41 +11:00
Andrew Tridgell
46a7f2cc4b autotest: adjust for RTL_AUTOLAND failure 2022-03-14 09:52:41 +11:00
Andrew Tridgell
6fcf85edb8 autotest: more changes for plane disarm disallow 2022-03-09 17:13:45 +11:00
Henry Wurzburg
b3af8221be Tools: clarify and simplify RC failsafe messages 2022-03-01 11:05:15 +11:00
Peter Barker
850227ffdb autotest: add test for THR_FAILSAFE==2 and throttle output 2022-03-01 10:29:37 +11:00
Peter Barker
3f7e120a67 autotest: add test for terrain_check 2022-02-25 09:28:04 +11:00
Peter Barker
62efb470f6 autotest: change fly_terrain_mission test name 2022-02-25 09:28:04 +11:00
Peter Barker
376d7ade50 autotest: use assert_receive_message to remove redundant code 2022-02-15 11:06:10 +11:00
Randy Mackay
61871b1d7b Tools: disable Plane Landing-Drift test 2022-02-12 08:28:44 +09:00
Peter Barker
13d5b00a22 autotest: increase timeout in Baro-Drift test
timeout was being hit on the autotest server

Also wait_disarmed isntead of wait for statustext You get a bit more information about what's going on this way
2022-02-09 19:27:21 +11:00
Samuel Tabor
dbc63f7b0d autotest: Improve Landing-Drift 2022-02-08 13:25:17 +11:00
Peter Barker
d086b5e9fc autotest: add test for DO_CHANGE_ALTITUDE 2022-02-08 10:59:13 +11:00
Andrew Tridgell
2193f18ad7 autotest: fixed DCM fallback test
give equivalent lag to old test
2022-01-12 07:54:46 +11:00
Samuel Tabor
71596c2c9f autotest: Add a test for GLIDE_SLOPE_THR 2021-12-27 11:27:52 +11:00
Samuel Tabor
75ee4b07fe autotest: Add test for soaring speed-to-fly feature 2021-12-16 07:12:24 +11:00
Peter Barker
66395ce195 autotest: add tests for AVD_F_ALT_MIN 2021-12-04 11:35:13 +11:00
Peter Barker
7afb472244 autotest: reboot after resetting parameters for ekf lane switchtest 2021-11-29 15:30:00 +11:00
Peter Barker
b2f00d469e autotest: use set_parameters some more 2021-11-26 18:30:13 +11:00
Samuel Tabor
7931b10baf autotest: Fix rangefinder in Landing-Drift test. 2021-11-24 18:14:26 +11:00
Peter Barker
c99a49eeb9 autotest: add test that we continue to get simulated vehicles from SIM_ADSB 2021-11-23 11:09:29 +11:00
Peter Barker
b42432ea3e autotest: add trivial test for MSP 2021-11-17 12:06:07 +11:00
Shiv Tyagi
5811a62bc6 Tools: add autotest for DEVO telemetry
This adds an autotest to test if we receive data with devo telemetry correctly.
2021-11-16 11:37:10 +11:00
Peter Barker
b6293acbce autotest: tweak how we make gps bad in fallback test 2021-11-05 23:18:11 +11:00
Iampete1
bc7c5c24da Tools: autotest: quadplane: reboot for tailsitters and allow longer time for disarm 2021-10-26 10:03:00 +11:00
Peter Barker
5cf62e8fb3 autotest: tweak soaring test SOAR_VSPEED
This is right on the edge on master
2021-10-21 12:09:21 +11:00
Peter Barker
b9a4902aa6 autotest: let system settle before annoying
Also fly in circles to avoid long flight home
2021-10-21 12:09:21 +11:00
Peter Barker
0e6b0cbf35 autotest: add trivial test for MegaSquirt EFI system 2021-10-17 10:00:08 +11:00
Davis Schenkenberger
3e748d77c9 Tools: autotest: add test for LORD EAHRS 2021-10-17 08:55:03 +11:00
Josh Henderson
941cd6ebc2 Tools: arduplane.py add HIGH_LATENCY2 tests and Check Air_Temperature 2021-10-13 19:40:45 +11:00
Peter Barker
5f32fb82e8 autotest: add basic test that Plane autotune completes 2021-10-10 18:18:44 +11:00
Peter Barker
dd49d79798 autotest: add test for Plane flying with a very slow GPS 2021-10-05 21:40:45 +11:00
Peter Barker
a55bd3955a autotest: ensure camera feedback messages at correct altitude 2021-09-30 08:50:47 +10:00
Peter Barker
bc664d77b7 autotest: add trivial test for MAVFTP using MAVProxy 2021-09-27 11:42:47 +10:00
Peter Barker
b82b6f1e50 autotest: add test which force-switches to DCM and watches plane land 2021-09-26 17:35:46 +10:00
Samuel Tabor
9f77d5ac9d autotest: fly_mission should respect mission_timeout when waiting for wps. 2021-08-19 17:59:33 +10:00
Samuel Tabor
3a185e7533 autotest: Add plane test for landing with barometer drift. 2021-08-19 17:59:33 +10:00
Peter Barker
d03cfb8615 autotest: Plane: wait for origin before enabling fence
we load into memory as origin-relative positions
2021-08-12 20:34:36 +10:00
Peter Barker
abb6521127 Revert "autotest: use SIM_STATE (common.xml) instead of SIMSTATE (ardupilotmega.xml)"
This reverts commit 540a56adb8.

Polling this message caused issues on reboot - shouldn't be a problem
but is.

Retrying that showed that the Tracker GUIDED test failed reliably due to
a yaw problem.
2021-08-07 16:18:05 +10:00
Peter Barker
540a56adb8 autotest: use SIM_STATE (common.xml) instead of SIMSTATE (ardupilotmega.xml)
It is a useful superset
2021-08-05 18:35:11 +10:00
Peter Barker
8e72dc32d1 autotest: add test home is restored persistently on wdog reset 2021-08-03 10:36:50 +10:00
Josh Henderson
1cb11a5ff2 Tools: autotest change smartbatt param names 2021-08-03 09:36:26 +10:00
Peter Barker
7929122f49 autotest: improve AHRS trim test 2021-07-28 17:20:28 +10:00
Peter Barker
da3ff2c142 autotest: add test for live change of AHRS orientation 2021-07-27 17:28:09 +10:00
Paul Riseborough
9207744152 Tools: Rework Plane.EKFlaneswitch autotest 2021-07-22 18:20:45 +10:00
Paul Riseborough
ef1dda005f Tool: Allow more time for quadplane autotest to land and disarm 2021-07-22 18:20:45 +10:00
Paul Riseborough
a0ae998a4d Tools: Fix AIRSPEED_AUTOCAL test failure
The mission plan for this test causes a lot of overshoot when turning onto final approach with the result that there is still some lateral offset when passing the landing waypoint that is not a measure of estimator accuracy.
2021-07-22 18:20:45 +10:00
Peter Barker
9fb7ef915e Tools: add support for ms5525 i2c sensor 2021-07-13 12:00:37 +10:00
Peter Barker
7842f55a3b Tools: add rc channel option to disable all airspeed sensors 2021-06-23 15:13:13 +10:00
Peter Barker
d3f90bde7f autotest: add FlyEachFrame test for Plane 2021-06-21 14:13:18 +10:00
Peter Barker
61fda691f2 autotest: add trivial test for smart battery logging 2021-06-15 09:46:26 +10:00
Peter Barker
14b2af84ab autotest: break out a home_relative_loc_ne for getting a home-rel loc 2021-06-11 16:59:51 +10:00
Peter Barker
fd792bebf8 autotest: wipe SITL state after temperature cal test
ArduPilot internals are fiddling state that the autotest suite is
unaware of, so wipe the eeprom after the test
2021-06-09 14:14:06 +10:00
Peter Barker
6944ef6af1 autotest: fly each working Helicopter frame 2021-06-09 12:15:42 +10:00