Peter Barker
425ab1358a
autotest: tidy streamrate handling
...
Stop setting MAVProxy stream rates; these are neither here-nor-there now as MAVProxy will only modify its own connection's streamrates now
Stop doing the set-streamrate dance to work around MAVProxy's
set_streamrate algorithms.
Remove useless and misleading set of streamrate in Plane test; we reset
streamrates on the reboot immediately following this set. Considering
the streamrate was never eset this was a good thing.
4 years ago
James O'Shannessy
269fa5cbe2
AutoTest: Copter remove FENCE_AUTOENABLE tests
...
Addresses comments made in review, removes the FENCE_AUTOENABLE param for copter.
No param means no tests required.
4 years ago
James O'Shannessy
e16bbe6e18
AutoTest: Ensure fence state is disabled at end of test
...
This appears to be another case of the fence state carrying over from one test to another. Disabling the fence at the end of the test appears to have fixed this problem
4 years ago
James O'Shannessy
31462418c6
AutoTest: Ensure Copter can RTL and Land even when Fence Floor has not been auto disabled
4 years ago
James O'Shannessy
6251b6eead
AutoTest: Rebase and carry across changes from autotest
4 years ago
James O'Shannessy
b2346ef6df
AutoTest: Adds additional tests to ArduCopter to test autoenable and floor
...
Adds tests for:
* Testing auto-enable disabled (when no autoenabling of the fence is required)
* Test auto-enabled always after takeoff (when takeoff complete condition met)
* Test auto-enabled disable floor only (when land sequence begins)
* Test auto- on arm/disarm (when vehicle is armed/disarmed)
* Tests ability to land when fence is breached
4 years ago
Dr.-Ing. Amilcar do Carmo Lucas
dd5ede0fe0
autotest: small comment improvements
4 years ago
James O'Shannessy
bbd606b8b5
AutoTest: Corrections to autotests
4 years ago
James O'Shannessy
47e76a1807
AutoTest: Move fence enable/disable to common location
4 years ago
Dr.-Ing. Amilcar do Carmo Lucas
528defd560
Autotest: activate the fence via a mavlink command
...
This should not be required in the future, please fix this and revert this commit
4 years ago
Dr.-Ing. Amilcar do Carmo Lucas
8d8753b14c
Autotest: fix two copter tests after parameter rename
...
I'm not sure if a better fix would be to remove the set_parameter() call
4 years ago
James O'Shannessy
215901be30
Autotest: Correct the logic for fence based autotest functions
...
Adds corrections to enabling fence using aux function.
Correctly test fences statically. Only uploaded fences can be checked using a fence file, so we check those first. Then we add steps to check tin can, max and minm all set the fence as present, as expected.
Plane will support MAV_PROTOCOL_CAPABILITY_MISSION_FENCE, so we assert that it does support it.
To test ceiling and floor, leverage some existing functions for takeoff, change altitude and land. Check for respective breach.
Add a floor breach check to copter.
4 years ago
Randy Mackay
a35a7e1523
Tools: autotest manual control test requires 12 deg
...
adjusted down because of lower default angle_max
4 years ago
Peter Barker
cc83562add
autotest: tidy fence handling
4 years ago
Peter Barker
fc9a93ba67
autotest: stop using mavproxy for clearing missions
4 years ago
Peter Barker
97e2596bf8
autotest: stop clearing mission at start of test
...
These are implicitly cleared by the framework
4 years ago
Peter Barker
973510a4ff
autotest: push context after customising cmdline
...
doing things in the other order causes problems when running the
complete suite
4 years ago
Peter Barker
10007e2e42
autotest: load missions natively rather than using MAVProxy
4 years ago
Peter Barker
34a52e9cfe
autotest: use wait_statustext in place of mavproxy.expect for autorotate test
4 years ago
Peter Barker
d3b3c443bc
autotest: reset copter completely after autotune test
4 years ago
Peter Barker
013415eb31
autotest: make and mark arducopter.py as flake8-compliant
4 years ago
Peter Barker
79f21ed639
autotest: add test for GSF logging
4 years ago
Peter Barker
44ec74030e
autotest: recover from flip in althold to remove stabilise throttle problem
4 years ago
Peter Barker
a4a5d52c35
autotest: extend time allowed for RTL for simplemode test
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
b5f490aff4
autotest: make fly_proximity_avoidance_test_alt_no_avoid more reliable
4 years ago
Peter Barker
d4aef2dba8
autotest: stop using MAVProxy to change mode
4 years ago
Peter Barker
c13d229877
autotest: use self.set_current_waypoint rather than "wp set" to set current wp
4 years ago
Peter Barker
dcc04ccd09
autotest: stop using MAVProxy to change modes
4 years ago
Peter Barker
b1ccf3b3f8
autotest: add test for rangefinder-based proximity avoidance enablement
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
dbdda65956
autotest: add basic test for GPS blending
4 years ago
Peter Barker
c2e310d75f
autotest: add test for OBSTACLE_DISTANCE_3D message
4 years ago
Peter Barker
393ec5d6f7
autotest: add test for MAVProxy proximity sensor
4 years ago
Peter Barker
ad2ab333f9
Tools: autotest: allow autotest to connect directly to SITL
4 years ago
Peter Barker
30836535d0
autotest: retry dynamic notch test up to 3 times
4 years ago
Peter Barker
281296832a
autotest: retry GyroFFTHarmonic test on failure
4 years ago
Andrew Tridgell
3e640eed80
autotest: changes for per-IMU biases and scaling
4 years ago
Peter Barker
c7a6047904
autotest: add option to retry tests / create and use Test definition object
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
1cb86303b4
Tools: add test for maxbotixi2cxl
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
8f9d3909f1
autotest: model_defaults_filepath always returns a list
4 years ago
Peter Barker
2c0e3751a9
autotest: reboot after moving from EKF type 10 to EKF type 2
...
Bad things happen with home set but origin not
4 years ago
Peter Barker
662e86780b
autotest: reduce motor vibration for landing
4 years ago
Peter Barker
2d62fb99b1
autotest: force-disarm copter before reboot in GCS failsafe tests
4 years ago
Randy Mackay
b18e5966f7
Tools: fixes from peer review as AHRS default changed to EKF3
4 years ago
Randy Mackay
2f51b59de4
Tools: copter test parameter validation waits 10sec before starting
...
This allows the GPS driver to initialise which avoids an EKF3 source requires GPS failure
4 years ago
Randy Mackay
bb926a2976
Tools: autotest fly_gyro_fft disables EKF2 and EKF3
...
fly_gyro_fft_harmonic also disables EKF2 and EKF3
4 years ago
Randy Mackay
f9e7d59756
Tools: Copter.ArmFeatures fixups for EKF3
...
changed to disable the simulated GPS instead of disabling the driver
expected EKF flags are slightly different
4 years ago