Pierre Kancir
4e2e4fa4d4
Tools: autotest: remove useless shebang
3 years ago
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.
3 years ago
Willian Galvani
81cd49213a
Autotest: Sub: tighten default watch_altitude_maintened delta
3 years ago
Willian Galvani
e23e2cb63f
Autotest: Sub: Add depth hold cases of large buoyancies and small inputs
3 years ago
Peter Barker
376d7ade50
autotest: use assert_receive_message to remove redundant code
3 years ago
Peter Barker
5ec82851d0
autotest: add test for Sub entering circle twice
3 years ago
Peter Barker
d621fe0cde
autotest: correct sub gripper mission
...
Ordinarily not run because gripper is disabled
4 years ago
Peter Barker
fdbbcaa506
autotest: bump default speedups for several vehicles
...
These tests seem to run stabley on my box with essentially no speedup
limit
4 years ago
Peter Barker
4269cf52a2
autotest: split application of default parameters and defaultfile parameters
...
ensures all vehicles have LOG_DISARMED
4 years ago
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.
4 years ago
Peter Barker
dcc04ccd09
autotest: stop using MAVProxy to change modes
4 years ago
Peter Barker
e221e6ce45
autotest: flake8 compliance for ardusub.py
4 years ago
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
4 years ago
Peter Barker
a5706a18af
autotest: handle Py2 not having ConnectionResetError built in
4 years ago
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
4 years ago
Peter Barker
ad2ab333f9
Tools: autotest: allow autotest to connect directly to SITL
4 years ago
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.
4 years ago
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
4 years ago
Peter Barker
6433647d9e
autotest: add trivial autotest for TSYS01 temperature
4 years ago
Peter Barker
65cffdad5a
autotest: print stack traces when exceptions caught
4 years ago
Peter Barker
b02f0ee51f
autotest: make Sub's setting of FS_GCS_ENABLE persist across wipes
4 years ago
Randy Mackay
bce3c551e7
Tools: sub set-position-target-global-int sends target once
4 years ago
Randy Mackay
d63fe1eb6c
Tools: sub set-position-target uses negative altitude
4 years ago
Peter Barker
ba91cbb270
autotest: correct sub parameter name PSC_VELZ_P, fix test to match
5 years ago
Willian Galvani
0f992ac6a3
Autotest: add test for Sub position hold
5 years ago
Peter Barker
6c9d756f11
autotest: validate context nesting
5 years ago
Peter Barker
b0916231b2
autotest: add tests for log download
5 years ago
Pierre Kancir
81274018c3
Tools: update path for sub test missions files
5 years ago
Peter Barker
5881692e4f
autotest: sub: fix altitude-hold for being below target altitude
5 years ago
Pierre Kancir
f24f97e51b
Tools: sub: update to new wait functions
...
Signed-off-by: Pierre Kancir <pierre.kancir.emn@gmail.com>
5 years ago
Patrick José Pereira
98adeafad9
Tools: autotest: Add sub test for MOT_THST_HOVER parameter
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
5 years ago
Peter Barker
c4ce6fa385
autotest: Sub: give vehicle 1 second to achieve alt-hold altitude
5 years ago
Peter Barker
6c8975eae3
autotest: make sub altitude test more reliable
...
momentum + stopping point could both explain unreliability
5 years ago
Peter Barker
54521fbbcb
autotest: correct sub output on test failure
5 years ago
Mark Whitehorn
6b9c997a97
Tools: rename SensorConfigErrorLoop test to ConfigErrorLoop
5 years ago
Patrick José Pereira
722e512226
autotest: Sub: Add ALT_HOLD test
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
5 years ago
Peter Barker
642935fd43
Tools: random Python cleanups based on lgtm analysis
5 years ago
Pierre Kancir
daaf769055
Tools: add arm/disarm testing on all modes
6 years ago
Peter Barker
899db3d3ac
Tools: autotest: add test for sensor config error loop
...
Tools: autotest: exempt failing vehicles from SensorConfigError test
6 years ago
Peter Barker
3ab9fa48dc
Tools: autotest: fix sub reboot detection
...
the string we were looking for actually gets emitted just before reboot
- sometimes!
6 years ago
Patrick José Pereira
2959d38e0e
autotest: Remove magic numbers in ardusub
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
6 years ago
Peter Barker
d53f787a14
Tools: factor init up into parent class
...
Tools: autotest: use speedup 8 for all suites
for reliability
6 years ago
Peter Barker
d48eab893a
Tools: autotest: stop swallowing critical messages with get_sim_time()
6 years ago
Peter Barker
19f51813f2
Tools: autotest: include mavproxy output in all vehicle test log files
6 years ago
Peter Barker
50687c9add
Tools: autotest: ArmFeatures is common to all vehicles; use inheritted tests
6 years ago
Pierre Kancir
7e12f16be6
Tools: fix lambda test
6 years ago
Peter Barker
9b73c5f1d9
Tools: autotest: correct log download name for Sub
6 years ago
Peter Barker
c0394e9577
Tools: autotest: tidy handling of SITL start position
6 years ago
Peter Barker
6d914f8af3
Tools: autotest: add test for moving sub in guided mode
6 years ago
Peter Barker
6f1f98dc3c
Tools: autotest: add assumption run_tests is only called once - remove hasInit
6 years ago