Commit Graph

550 Commits

Author SHA1 Message Date
Peter Barker
a4a5d52c35 autotest: extend time allowed for RTL for simplemode test 2021-02-21 22:45:06 +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
b5f490aff4 autotest: make fly_proximity_avoidance_test_alt_no_avoid more reliable 2021-02-21 17:44:10 +11:00
Peter Barker
d4aef2dba8 autotest: stop using MAVProxy to change mode 2021-02-20 00:03:24 +11:00
Peter Barker
c13d229877 autotest: use self.set_current_waypoint rather than "wp set" to set current wp 2021-02-19 12:25:40 +11:00
Peter Barker
dcc04ccd09 autotest: stop using MAVProxy to change modes 2021-02-18 17:38:52 +11:00
Peter Barker
b1ccf3b3f8 autotest: add test for rangefinder-based proximity avoidance enablement 2021-02-18 15:05:51 +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
dbdda65956 autotest: add basic test for GPS blending 2021-02-17 11:30:01 +11:00
Peter Barker
c2e310d75f autotest: add test for OBSTACLE_DISTANCE_3D message 2021-02-04 15:50:45 +11:00
Peter Barker
393ec5d6f7 autotest: add test for MAVProxy proximity sensor 2021-02-04 12:03:35 +11:00
Peter Barker
ad2ab333f9 Tools: autotest: allow autotest to connect directly to SITL 2021-01-24 09:25:45 +11:00
Peter Barker
30836535d0 autotest: retry dynamic notch test up to 3 times 2021-01-22 11:17:42 +11:00
Peter Barker
281296832a autotest: retry GyroFFTHarmonic test on failure 2021-01-21 16:45:34 +11:00
Andrew Tridgell
3e640eed80 autotest: changes for per-IMU biases and scaling 2021-01-21 13:09:21 +11:00
Peter Barker
c7a6047904 autotest: add option to retry tests / create and use Test definition object 2021-01-21 10:23:17 +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
1cb86303b4 Tools: add test for maxbotixi2cxl 2021-01-19 11:20:47 +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
8f9d3909f1 autotest: model_defaults_filepath always returns a list 2021-01-19 10:34:00 +11:00
Peter Barker
2c0e3751a9 autotest: reboot after moving from EKF type 10 to EKF type 2
Bad things happen with home set but origin not
2021-01-18 20:48:11 +11:00
Peter Barker
662e86780b autotest: reduce motor vibration for landing 2021-01-18 20:14:08 +11:00
Peter Barker
2d62fb99b1 autotest: force-disarm copter before reboot in GCS failsafe tests 2021-01-18 14:17:32 +11:00
Randy Mackay
b18e5966f7 Tools: fixes from peer review as AHRS default changed to EKF3 2021-01-16 08:24:23 +09:00
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
2021-01-16 08:24:23 +09:00
Randy Mackay
bb926a2976 Tools: autotest fly_gyro_fft disables EKF2 and EKF3
fly_gyro_fft_harmonic also disables EKF2 and EKF3
2021-01-16 08:24:23 +09:00
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
2021-01-16 08:24:23 +09:00
Randy Mackay
9c56b406be Tools: Copter.AltEstimation fixes
disable baro so EKF has no altitude estimate
add check that mode change to ALT_HOLD failed
2021-01-16 08:24:23 +09:00
Randy Mackay
f68f26e75d Tools: Copter.VisionPosition config for EKF3 2021-01-16 08:24:23 +09:00
Randy Mackay
d2bdc949b2 Tools: Copter.OpticalFlowLimits checks altitude 2021-01-16 08:24:23 +09:00
Randy Mackay
0ba696f761 Tools: Copter.OpticalFlowLimits config for EKF2/3 2021-01-16 08:24:23 +09:00
Randy Mackay
d00194c60a Tools: copter test_rangefinder_switchover config for EKF2/3 2021-01-16 08:24:23 +09:00
Peter Barker
cd8a393ac2 autotest: create own RC thread to handle setting of RC overrides
autotest: prevent method-on-undef problem in case of early test failure

autotest: plumb MAVProxy rc input back in for switch test

autotest: close off rc thread in case of timeout
2021-01-15 20:56:30 +11:00
Peter Barker
1dad0ecb46 autotest: disarm vehicle in case vibration test excepts 2021-01-13 19:46:13 +11:00
Peter Barker
47aea5f44c autotest: print stack traces for caught exceptions 2021-01-13 19:46:13 +11:00
Peter Barker
e85e6d3375 autotest: use new set_parameters in place of many set_parameter calls
autotest: use set_parameters for applying from parameter file

autotest: use set_parameters in place of many set_parameter calls
2021-01-13 15:09:29 +11:00
Peter Barker
8497f8fc73 autotest: correct some timeout issues around Copter takeoff 2021-01-13 12:24:17 +11:00
Peter Barker
0a39c49711 autotest: gpstovicon: reboot after setting new EKF type rather than before 2021-01-13 12:24:17 +11:00
Peter Barker
252b166099 autotest: reboot after Copter gyrofft test
Really weird things happen if you switch from EKF2 to EKF10 - like your
home position being set but your origin not!
2021-01-13 12:24:17 +11:00
Peter Barker
987466bc3d autotest: increase timeout on avoidance-corners test
Race conditions can mean angles are less than expected
2021-01-13 12:24:17 +11:00
Peter Barker
7474948971 autotest: add test for mavlink rangefinder out-of-range-low 2021-01-06 15:33:41 +11:00
Peter Barker
fdd0297f12 autotest: add more tests for MAVLink rangefinder
Allows for finer-grain control over what messages we're sending.
2021-01-06 15:33:41 +11:00
Randy Mackay
66b2b988c4 Tools: update gps-vicon switching test params 2021-01-05 10:58:06 +11:00
Peter Barker
8abf9a82f3 autotest: reliability improvements for EKF failover tests 2020-12-31 14:49:25 +11:00
Peter Barker
0788b46374 autotest: add trivial test for Callisto 2020-12-25 12:18:01 +11:00
Pierre Kancir
824b9c1dc9 Autotest: add setpoint_target test for copter 2020-12-24 00:22:52 +11:00
Peter Barker
662814d6bd autotest: reboot after running Copter vibe tests
The EKF type (at the very least) requires a reboot to revert to its
original value.
2020-12-22 23:51:54 +11:00
Randy Mackay
d964fa2307 Tools: fixup EKF source pre-arm test
although setting COMPASS_USE/2/3 to zero disables the pre-arm for EK3_SRCx_YAW = 1 (Compass) the pre-arm still triggers if EK3_SRCx_YAW = 3 (External Compass Fallback)
2020-12-21 16:56:38 +09:00
Randy Mackay
50f9eee54c Tools: relax fly_guided_stop climb rate tolerance to 1cm/s 2020-12-18 08:32:21 +09:00
Paul Riseborough
4cf78c34e7 Tools: Add autotest for copter wind estimation and baro correction 2020-12-11 15:21:41 +11:00