Andrew Tridgell
4e553bcbde
Tools: fixed Qassist test
...
it was using the wrong roll angle for recovery, and relied on poor
tuning of old model to overshoot by 20 degrees
2020-10-28 14:20:44 +11:00
Mark Whitehorn
a37b5c2c6b
autotest: add rudder disarm checks for airmode
2020-08-18 11:42:34 +10:00
Mark Whitehorn
d0ff26e782
autotest: expand quadplane AirMode autotest
2020-08-13 08:47:27 +10:00
Mark Whitehorn
b9830f657a
autotest: add quadplane airmode test
2020-08-13 08:47:27 +10:00
Mark Whitehorn
0d5de343d2
autotest: default throttle to 1000 for quadplane
...
zero throttle after disarming in do_RTL
Co-authored-by: Peter Barker <pbarker@barker.dropbear.id.au>
2020-08-04 10:26:45 +10:00
Peter Barker
d9085e34d8
autotest: default throttle to 1000 for quadplane
2020-07-22 17:35:47 +10:00
Peter Barker
7880120921
autotest: upload logs after quadplane tests
2020-07-22 14:40:31 +10:00
Andrew Tridgell
c8641bd246
autotest: fixed qassist test
...
need non-neutral ailerons to trigger roll
2020-07-13 13:47:50 +10:00
Peter Barker
e5395069f4
autotest: add test for angle q-assist
2020-07-01 20:57:32 +10:00
Peter Barker
b0916231b2
autotest: add tests for log download
2020-05-26 19:32:49 +10:00
Peter Barker
c8fdf9305b
autotest: add test for quadplane stickmixing
2020-05-24 12:17:50 +10:00
Peter Barker
1f1383ab64
autotest: add quadplane test for qassist
2020-05-20 18:39:42 +10:00
Andy Piper
db4a612c13
autotest: test 256 FT windows and fix calculation of log-based FFT
...
fix quadplane FFT reference calculation
re-enable harmonic test
use median for measuring in-flight FFT average as it's much more reliable
relax quadplane filter restriction
2020-05-06 10:14:30 +10:00
Samuel Tabor
913e5a23fe
autotest: Add method to get default params for model.
2020-04-22 10:01:09 +10:00
Peter Barker
10e8f3f3d7
autotest: canonicalise on defaults_filepath rather than defaults_file
...
This naming better represents the fact this isn't just a filename.
2020-04-14 15:09:17 +10:00
Pierre Kancir
bcd15bc6e4
Tools: update path for plane test missions files
2020-04-09 09:01:03 +10:00
Peter Barker
403950f61f
autotest: add autotests for CPU failsafe
2020-03-20 12:19:21 +11:00
Peter Barker
92d2186b95
autotest: don't use self.mav.motors_disarmed_wait as it blocks forever
2020-03-17 16:31:29 +11:00
Andy Piper
94ff5d13c0
autotest: limit frequency matching to resolution of the FFT
2020-03-10 15:04:46 +11:00
Peter Barker
dc8e1bd4a4
autotest: flake8 fixes
2020-03-07 20:45:26 +11:00
Peter Barker
c7aff4eb11
autotest: fixes for quadplane fft test
...
recv_match's result is not iterable; it just gives you a single message.
printing the stacktrace when assigning to ex is tradition - we tend to
lose the stack traces otherwise
rebooting sitl is usually required if the context we've just popped had
a reboot in it (usually indicating a reboot-required parameter was set).
So I added a reboot after the context pop.
2020-03-07 20:45:26 +11:00
Andy Piper
ba67ad39a0
Tools: quadplane test
2020-02-22 11:15:37 +11:00
Peter Barker
642935fd43
Tools: random Python cleanups based on lgtm analysis
2019-09-21 22:26:03 +10:00
Peter Barker
12b9928a56
Tools: autotest: break out a load_fence function
2019-08-05 16:37:08 +10:00
Pierre Kancir
daaf769055
Tools: add arm/disarm testing on all modes
2019-07-11 11:42:45 +10:00
Peter Barker
001f276043
Tools: autotest: re-enable QAUTOTUNE test
2019-07-08 20:38:31 +10:00
Peter Barker
156f0ff496
Tools: autotest: ensure we get get saved-gains message in qautotune
2019-05-07 09:23:50 +10:00
Mark Whitehorn
cfbda3fd3e
Tools: autotest: add support for parameter file inheritance
2019-04-16 09:04:25 +10:00
Peter Barker
9a16b40a73
Tools: autotest: rename get_rudder_channel to get_stick_arming_channel
...
... as some of these aren't actually rudder inputs...
2019-03-27 11:29:53 +11:00
Peter Barker
d53f787a14
Tools: factor init up into parent class
...
Tools: autotest: use speedup 8 for all suites
for reliability
2019-03-13 08:20:20 +11:00
Peter Barker
b47b97a981
Tools: autotest: add test for QuadPlane controller pre-arm checks
2019-03-12 10:14:14 +11:00
Peter Barker
19f51813f2
Tools: autotest: include mavproxy output in all vehicle test log files
2019-03-08 23:21:27 +11:00
Peter Barker
8c35ddc0eb
Tools: autotest: add PID_TUNING test
2019-03-05 10:41:56 +11:00
Peter Barker
50687c9add
Tools: autotest: ArmFeatures is common to all vehicles; use inheritted tests
2019-02-28 12:53:07 +11:00
Pierre Kancir
7e12f16be6
Tools: fix lambda test
2019-02-22 08:04:03 +11:00
Mark Whitehorn
fd385c0f91
Tools: autotest: add quadplane output_motor_mask check
...
add comparator arg to wait_servo_channel_value and cleanup
2019-02-13 15:28:47 +11:00
Peter Barker
be3428de65
Tools: autotest: use absolute path to defaults file for QuadPlane
2019-02-10 17:41:00 +11:00
Mark Whitehorn
74c114e455
Tools: autotest: use frame and VehicleInfo in AutoTestQuadPlane
2019-02-10 17:37:50 +11:00
Peter Barker
6f1f98dc3c
Tools: autotest: add assumption run_tests is only called once - remove hasInit
2019-02-09 11:31:17 +11:00
Pierre Kancir
8a7555bf56
Tools: autotest: fix up the arming tests
...
Tools: unify arm function failure message
Tools: get autodisarm time from parameter for autodisarm test
Tools: disable autodisarm for arm/disarm tests.
Tools: fix interlock channel for heli
Tools: simplify arming_test sub exclusion
Tools: fix empty string in progress
Tools: add back arming test to plane
Tools: allow single test run on Sub
Tools: remove old comments on autotest common
Tools: add vehicle type getter function
Tools: make get_rudder_channel abstract method
Tools: common make get_disarm_delay abstract method
Tools: make set_autodisarm_delay abstract method
Tools: rename set_throttle_zero to zero_throttle and use it
Tools: common.py remove unnecessary exception
Tools: subclass vehicle type
2019-02-09 10:04:57 +11:00
Peter Barker
2bd34aaebe
Tools: autotest: disable quadplane test as it passes when it shouldn't
2019-02-04 21:18:21 +11:00
Peter Barker
d9d9745c11
Tools: autotest: add test for QuadPlane QAutoTune
2019-02-04 21:18:21 +11:00
Peter Barker
205fc7b55d
Tools: autotest: convert QuadPlane to new tests framework
2018-12-18 10:06:09 +11:00
Peter Barker
f84370bb04
Tools: autotest: consolidate mission-loading functions
...
Also add sanity checks for mission loading
Tools: autotest: add missing import for arduplane.py
2018-11-16 10:06:25 +11:00
Pierre Kancir
b35cb4d814
Tools: update quadplane tests to use safer functions
2018-10-03 17:24:52 +10:00
Pierre Kancir
f6cc934678
Tools: pep8 corrections + correct variable shadowing
2018-08-27 17:08:47 +10:00
Pierre Kancir
cc8aca1619
Tools: various fixes for Copter tests
...
Tools: correct altitude check
Tools: correct tests syntax
Tools: add autotest syntax check on common
Tools: search for syntax mistake on autotest lambda
Tools: put copter in hover trottle to prevent crash
Tools: reboot after baterry failsafe test
Tools: copter takeoff wait_ready_to_arm before arming
Tools: arm copter after land on RTL
Tools: reset copter battery voltage after battery failsafe
2018-08-21 20:41:09 +10:00
Pierre Kancir
2f9f793ccf
Tools: add arm and disarm tests
2018-08-15 16:38:20 +10:00
Peter Barker
af37e10126
Tools: autotest: factor out starting of our our mavlink connection
2018-08-04 10:07:22 +10:00
Pierre Kancir
a930822d9d
Tools: unify exception on os.link
2018-08-03 08:40:33 +10:00
Michael du Breuil
90216f7cb6
Tools: Slow rover test down for CI, remove unneeded variable
2018-08-01 09:19:20 +10:00
Peter Barker
6dd8dbeb40
Tools: autotest: add ability to add breakpoints in autotest
2018-07-27 09:58:15 +10:00
Karthik Desai
40cd0cd17f
Tools: autotest: Use the generic run_test.
...
If any of the tests throws an exception, it will be caught by the generic test function
that collects all errors and displays them before passing the result to the vehicle testcode.
Hence the name of the test and the exception that got raised get printed in a single
location. This nicely reduces code duplication.
2018-05-09 14:23:45 +10:00
Karthik Desai
75ae59c0c8
Autotest: Remove frame initialisation.
...
This will otherwise override the --frame parameter. The init() function takes care of the initialisation
2018-04-17 23:00:04 +10:00
Karthik Desai
9de1813ae6
Autotest: Fix a race condition on the regression tests on Windows
2018-03-23 09:13:37 +09:00
Peter Barker
fe3b882bea
Tools: autotest: move close method up to common.py
2018-03-20 08:39:12 +11:00
Peter Barker
31ba99e58a
Tools: autotest: use buildlogs_path for all buildlogs
2018-03-20 08:39:12 +11:00
Peter Barker
b2cb6e196c
Tools: autotest: pull common MAVProxy options into common.py
2018-03-20 08:39:12 +11:00
Peter Barker
b348cfa985
Tools: autotest: flake8 compliance
...
Taking the opportunity to make massive changes while we're destroying
history anyway.
2018-03-15 07:54:21 +09:00
Pierre Kancir
259dda810d
Tools: use base class to share code between vehicle tests
...
Autotest: common.py add new base class and test
Autotest : Common add heartbeat handling on wait_mode timeout
Autotest: common.py add reach_heading_manual and reach_distance_manual
Autotest: new autotest implementation for Rover
Autotest : rover add drive_square test
Autotest: new autotest implementation for Copter
Autotest: new autotest implementation for Plane
Autotest: new autotest implementation for Sub
Autotest: new autotest implementation
Autotest: new autotest implementation for QuadPlane
Autotest : Sub disable GCS_Failsafe on autotest to prevent timeout. The failsafe aren't currently tested on Sub
2018-03-15 07:54:21 +09:00
khancyr
fac89ed437
Tools: autotest: move common functionality to common.py
...
Tools: don't need to pass option on first mavproxy
Tools: reformat common.py and add commun function
Tools: use new common functions
Tools: move functions from rover to commun and reorder
Tools: add and use set_rc function with timeout
Tools: fix style for pep8
2017-12-02 22:28:22 +11:00
Peter Barker
2f76f83ab7
Tools: autotest: add and use progress function
...
Based on work done by khancir
(https://github.com/ArduPilot/ardupilot/pull/6360 )
Tools: arduplane.py change print to progress function
Tools: quadplane.py change print to progress function
Tools: ardusub.py change print to progress function
2017-11-14 16:02:05 +11:00
Pierre Kancir
76bb081d60
Tools: autotest: add python headers to scripts
...
Tools: arduplane.py add python header
Tools: apmrover2.py add python header
Tools: arducopter.py add python header
Tools: ardusub.py add python header
Tools: quadplane.py add python header
2017-11-14 14:47:32 +11:00
Peter Barker
1b7122d733
Tools: add a --speedup parameter to autotest to control speed of all sims
2017-08-29 22:49:40 +01:00
Miguel Arroyo
38297c4d19
Tools: Adds GDBServer with screen option for debugging
2017-08-24 21:37:06 +10:00
Pierre Kancir
bec09b9a57
autotest: python3 support
2016-11-09 11:48:22 -03:00
Pierre Kancir
5786d66ea1
autotest: simplify start_sitl
2016-11-09 11:48:22 -03:00
Pierre Kancir
9e1ffcae5d
Tools: update python coding style
...
Tools: update PrintVersion.py coding style
autotest: update python coding style
pysim: update python coding style
jsb_sim: update Python coding style
param_metadata: update Python coding style
2016-09-01 13:05:11 +10:00
Pierre Kancir
19d94737a0
autotest: move all default params to default_params directory
2016-08-03 17:44:37 -03:00
Andrew Tridgell
9ea4a9233d
autotest: updated OBC2016 mission
...
added butterfly search
2016-07-20 19:44:14 +10:00
priseborough
e0d87bf529
autotest: Increase startup wait time to allow EKF and GPS checks to pass
2016-07-19 12:16:48 +10:00
Peter Barker
b23f983459
autotest: add --gdb option to autotest.py
2016-06-27 18:14:55 -03:00
Peter Barker
3548f90d3a
autotest: create SIL object to hold valgrind logpath
2016-05-27 08:07:07 -03:00
Peter Barker
7b86a05722
Tools: convert autotest build.X and fly.X to use waf build system
2016-05-27 08:07:07 -03:00
Andrew Tridgell
05e9f360b2
autotest: fixed quadplane test with new valgrind option
2016-04-22 10:50:51 +10:00
Andrew Tridgell
417176c0b2
autotest: reduce speedup on quadplane test to 10
...
mavproxy wasn't keeping up on autotest server
2016-01-21 07:46:18 +11:00
Andrew Tridgell
926c37a876
autotest: increase timeout in quadplane test
2016-01-20 17:23:36 +11:00
Andrew Tridgell
9bb251a3fa
autotest: disable DF log for QuadPlane test
...
it is just too big to be useful
2016-01-10 17:43:02 +11:00
Andrew Tridgell
62b6057249
autotest: switch QuadPlane mission to full OBC2016 mission in Dalby
2016-01-09 16:50:17 +11:00
Andrew Tridgell
eec1b95f69
autotest: added quadplane test
2016-01-09 16:27:03 +11:00