Commit Graph

635 Commits

Author SHA1 Message Date
Andrew Tridgell ffa316c1f3 autotest: fixed copter for new strings for arm/disarm 2015-11-29 18:39:32 +11:00
Andrew Tridgell 084b607862 autotest: updated string for "Flight plan received" 2015-11-26 12:52:19 +11:00
Grant Morphett fd0a442c92 autotest: added a timeout check
There was 1 while loop in the arducopter.py autotest that didn't have
a timeout check and of course we tripped over it.
2015-10-12 14:20:52 +09:00
Andrew Tridgell 717c04d507 autotest: fly CopterAVC mission as a helicopter
this ensures heli gets basic testing
2015-09-01 16:34:20 +10:00
Andrew Tridgell 34689cf949 autotest: cope with mavproxy logging msg changes 2015-06-30 14:06:17 +10:00
Randy Mackay c86a396ca0 SITL: allow easier slowing of copter test 2015-05-13 22:40:03 +09:00
Randy Mackay 2ad5011177 SITL: slow down autotest for slow VMs 2015-05-12 16:31:32 +09:00
Andrew Tridgell 68515d0324 autotest: fixed CopterAVC test 2015-05-11 11:26:54 +10:00
Andrew Tridgell fe536a4b89 autotest: use internal copter sim for autotest 2015-05-05 16:56:40 +10:00
Andrew Tridgell d5b51f2129 autotest: use internal simulator for copter test 2015-05-05 16:56:39 +10:00
Andrew Tridgell d691cfc3d8 autotest: rename sim_multicopter.py to sim_wrapper.py
it now supports multiple vehicle types
2015-04-19 12:08:25 +10:00
Randy Mackay a04bc263f6 SITL: remove redundant takeoff from copter test 2015-04-16 21:00:38 +09:00
Randy Mackay d0036290c1 SITL: copter test displays which RTL failed 2015-04-16 21:00:17 +09:00
Randy Mackay 90b02a2685 SITL: shorten GPS glitch duration for copter 2015-04-15 17:33:23 +09:00
Andrew Tridgell 7f89f73ad1 autotest: use simulation time for all time delays 2015-04-13 10:08:12 +10:00
Randy Mackay 11d0801c99 SITL: fix copter-avc test 2015-04-08 15:24:48 +09:00
Randy Mackay 8335399525 SITL: fix copter test
Allow more time for fly_square
Allow more movement in loiter_glitch test
2015-04-08 12:18:22 +09:00
Randy Mackay 7eb710ed3a SITL: copter autotest uses sim time 2015-04-08 12:18:20 +09:00
Andrew Tridgell cf15b4d4fc autotest: removed use of --nowait option 2015-03-27 18:03:24 -07:00
Andrew Tridgell 97ee7e9fcc autotest: run copter SITL simulation at 400Hz
save a bit of CPU time
2015-03-25 22:30:46 -07:00
Andrew Tridgell 45887a5d28 autotest: run rover and copter with synthetic clock 2015-03-22 18:57:43 -07:00
Randy Mackay e1abdadc06 AutoTest: allow 10sec for EKF to settle in AVC test 2015-03-21 21:51:41 +09:00
Randy Mackay 74b46818bd AutoTest: add 10sec before starting copter test
We should probably replace this with a check that the EKF has completed
it's initialisation and has not gone into constant position mode.
2015-03-14 11:03:15 +09:00
Randy Mackay ae487ca88b AutoTest: remove calibrate level from copter tests 2015-02-03 14:29:11 +09:00
Randy Mackay 2a7f78a2cd AutoTest: reduce copter throttle when in stabilize
Simulated copter is flying too high and causing the land to timeout
2015-01-14 12:41:57 +09:00
Randy Mackay 765fa0e223 AutoTest: higher copter throttle when in stabilize 2014-12-31 15:23:00 +09:00
Randy Mackay 4ea48f8f64 AutoTest: increase throttle for fly_square test 2014-12-30 20:48:12 +09:00
Randy Mackay 95827e59c1 AutoTest: fix fly_mission to recognise end of mission
Copter's behaviour after completing a mission has changed so it does not
automatically switch to Loiter mode but rather stays at the last
waypoint.  This was confusing the fly_mission function.
2014-11-05 18:03:47 +09:00
Randy Mackay 68be36d4f8 AutoTest: reduce copter throttle when flying square
This will keep the copter lower during this test and resolve the timeout
during landing
2014-08-26 12:19:58 +09:00
nwind21 485726258b autotest: Add code to detect if a hard link is not allowed (for VM's). 2014-07-15 12:22:48 +10:00
Randy Mackay 4f75cbcce0 AutoTest: fix error reporting for copter AVC mission 2014-06-06 11:42:57 +09:00
Randy Mackay cad1441739 AutoTest: print failed copter test
Name of the failed tests appears at the moment it fails and then again
after all tests have been run.  This hopefully makes it slightly easier
to know which test has failed
2014-04-30 21:46:15 +09:00
Randy Mackay 028b7d1cce AutoTest: fix AVC copter test
Also incorporate file name changes
2014-04-08 11:00:47 +09:00
Randy Mackay f54d8b02eb AutoTest: fix to copter missions
Missions were not completing successfully because they were waiting for
the current waypoint number to be 1 higher than was possible
2014-04-07 22:25:38 +09:00
Andrew Tridgell ccc449db19 autotest: removed the set of SYSID_THISMAV
this led to a race condition where some parameters were not loaded as
they were being sent with the wrong system ID
2014-02-18 15:51:25 +11:00
Randy Mackay 46f4368522 AutoTest: adjust copter CIRCLE_RADIUS to 3000 2014-02-15 06:09:08 +11:00
Andrew Tridgell 6121b9c58e autotest: switched to binary log download over MAVLink 2013-12-28 21:47:12 +11:00
Randy Mackay 9951c50e48 AutoTest: remove unnecessary wait from SaveWP test 2013-11-02 21:35:05 +09:00
Randy Mackay 1951ca1874 AutoTest: slightly shorten copter loiter test 2013-10-09 13:02:38 +09:00
Randy Mackay 4c32f4dbdb AutoTest: shorten simple and super simple tests 2013-10-05 22:50:47 +09:00
Randy Mackay 01ba5a0e0c AutoTest: add super simple test 2013-10-05 18:26:59 +09:00
Randy Mackay 5f1ba85ce4 AutoTest: add copter battery failsafe test 2013-10-03 11:16:38 +09:00
Randy Mackay 6f337fe1e8 AutoTest: increase timeout for GPS glitch test 2013-09-26 14:43:04 +09:00
Randy Mackay 62d298e141 AutoTest: add copter gps glitch test in auto mode 2013-09-24 21:41:33 +09:00
Randy Mackay cc00ac96ca AutoTest: add copter gps glitch test 2013-09-24 21:41:07 +09:00
Randy Mackay d9824dc23e AutoTest: rename and remove copter mission files 2013-07-16 21:41:06 +09:00
Randy Mackay 0ba6bf8721 AutoTest: relax stability patch max distance 2013-07-10 20:54:12 +09:00
Randy Mackay cf6684ac0c AutoTest: fix to copter getting stuck in Failsafe test 2013-07-10 13:03:40 +09:00
Randy Mackay f7f575eb58 AutoTest: reduce time of copter fly_circle
Circle_Rate parameter was increased so we can reduce the time of the
test
2013-06-26 21:55:52 -10:00
Andrew Tridgell 93db4a4a5b autotest: consider lack of symlinks to be a soft error
some people use VMWare shared drives, which don't do hard links
2013-06-24 13:06:54 +10:00
Andrew Tridgell 21436dc1a6 autotest: fixed import of mavwp 2013-06-18 17:02:00 +10:00
Randy Mackay 57f7d5d18f AutoTest: reduce circle test time 2013-06-01 21:35:04 +09:00
Randy Mackay da97c991f8 AutoTest: add circle mode test 2013-06-01 18:21:31 +09:00
Andrew Tridgell d944da39b2 autotest: add sparkfun wicket icons on map 2013-05-29 16:55:23 +10:00
Andrew Tridgell a900226ff7 autotest: added CopterAVC test
this will test the copter code for the AVC2013 mission
2013-05-29 15:33:32 +10:00
Randy Mackay 91b08cdcec AutoTest: add fence test for Copter 2013-05-19 16:19:59 +09:00
Randy Mackay 7bbee36e89 AutoTest: add copter stability patch test 2013-05-19 15:32:54 +09:00
Randy Mackay f14284e7a0 AutoTest: reorganise copter tests 2013-05-03 11:22:15 +09:00
Andrew Tridgell 168f76e76c autotest: added --map option to autotest.py 2013-05-02 20:07:04 +10:00
Andrew Tridgell 9904bcd9aa autotest: changed mavlink log names to *.tlog
easier to view in MP
2013-04-28 15:01:31 +10:00
Randy Mackay a57965d15f AutoTest: reduce copter turn rate in fly square 2013-04-26 22:45:45 +09:00
Randy Mackay f162713ca8 AutoTest: reduce throttle so it doesn't fly so far 2013-04-18 22:30:41 +09:00
Andrew Tridgell da90dfa454 autotest: cope with existing auto mode via mode change 2013-01-14 18:03:51 +11:00
Andrew Tridgell 1fcffc6de9 autotest: increase speed in fly square test for ArduCopter
should prevent occasional timeouts
2012-12-01 08:08:54 +11:00
Andrew Tridgell b2c71dac1b autotest: larger distance error allowed in fly simple test 2012-11-28 11:41:22 +11:00
Andrew Tridgell a7fa6e7c61 autotest: fixed failsafe test for arducopter 2012-11-28 11:10:18 +11:00
rmackay9 93f918f3e0 AutoTest: reduced descend throttle for arducopter's change_alt test. 2012-08-19 12:33:21 +09:00
rmackay9 c574393995 AutoTest: update failsafe timeout to 180 to give it more time to pass. 2012-08-14 11:25:10 +09:00
Andreas M. Antonopoulos 29338fbf7b auto est: modular tests and unit testing with Junit.xml output for jenkins
autotest: unit testing for jenkins
- parameterized unit testing
- modular python test modules
- test groups by directory
- select tests individual or by group
- skip tests individually or by group

arducopter.py: parameterized several functions to allow throttle settings and timeouts

test modules: extracted and copied 8 tests from Tridge's autotest into modules

junit.xml: xml template for unit test reporting to jenkins
2012-07-05 23:48:50 -07:00
Andrew Tridgell 453cb93c6f autotest: fixed levelling for ACM with MAVLink 1.0 2012-04-27 15:15:53 +10:00
Andrew Tridgell 67afdc7485 autotest: fixes for MAVLink 1.0 in autotest 2012-04-27 15:15:53 +10:00
Jason Short c10778d685 Better throttle for tests 2012-02-19 15:06:54 -08:00
Jason Short 11dd9564d9 SIMPLE mode throttle fix 2012-02-19 14:21:27 -08:00
Jason Short 1c9bb25f09 AP TEST fixes for new throttle control 2012-02-19 12:38:57 -08:00
Andrew Tridgell 4a766e1abd autotest: lower throttle level for lowering altitude in loiter
we were not dropping altitude in the change_alt test
2012-02-19 23:21:09 +11:00
Andrew Tridgell 9700afaf10 autotest: fixed failsafe test
increased timeout, added check for home location, and fixed failure
testing on timeout
2012-02-19 22:52:09 +11:00
Jason Short 973b0b72c5 Landing now disarms automatically. 2012-01-28 22:52:17 -08:00
Jason Short d11eaa9265 Tweaks 2012-01-10 23:43:44 -08:00
Andrew Tridgell 861222f81d autotest: cope with startup messages in a different order 2012-01-09 18:09:04 +11:00
Jason Short 0be68e679b updated throttle to keep altitude 2012-01-07 22:27:25 -08:00
Jason Short c1314bc814 Added failsafe test 2012-01-06 10:22:13 -08:00
Jason Short 6d827d0087 Added RTL with Auto_land test
Fixed Simple Mode test
2012-01-05 22:13:20 -08:00
Jason Short 193848cea6 thought the commented out function was too cool to loose, but not using it now
changed the WP index number
2012-01-04 09:52:25 -08:00
Andrew Tridgell 64b541037e autotest: change to an octa frame for autotest
this will be a useful experiment
2012-01-04 22:03:37 +11:00
Andrew Tridgell efa649e51a autotest: fix for new sim_multicopter.py command 2012-01-04 21:49:19 +11:00
Jason Short 986b42a45b Fixed Loiter Timeout bug, added more wind by default. 2011-12-29 23:02:02 -08:00
Andrew Tridgell 8b9eb0dad1 autotest: fixed arducopter autotest
no longer says "Please run setup"
2011-12-26 20:10:10 +11:00
Jason Short c9b2d1c3c2 Added fix for Takeoff Test 2011-12-23 14:42:49 -08:00
Andrew Tridgell e4ed3cb583 fixed typo in fly_simple() 2011-12-22 10:25:31 +11:00
Jason Short 6e81b1a6f8 Added new tests 2011-12-15 20:51:41 -08:00
Andrew Tridgell 8847ee518d autotest: fixed loiter hold time
hold time was larger than the timeout
2011-12-13 19:08:47 +11:00
Jason Short c58e9e9135 more control over loiter time and alt change 2011-12-12 17:47:46 -08:00
Andrew Tridgell 37641d2576 autotest: added a 2m/s wind from east to quadcopter test 2011-12-13 10:36:52 +11:00
Andrew Tridgell a3403aeb6c autotest: added logging of what failed 2011-12-12 23:08:20 +11:00
Andrew Tridgell de1a5ab9ce autotest: increase stream rate to 5 for ArduCopter test
needed to get accurate heading monitoring
2011-12-12 23:07:46 +11:00
Andrew Tridgell ef8ed6aab2 autotest: calibrate accelerometers at startup 2011-12-12 22:07:53 +11:00
Andrew Tridgell 0a7f2bcc44 autotest: use random MAVLink system IDs
this allows more than one test to be viewed at the same time in
qgroundcontrol
2011-12-03 07:55:03 +11:00
Andrew Tridgell fb3d4eab90 autotest: fixed sim_quad viewerip handling 2011-12-02 17:37:55 +11:00
Andrew Tridgell cf7073128d autotest: adapt test suite to new simulation framework 2011-12-02 17:37:55 +11:00
Jason Short 79945d02b7 made missions work with index of 1 2011-11-28 10:33:05 -08:00
Andrew Tridgell f30bca01c9 autotest: use idle_hooks to prevent lockup 2011-11-28 13:53:57 +11:00
Andrew Tridgell c64a5f354e autotest: enable new SITL emulation code
this enables the register level SITL code
2011-11-25 20:00:19 -08:00
Jason Short 9e04d4c45b longer timeout 2011-11-19 14:59:48 -08:00
Jason Short 2d5ee0f7e2 Switched to Mission 2 2011-11-19 14:03:26 -08:00
Jason Short 31cb62620f Mission test update 2011-11-13 22:56:33 -08:00
Jason Short d226b875c8 set first WP in wait_waypoint to 0 2011-11-13 13:42:49 -08:00
Andrew Tridgell 3057ef9fb7 autotest: fixed incorrect altitude wait 2011-11-13 23:59:20 +11:00
Andrew Tridgell be886ef9bc autotest: fixed waypoint wait code
this allows fly.ArduCopter to pass again
2011-11-13 23:50:29 +11:00
Andrew Tridgell 395ad44dd9 fixed wait_mode() 2011-11-13 23:50:29 +11:00
Andrew Tridgell 91f0722e22 fixed motor arming 2011-11-13 23:50:28 +11:00
Andrew Tridgell 147dc2529f autotest: added initial implementation of flying of ArduPlane
takeoff, circuit, roll, RTL, mission
2011-11-13 23:50:28 +11:00
Andrew Tridgell 0f00b4c722 autotest: added wait_mode() helper 2011-11-13 23:50:28 +11:00
Andrew Tridgell 1e22945981 autotest: split out some common functions ready for ArduPlane support 2011-11-13 23:50:28 +11:00
Jason Short 04491d66db Fixed scaling issue with Circle mode 2011-11-13 00:24:25 -08:00
Andrew Tridgell dafbdd1f2b autotest: added --viewerip option
this allows you to specify an IP that will receive all MAVLink logs
and fg data for realtime viewing
2011-11-11 08:17:12 +11:00
Andrew Tridgell 2436bff853 autotest: ensure we have a VFR_HUD msgs before getting location 2011-11-10 22:34:54 +11:00
Andrew Tridgell e7294ee493 autotest: improve error checking 2011-11-10 13:12:43 +11:00
Andrew Tridgell 6263bb8936 autotest: fixed target altitude for RTL mission 2011-11-10 13:00:35 +11:00
Andrew Tridgell d2a8107b47 autotest: run the sim at 200Hz 2011-11-10 12:47:37 +11:00
Jason Short b25ad4e61f new Test mission 2011-11-09 16:33:24 -08:00
Andrew Tridgell 5ed2c02bbd autotest: fixed mission end handling 2011-11-09 20:27:36 +11:00
Andrew Tridgell 21e7c627af autotest: improved error checking and child termination
we now report pass/fail for each test
2011-11-09 17:21:53 +11:00
Jason Short b792c130ae Merge branch 'master' of https://code.google.com/p/ardupilot-mega 2011-11-08 21:43:24 -08:00
Jason Short 4fbd363a8f New mission test 2011-11-08 21:43:18 -08:00
Andrew Tridgell 6e32905f81 autotest: avoid the need for killall
this ensures we cleanup child processes cleanly, so we don't need the
killall any more
2011-11-09 15:46:06 +11:00
Andrew Tridgell 122e09323c autotest: fixed home altitude for CMAC 2011-11-08 08:14:46 +11:00
Andrew Tridgell 8c5873564b autotest: dump all GPS points, even if fix==0
for some reason HIL gives fix 0 sometimes
2011-11-07 22:57:32 +11:00
Andrew Tridgell c750f85280 autotest: enable dumping of DataFlash logs at end of test 2011-11-07 22:56:13 +11:00
Andrew Tridgell 3aee902be1 fixed permissions of valgrind log file 2011-11-04 10:05:40 +11:00
Andrew Tridgell 6e72c88a83 autotest: run SIL binary under valgrind
this lets us find uninitialised variables in the APM code, and other
common C/C++ errors
2011-11-04 10:00:06 +11:00
Andrew Tridgell 40c87dd295 fixed home location 2011-11-02 10:26:24 +11:00
Andrew Tridgell b6dcfa416b autotest: a complete mission now flies
with the TCP buffering fixed, the mission flies quite well with standard parameters
2011-11-02 09:38:44 +11:00
Andrew Tridgell 7a0d39c197 autotest: added a mission to ArduCopter testing
the mission is not flown well at all, but its a start
2011-11-01 22:44:21 +11:00
Andrew Tridgell beab1500c1 autotest: ArduCopter test can now fly a square
the copter now takes off, yaws to north, flies a 50m square, then
does a loiter test for 10s and lands
2011-10-31 18:31:16 +11:00
Andrew Tridgell 0b484afbbe First version of APM autotest
This does SIL testing of ArduPlane and ArduCopter. For now it just does
a basic LOITER test of ArduCopter. It produces logs and a kml of the
flight on apm.tridgell.net
2011-10-31 13:50:34 +11:00