Commit Graph

3179 Commits

Author SHA1 Message Date
Peter Barker
cafce7671d autotest: slow down specific tests so they pass 2022-10-22 15:14:55 +11:00
Peter Barker
02a6f71df4 autotest: change Copter default speedup time to 100 2022-10-22 15:14:55 +11:00
Andrew Tridgell
2d6080a52a autotest: added plane-3d model and parameters 2022-10-19 23:25:22 +11:00
Peter Barker
117c5df6ca autotest: ensure optical flow mavlink status roughly correct 2022-10-19 21:00:48 +11:00
Peter Barker
b5cd149c1d autotest: test setting non-default-streamed message to default interval 2022-10-18 10:11:00 +11:00
Joshua Henderson
b7672bf124 autotest: sub dive_manual update TSYS01 desired temperature 2022-10-18 10:05:31 +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
bacbac798c autotest: add tests for embedded defaults parsing 2022-10-13 14:38:30 +11:00
Peter Barker
3a76d248a0 autotest: add option to test enabling one feature at a time 2022-10-11 10:50:13 +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
026290a4e1 autotest: make it easier to run a test plane with ICE 2022-10-07 07:53:50 +11:00
Peter Barker
0cd7668258 autotest: correct sub test now gripper is enabled 2022-10-04 10:58:34 +11:00
Shiv Tyagi
c6b2ab427f autotest: loosen constraints on docking test 2022-10-02 19:18:23 +11:00
Willian Galvani
650e8652a9 Tools: Sub: add test to make sure changing modes does not cause altitude changes 2022-10-01 09:52:56 -03:00
Peter Barker
49b991b92d autotest: use new altitude_source keyword in EKF/GPS test 2022-10-01 08:27:37 +10:00
Willian Galvani
fcafd2c685 Tools: attempt to fix Sub flapping test 2022-09-30 15:24:33 -03:00
Andrew Tridgell
0210d7c60c autotest: added a test for EKF lane change in GUIDED
an EKF lane change when the two lanes are using different GPS should
not cause a height change in GUIDED
2022-09-30 07:44:42 +10:00
Andrew Tridgell
9dd2301198 autotest: move do_aux_function to common 2022-09-30 07:44:42 +10:00
Peter Barker
0c5f972ddb autotest: add ability to watch-and-maintain from SIM_STATE.alt 2022-09-29 20:00:01 +10:00
Peter Barker
bd364b6169 autotest: specify baudrate for NMEA GPS for testing 2022-09-28 20:53:34 +10:00
Peter Barker
87dfd7f541 autotest: remove use of fstring
breaks under python2
2022-09-28 08:17:02 +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
8e3021e147 autotest: check target system on return mission_item_int packets 2022-09-25 19:25:53 +10:00
Peter Barker
f9bc7e44f8 autotest: add a method to easily install message printer 2022-09-22 18:14:49 +10:00
m
635df2ca45 autotest: check local home location 2022-09-21 15:58:25 +10:00
Peter Barker
d3f6d9eaa3 autotest: make proximity sensor test more reliable 2022-09-21 11:58:38 +10:00
Reilly Callaway
b839fb582c Tools: Add kg per cubic meter unit metadata 2022-09-20 15:24:48 +10:00
Iampete1
ef9f5a9552 Tools: autotest: update copter param validation check 2022-09-19 20:57:51 -04:00
Peter Barker
ac14c3bba6 autotest: make error in test_build_options.py clearer 2022-09-20 09:28:27 +10:00
Peter Barker
267c16cd72 autotest: wait for heartbeat before determining armed state
Fixes a race condition when finishing a mission where we may receive the disarmed text but the most recent heartbeat says we are armed.
2022-09-19 17:52:18 +10:00
Peter Barker
0e9abea655 autotest: explicitly fail reboot if armed 2022-09-19 17:52:18 +10:00
Shiv Tyagi
a4c88ab2c0 autotest: use guided mode to move Rover away for Dock test 2022-09-19 17:51:48 +10:00
Peter Barker
b5be0dcd14 autotest: correct reboot in failure case for dock mode test
reboot will fail if we are still armed
2022-09-19 09:29:04 +10:00
Peter Barker
d4587e787e autotest: add a drive_to_location for Rover 2022-09-19 09:28:39 +10:00
murata
9c52930d87 autotest: Add test "RC not found" 2022-09-15 17:59:37 +10:00
Luiz Georg
be9e0aefd8 Autotest: fixes bisect-helper for python 3.10 2022-09-15 10:52:33 +10:00
Peter Barker
722a95f825 autotest: fail if no steps supplied and not autotest server 2022-09-13 11:52:05 +10:00
m
61bb575422 autotest: Fix watch_altitude_maintained for Copter 2022-09-13 07:43:15 +10:00
Peter Barker
109d0286d9 autotest: correct type-check
py2 vs py3
2022-09-12 21:04:39 +10:00
Peter Barker
b1909d9edf autotest: create and use a Result object to ship failure data around 2022-09-12 08:49:04 +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
87e97ca5b2 autotest: remove syntax test for test lambdas
We no longer permit the use of lambda functions in test lists
2022-09-11 17:21:38 +10:00
Peter Barker
cd50b91904 autotest: correct running of single test
... and stop using run_tests entrypoint to the AutoTest objects as it does cause confusion
2022-09-11 17:15:53 +10:00
Peter Barker
bb1c43b0a2 autotest: ensure MAVProxy arm attempt times out 2022-09-11 17:00:50 +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
b06afa8316 autotest: reset sitl if forced disarm fails 2022-09-10 14:35:25 +10:00
Peter Barker
4caaf1533f autotest: check context for expected esc-rpm statustext 2022-09-10 09:21:44 +10:00
Peter Barker
71d1c050b3 autotest: move log_name method for balancebot to within class 2022-09-09 20:32:59 +10:00
Shiv Tyagi
6393ef6b8e Tools: fix Rover AutoDock test 2022-09-09 19:12:30 +10:00
Peter Barker
1a46a27bb8 Tools: remove vestiges of travis autotest hooks
travis had a split into two tests, test1 and test2 - which we no longer need
2022-09-09 12:08:59 +10:00
Michael du Breuil
80d7bf9b11 Tools: Update autotest to accomodate accel cal changes 2022-09-09 08:52:14 +10:00
Peter Barker
e9bffe2045 autotest: throw exception when GIMBAL_DEVICE_ATTITUDE_STATUS not received 2022-09-08 21:13:15 +10:00
Andy Piper
203f691df4 autotest: add takeoff check test 2022-09-07 17:03:03 +01:00
Randy Mackay
4108e4b77f Tools: copter autotest integrates MNT param changes 2022-09-06 13:53:25 +09:00
Randy Mackay
b9a3c4bd0d Tools: vee-gull default param update for MNT params 2022-09-06 13:53:25 +09:00
Randy Mackay
785500cdc8 Tools: copter-gimbal param file update for MNT params 2022-09-06 13:53:25 +09:00
Randy Mackay
4aa9c260ba Tools: sub param default updates for MNT changes 2022-09-06 13:53:25 +09:00
Shiv Tyagi
24cff5f9b1 Tools: add autotest to test docking on rover 2022-09-06 11:23:51 +09:00
Peter Barker
d682718768 Tools: correct test_build_options deps gathering
This was returning things upside-down, providing things that this thing depended on, rather than the things that depended on the feature
2022-09-05 09:06:33 +10:00
Peter Barker
045115de05 autotest: explicltly close filehandle with streamrate contents
Test sporadically failing on autotest server.
2022-09-03 11:28:10 +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
02e9bf4503 Tools: test_build_options.py: improve dependency handling
autotest: use get_defines when testing in-turn

Not sure why the collection of dependencies was disabled here.

autotest: improve debug for invalid deps

Tools: add a first-pass to ensure deps are consistent
2022-09-01 18:02:45 +10:00
esaldiran
9218cf18ce autotest: add test for custom controller 2022-08-30 13:10:09 +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
a7aa5b6897 autotest: do not wait for ACK from reboot command
Several attempts have been made to make retrieving the reboot's ack reliable, and they've all failed.

So stop waiting for the ACK....
2022-08-29 08:24:03 +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
eb0f932b52 autotest: remove global variable
... progress is no longer static and hasn't been for years
2022-08-28 10:09:47 +10:00
Peter Barker
430e52a91b autotest: remove constant in target_component check when downloading mission 2022-08-26 14:38:12 +10:00
Peter Barker
2e2ffbe4ac autotest: correct reset of autoreconnect in case of exception
always true in practice
2022-08-26 14:38:12 +10:00
Peter Barker
b6c4930b3a autotest: explicltly dis/reconnect when customising commandline
We *know* the connection is going away, so wecan force the reconnect rather than waiting for mavtcp's reconnect logic to kick in
2022-08-26 14:38:12 +10:00
Peter Barker
1f430daef6 autotest: correct system ID used when setting ROI_SYSID 2022-08-26 14:38:12 +10:00
Andrew Tridgell
fda6d23fab Tools: fixed sim_vehicle.py with -n
fixed path to parameter file
2022-08-26 10:48:41 +10:00
Randy Mackay
c898261698 Tools: autotest uses PRX1 parameters 2022-08-24 18:26:27 +10:00
Peter Barker
217338955d autotest: wait for logging to be good in replay GPS test
I think it's possible for the reboot to be coplete but the log not yet open as it's done in the update call
2022-08-24 13:11:46 +10:00
Peter Barker
8b5afb4a24 autotest: loop across recv_match in assert_receive_message
pymavlink sleeps for half the passed-in timeout which is no good if we are willing to wait for 30 seconds for a message!
2022-08-24 10:08:27 +10:00
Peter Barker
8a13fb0f6d autotest: use assert_receive_message
Removes several block-forever calls
2022-08-24 10:08:27 +10:00
Peter Barker
9d385c815e autotest: util.py: create fake object for MakeOSX SITL object
autotest keeps self.sitl around as a handle on the running SITL binary instance.  MacOSX was returning None for this object, making method calls on it unhelpful.

This fake object will just ignore calls on it.
2022-08-23 17:40:44 +10:00
Peter Barker
e182675bc8 autotest: make pysim/util.py AP_FLAKE8_CLEAN 2022-08-23 11:31:01 +10:00
Andrew Tridgell
3127af1af6 Tools: added --can-gps option to sim_vehicle.py
allows for easy DroneCAN testing
2022-08-23 11:17:06 +10:00
Randy Mackay
90023f2691 Tools: copter param file for SITL wind speed estimation 2022-08-23 11:09:20 +10:00
Peter Barker
f8c1c3309d autotest: allow more time for Rover to go to smartrtl intermediate point
race conditions with commands from autotest suite
2022-08-22 09:54:09 +10:00
Peter Barker
87eb703bc1 autotest: terminate FTP session after transfering files
race condition starting the second MAVProxy if the first session isn't terminated
2022-08-22 09:01:18 +10:00
Peter Barker
af7208a65e autotest: cast packet count to floast before determining rate
Could be causing rate to be zero on autotest server
2022-08-20 21:52:20 +10:00
Peter Barker
668ec44968 autotest: let heading settle before testing WP_YAW_BEHAVIOR=0
2022-08-19T02:22:48.3161982Z AT-0229.9: Exception caught: Unexpected heading=94.000000 want=91.000000
2022-08-19T02:22:48.3162341Z Traceback (most recent call last):
2022-08-19T02:22:48.3162738Z   File "/__w/ardupilot/ardupilot/Tools/autotest/common.py", line 7173, in run_one_test_attempt
2022-08-19T02:22:48.3163101Z     test_function()
2022-08-19T02:22:48.3163507Z   File "/__w/ardupilot/ardupilot/Tools/autotest/arducopter.py", line 4414, in GuidedSubModeChange
2022-08-19T02:22:48.3164012Z     self.assert_heading(orig_heading)
2022-08-19T02:22:48.3164419Z   File "/__w/ardupilot/ardupilot/Tools/autotest/common.py", line 5610, in assert_heading
2022-08-19T02:22:48.3164866Z     raise NotAchievedException("Unexpected heading=%f want=%f" %
2022-08-19T02:22:48.3165290Z common.NotAchievedException: Unexpected heading=94.000000 want=91.000000
2022-08-19 17:06:45 +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
Peter Barker
cd207164a2 autotest: correct Rover DriveMission test
4 would seem to have been just a magic number and could be missed on faster speedups
2022-08-19 17:04:54 +10:00
Peter Barker
81740893ee autotest: customise drive_rtl_mission for sailboats 2022-08-19 17:04:25 +10:00
Andrew Tridgell
507dbb0d61 autotest: switch sim_vehicle to EKF3
this was a leftover from many years ago
2022-08-18 14:50:44 +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
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