Commit Graph

3096 Commits

Author SHA1 Message Date
Reilly Callaway 4fcb1089b1 Tools: Add kg per cubic meter unit metadata 2022-10-04 13:38:30 +11:00
Paul Riseborough a61451f6a7 Tools: Use a more typical wind speed for the PitotBlockage autotest 2022-10-04 13:38:30 +11:00
Paul Riseborough 0ada863636 Tolls/autotest: Fix Flake8 style check fails 2022-10-04 13:38:30 +11:00
Paul Riseborough 0d2e391579 Tools/autotest: fail pitot tube at start of takeoff 2022-10-04 13:38:30 +11:00
Paul Riseborough 2e75a8f85c Tools/autotest: rework arming and takeoff mode change order
Co-authored-by: Peter Barker <pb-gh@barker.dropbear.id.au>
2022-10-04 13:38:30 +11:00
Paul Riseborough 1bef47d2b7 Tools/autotest: Use clearer method of setting parameters
Co-authored-by: Peter Barker <pb-gh@barker.dropbear.id.au>
2022-10-04 13:38:30 +11:00
Paul Riseborough 98506f995a Tools: Python coding style fixes 2022-10-04 13:38:30 +11:00
Paul Riseborough 954276c10f Tools: Add partial unblockage to pitot blockage test 2022-10-04 13:38:30 +11:00
Paul Riseborough ada3537b8f Tools: Add autotest for pitot tube blockage handling 2022-10-04 13:38:30 +11:00
Peter Barker be495f5959 autotest: check target system on return mission_item_int packets 2022-10-04 13:38:30 +11:00
Andrew Tridgell 67c6900b0a 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-10-04 13:38:30 +11:00
Andrew Tridgell a7f23b477c autotest: move do_aux_function to common 2022-10-04 13:38:30 +11: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