Thomas Watson
da4fee5a9a
autotest: fix testing and simulated register scaling
...
* make test actually test something
* fix scaling to match datasheet values
2024-12-02 10:10:01 -06:00
Peter Barker
cc4110140c
Tools: add support for ina3221 triple-channel current/voltage sensor
2024-12-02 10:10:01 -06:00
Clyde McQueen
8b37100772
autotest: large outliers in sub terrain test have low sq
2024-09-23 19:14:34 +10:00
Peter Barker
ed512eaabe
autotest: add test for logging restart after transfer complete
2024-09-03 11:01:24 +10:00
Clyde McQueen
cbef094435
autotest: test mag fusion
2024-07-25 10:52:01 +10:00
Clyde McQueen
872cbc72ff
autotest: MAV_CMD_DO_REPOSITION in sub
2024-07-25 10:44:16 +10:00
Willian Galvani
bd27edc9f5
autotest: test mag fusion and origin backup
...
Co-authored-by: Clyde McQueen <clyde@mcqueen.net>
2024-07-11 14:17:54 -03:00
Peter Barker
96a78456bf
autotest: reboot after reverting rangefinder settings
...
Co-authored-by: Thomas Watson <twatson52@icloud.com>
Thomas noted that tests prior to RngFndQuality were leaving a LUA rangefinder hanging around in https://github.com/ArduPilot/ardupilot/pull/27484
Thomas' patch fixes RngFndQuality to only collect context messages after a reboot, which will fix the problem.
But tests should *not* leave the vehicle in this state, so this patch fixes that.
2024-07-08 14:36:10 +10:00
Peter Mullen
7a0569fd8f
autotest: test ArduSub surface tracking modes
2024-04-08 11:18:23 -03:00
Clyde McQueen
c8fc90cca3
autotest: test SET_GPS_GLOBAL_ORIGIN mav msg
2024-04-02 11:00:22 +11:00
Peter Barker
d0bb0b729a
autotest: remove special-case-for-reboot for Sub
...
we now instantiate AP_Stats so the boot count is available
2024-03-13 08:07:40 +09:00
Clyde McQueen
e3af56eff5
Sub: test for ABOVE_TERRAIN frame
2024-03-11 13:38:38 -03:00
Clyde McQueen
f9db039dcc
Sub: add SURFTRAK mode
2024-02-21 18:59:20 -03:00
Peter Mullen
948ee94cee
Tools/autotest: Add LUA interface to access Range Finder state
2024-01-02 11:31:02 +11:00
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