Clyde McQueen
ce824b725d
Sub: copy 4.1 parm defaults
2023-11-29 22:13:02 -03:00
Andrew Tridgell
f175cb19a1
Tools: added autotest for networking over UDP
...
downloads a log with mavlink over UDP from NET_P1 port
2023-11-17 10:54:24 -08:00
Willian Galvani
40cdb5d01e
Autotest: improve flapping Sub test
2023-11-01 20:43:38 +11:00
Willian Galvani
24bed08c4e
Tools: Autotest: fix and re-enable Subs's MAV_CMD_DO_CHANGE_SPEED test
2023-10-31 09:23:26 +11:00
Peter Barker
a8bd417527
autotest: cope with rename of AutoTest to Testsuite
2023-10-27 14:17:09 +11:00
Peter Barker
e2531a93f2
Tools: accept MAV_CMD_CONDITION_YAW as both long and int in Sub
2023-10-10 08:32:54 +09:00
Peter Barker
938ec84fa7
autotest: add (disabled) sub test for MAV_CMD_DO_CHANGE_SPEED
...
this doesn't work on master either...
2023-10-04 18:36:52 +11:00
Peter Barker
41518a4fc0
autotest: add test for Sub MAV_CMD_MISSION_START
2023-10-03 23:54:40 +11:00
Peter Barker
fa6ec69bf1
autotest: add tests for Sub NAV_LAND and NAV_LOITER_UNLIM via mavlink
2023-09-26 11:38:28 +10:00
Tom Pittenger
4d05eda6f0
Tools/autotest: SITL reset to reset more/all16 Battery instances
2023-08-29 10:28:14 +10:00
Peter Barker
bde43f167e
autotest: use named parameters for send_cmd and run_cmd
2023-07-16 10:23:20 +10:00
Joshua Henderson
b7672bf124
autotest: sub dive_manual update TSYS01 desired temperature
2022-10-18 10:05:31 +11:00
Peter Barker
0cd7668258
autotest: correct sub test now gripper is enabled
2022-10-04 10:58:34 +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
Willian Galvani
fcafd2c685
Tools: attempt to fix Sub flapping test
2022-09-30 15:24:33 -03: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
Pierre Kancir
4e2e4fa4d4
Tools: autotest: remove useless shebang
2022-06-08 08:16:42 +09:00
Willian Galvani
c63d12b6c9
Autotest: Sub: fix sub tests for new althold implementation
...
With this implementation (same as copter's) 1450 is within the pilot deadzone,
which breaks the test.
2022-04-13 16:23:55 -03:00
Willian Galvani
81cd49213a
Autotest: Sub: tighten default watch_altitude_maintened delta
2022-04-13 16:23:55 -03:00
Willian Galvani
e23e2cb63f
Autotest: Sub: Add depth hold cases of large buoyancies and small inputs
2022-04-13 16:23:55 -03:00
Peter Barker
376d7ade50
autotest: use assert_receive_message to remove redundant code
2022-02-15 11:06:10 +11:00
Peter Barker
5ec82851d0
autotest: add test for Sub entering circle twice
2021-09-28 19:11:43 +10:00
Peter Barker
d621fe0cde
autotest: correct sub gripper mission
...
Ordinarily not run because gripper is disabled
2021-03-31 13:43:31 +11:00
Peter Barker
fdbbcaa506
autotest: bump default speedups for several vehicles
...
These tests seem to run stabley on my box with essentially no speedup
limit
2021-03-24 14:46:48 +11:00
Peter Barker
4269cf52a2
autotest: split application of default parameters and defaultfile parameters
...
ensures all vehicles have LOG_DISARMED
2021-03-19 09:46:45 +11:00
Peter Barker
9120882e9e
autotest: print name of open dataflash log when test exception caught
...
The stack trace is already extremely useful... but mapping back to the
relevant dataflash log is a bit of a pain.
Adding more stuff to this method in the future might be good, too.
2021-02-21 21:35:35 +11:00
Peter Barker
dcc04ccd09
autotest: stop using MAVProxy to change modes
2021-02-18 17:38:52 +11:00
Peter Barker
e221e6ce45
autotest: flake8 compliance for ardusub.py
2021-02-18 10:43:05 +11:00
Peter Barker
a292fe1b8b
autotest: use wait_statustext rather than mavproxy.expect
...
This is important when running under Valgrind as the text can be
significantly delayed. wait_statustext times out in simulation time,
whereas mavproxy.expect has a flat 60s timeout
2021-02-17 18:16:04 +11:00
Peter Barker
a5706a18af
autotest: handle Py2 not having ConnectionResetError built in
2021-02-12 18:24:18 +11:00
Peter Barker
f65bee80dc
autotest: use BATTERY_STATUS to detect sub reboot
...
Sub doesn't implement AP_Stats so we have custom reboot detection for
it.
The current look-for-string strategy is flawed - we're missing the
string on reboot
2021-02-03 13:58:17 +11:00
Peter Barker
ad2ab333f9
Tools: autotest: allow autotest to connect directly to SITL
2021-01-24 09:25:45 +11:00
Andrew Tridgell
c396d15890
Revert "autotest: ensure defaults files don't set already-default-values"
...
This reverts commit 3d431cd4f1
.
It breaks MissionPlanner SITL. We can re-apply once MissionPlanner
copes with external_model.
2021-01-20 08:54:43 +11:00
Peter Barker
3d431cd4f1
autotest: ensure defaults files don't set already-default-values
...
autotest: mark some vehicles as having external physics models
autotest: add default_params_filename to some vehicle info
2021-01-19 10:34:00 +11:00
Peter Barker
6433647d9e
autotest: add trivial autotest for TSYS01 temperature
2021-01-05 12:01:51 +11:00
Peter Barker
65cffdad5a
autotest: print stack traces when exceptions caught
2020-12-31 17:43:23 +11:00
Peter Barker
b02f0ee51f
autotest: make Sub's setting of FS_GCS_ENABLE persist across wipes
2020-12-25 12:18:01 +11:00
Randy Mackay
bce3c551e7
Tools: sub set-position-target-global-int sends target once
2020-11-27 10:52:17 +09:00
Randy Mackay
d63fe1eb6c
Tools: sub set-position-target uses negative altitude
2020-11-27 10:52:17 +09:00
Peter Barker
ba91cbb270
autotest: correct sub parameter name PSC_VELZ_P, fix test to match
2020-08-30 08:38:35 +10:00
Willian Galvani
0f992ac6a3
Autotest: add test for Sub position hold
2020-08-03 20:19:28 -07:00
Peter Barker
6c9d756f11
autotest: validate context nesting
2020-07-06 14:21:55 +10:00
Peter Barker
b0916231b2
autotest: add tests for log download
2020-05-26 19:32:49 +10:00
Pierre Kancir
81274018c3
Tools: update path for sub test missions files
2020-04-09 09:01:03 +10:00
Peter Barker
5881692e4f
autotest: sub: fix altitude-hold for being below target altitude
2020-04-07 14:51:32 +10:00
Pierre Kancir
f24f97e51b
Tools: sub: update to new wait functions
...
Signed-off-by: Pierre Kancir <pierre.kancir.emn@gmail.com>
2020-03-27 22:13:52 +11:00
Patrick José Pereira
98adeafad9
Tools: autotest: Add sub test for MOT_THST_HOVER parameter
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2020-02-05 09:01:33 -05:00
Peter Barker
c4ce6fa385
autotest: Sub: give vehicle 1 second to achieve alt-hold altitude
2020-01-25 14:26:13 +11:00
Peter Barker
6c8975eae3
autotest: make sub altitude test more reliable
...
momentum + stopping point could both explain unreliability
2020-01-16 14:23:43 +11:00