Commit Graph

457 Commits

Author SHA1 Message Date
Andrew Tridgell 5818dce3d2 param_metadata: fixed parameter parsing for multi-parameter objects
also adds more error checking
2013-05-21 17:02:13 +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
Andrew Tridgell 4c9cb461d6 autotest: setup Rover autotest for Sparkfun course
this will make it easier to test around the course
2013-05-17 10:37:11 +10:00
Andrew Tridgell 2a9298f3d5 autotest: display flight tracks on autotest web page 2013-05-06 12:32:42 +10:00
Randy Mackay 7d8822dde1 AutoTest: remove lower loiter PID overrides
SITL issues resolved now so default PIDs ok again
2013-05-04 15:03:36 +09:00
Randy Mackay 9e01dea95b AutoTest: reduce copters terminal vel to 15m/s 2013-05-03 14:52:16 +09:00
Randy Mackay 73ea5aab5c AutoTest: override default Loiter PIDs
Although not a permanent solution this temporarily gets the auto tester
to work again because loiter will stop spiralling
2013-05-03 14:51:54 +09:00
Randy Mackay ba472b9749 AutoTest: remove unused missions 2013-05-03 11:22:27 +09:00
Randy Mackay f14284e7a0 AutoTest: reorganise copter tests 2013-05-03 11:22:15 +09:00
Randy Mackay 44b0c790f3 AutoTest: turn off compass learning in virtual copter 2013-05-03 11:21:00 +09:00
Randy Mackay 68279a138f AutoTest: reduce power of virtual copter 2013-05-03 11:20:26 +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 4c7ab9a0f9 AutoTest: add valgrind test script for randy 2013-04-27 23:33:44 +09:00
Randy Mackay a57965d15f AutoTest: reduce copter turn rate in fly square 2013-04-26 22:45:45 +09:00
Andrew Tridgell 1c980981e4 web: added link to new dev website 2013-04-23 10:38:31 +10:00
Andrew Tridgell 215a2a1b03 web: added Tools link to firmware site 2013-04-23 10:24:56 +10:00
Andrew Tridgell 9e92a60cfa autotest: fixed dump of file based logs 2013-04-20 18:24:19 +10:00
Andrew Tridgell 6122dd2bdd autotest: added command line extensions to sim_rover.sh 2013-04-19 10:24:47 +10:00
Andrew Tridgell 8ba982e8de autotest: fix dump_logs for other vehicle types 2013-04-19 10:24:35 +10:00
Randy Mackay f162713ca8 AutoTest: reduce throttle so it doesn't fly so far 2013-04-18 22:30:41 +09:00
Craig@3DR b5b3b4f48b Changed instructions for loading fimrware onto PX4 2013-04-17 11:46:04 -07:00
Andrew Tridgell 07cd2567f3 autotest: added --cli option to dump_logs.py 2013-04-17 21:39:22 +10:00
Andrew Tridgell 636573f0fd autotest: added some useful test missions for ArduPlane 2013-04-17 11:49:34 +10:00
Kevin Hester d3dad7afee autotest: add @User autodocs to the apm.pdef.xml as user=foo 2013-04-16 11:19:15 +10:00
Andrew Tridgell 13e6aaf682 autotest: precreate buildlogs directory 2013-04-15 10:52:32 +10:00
Randy Mackay 7d39b76fde autotest: add arducopter sim script for Randy 2013-04-14 11:43:18 +09:00
Andrew Tridgell bdb2f12c3b autotest: removed obsolete navigation parameters for ArduPlane 2013-04-12 13:27:51 +10:00
Andrew Tridgell 960574cccf autotest: fixed sleep_overhead calculation in sim_multicopter.py 2013-04-08 07:07:25 +10:00
Kevin Hester a86ede4270 autotest: APM xml docs should be named xml.pdef.xml
(not arduplane.pdef.xml)

pch: rebased pull request #188
2013-04-07 11:12:11 -07:00
Julian Oes 50ccaadbc4 autotest: bumped version number of QUpgrade
rebased (pch) - closes pull request 184
2013-04-07 11:01:56 -07:00
Andrew Tridgell 2b19249e4a autotest: fixed autotest executable path 2013-04-06 18:24:43 +11:00
Andrew Tridgell a8e34eeeb7 autotest: fixed tmp path handling in autotest for dump_logs.py 2013-04-06 17:07:47 +11:00
Andrew Tridgell 5ba4ea88ef autotest: fixed TMPDIR for dump_logs.py 2013-04-06 17:03:13 +11:00
Andrew Tridgell 9882d9c639 autotest: added dump_logs.py 2013-04-06 16:56:31 +11:00
Andrew Tridgell fe6e83f7f2 autotest: added support for vtail testing in runsim
virtual vtail support
2013-04-05 15:22:11 +11:00
Julian Oes 0aff1136ed autotest: added link for QUpgrader to web-firmware/index.html 2013-04-05 11:29:06 +09:00
Andrew Tridgell 039c603a35 autotest: allow testing of elevon planes
this fakes up an elevon plane using the Rascal110
2013-04-05 11:29:25 +11:00
Andrew Tridgell 59a2a95e9a Copter: remove noise and wind from copter sim
this is to help Randy track down a current problem
2013-04-04 21:09:20 +11:00
Andrew Tridgell e61f3dfeca autotest: remote getppid for SITL copter on windows 2013-04-02 13:54:36 +11:00
Andrew Tridgell 5f8c8e87a8 autotest: fixed rover mission completion 2013-03-29 21:19:04 +11:00
Andrew Tridgell de02f98d28 autotest: added license and safety statement 2013-03-28 14:04:59 +11:00
Andrew Tridgell f6ddc4e4a1 autotest: added GPS vertical speed to the sitl simulator 2013-03-28 10:28:08 +11:00
Andrew Tridgell 92ddd4b5d1 autotest: removed 2nd getppid() call 2013-03-26 08:23:00 +11:00
Andrew Tridgell 8b21cac5fd autotest: remove dependency on getppid()
makes pysim more windows friendly
2013-03-26 08:20:40 +11:00
Andrew Tridgell 57c498b570 autotest: remove dependency on pexpect for rover/copter sim
this makes it easier to run on windows
2013-03-26 08:12:57 +11:00
Andrew Tridgell 526418dd90 autotest: html tidy-up 2013-03-23 16:19:02 +11:00
Andrew Tridgell 3ed71eee05 autotest: initial web page for firmware builds 2013-03-23 16:11:15 +11:00
Andrew Tridgell 01b2ecbc55 autotest: copy the build_binaries.sh script before running
this prevents altering the script while running
2013-03-23 14:54:53 +11:00
Andrew Tridgell 4fd3adbcb9 Rover: run rover sim reniced 2013-03-22 11:22:15 +11:00
Andrew Tridgell 232bdca4e2 autotest: improved skid steering test scripts 2013-03-15 11:05:03 +11:00
Andrew Tridgell 8d8e30156f autotest: added skid steering version of rover sim start script 2013-03-15 09:52:57 +11:00
Andrew Tridgell 6ea2130342 autotest: added skid steering support to rover simulator
Very rough initial implementation. Needs to be tweaked for more
realistic behaviour later.

thanks to Greg Brill for pointers on this.
2013-03-15 09:52:32 +11:00
Andrew Tridgell d9be58fd2c autotest: add 10 mins to timeout
this copes with build_binaries.sh
2013-03-13 08:23:41 +11:00
Andrew Tridgell 8b87d3643b autotest: fixed mavlink paths 2013-03-12 13:15:41 +11:00
Andrew Tridgell 5db1dbd8d1 autotest: fixed python path for mavtemplate 2013-03-12 11:49:43 +11:00
Kevin Hester 9885cc7ed1 Docs: Add XML emit to param_parse.py. See below for more details...
I've refactored the param_parse tool to use various 'emitters'.  An emitter
can take parameter info and output it in a particular format.  Currently the
only supported emitters are the wiki and XML formats.

The goal of these changes is to create a standard machine readable description
of parameters - mainly for use by ground control stations, but it will also
enable spiffy scripting environments where code can refer symbolically to
vehicle parameters (reflectionish).

Open issue: Is there any sort of Ardupilot build id which can be included in
the generated XML?  That would ensure that we select the correct paramdefs
for the load on the target (possibly by asking the target for a SHA or
somesuch).  If that issue is resolved, then the filename for the XML
file should probably be something like:
arduplane-ca5742ac.pdef.xml.

It is worth noting that I've proposed a suffix of ".pdef.xml" for these file
types.  This facilitates automated file handling on Android devices.  On
Android you can register 'handlers' for particular file extensions and if
the user tries to open that extension in email or a web browser your app
will be given a chance to do something about it.  The 'outer' xml extension
will allow naive editors to know that at least this is an xml file.

I will include a sample of the XML format with the pull-request for this CL.
2013-03-10 17:47:42 +11:00
Andrew Tridgell fcfed2e81d autotest: build all binaries for master on each commit 2013-03-10 17:16:56 +11:00
Andrew Tridgell 693627d76a autotest: allow sim_arducopter.sh to take mavproxy parameters 2013-02-11 11:40:52 +11:00
Andrew Tridgell 3b8b04920a autotest: fixed rover parameters for new config 2013-02-10 07:44:42 +11:00
Andrew Tridgell 9c65e98dc2 autotest: expand the comment a bit more 2013-02-06 17:17:37 +11:00
Andrew Tridgell deb825b575 autotest: added some hints to sim_arduplane.sh 2013-02-06 17:00:24 +11:00
Andrew Tridgell 843692ee5d autotest: more tweaks to Rascal parameters 2013-01-16 15:16:26 +11:00
Andrew Tridgell a11705915c autotest: tweaks to Rascal tuning 2013-01-15 21:35:53 +11:00
Andrew Tridgell 5ba7084a21 autotest: useful HIL start script 2013-01-14 20:43:42 +11:00
Andrew Tridgell 56591e920d autotest: lower GPS delay for ArduCopter to 400ms 2013-01-14 18:04:31 +11:00
Andrew Tridgell da90dfa454 autotest: cope with existing auto mode via mode change 2013-01-14 18:03:51 +11:00
Andrew Tridgell a8b9e5cf5b autotest: disable wind drag
this is causing some crazy results in stabilize mode. Disable it until
we sort it out
2013-01-14 18:03:51 +11:00
Randy Mackay 70736362c6 AutoTest: update parameter names that have changed in 2.9
THR_FAILSAFE was combined with FS_THR_ENABLE
APPROACH_ALT was renamed to RTL_ALT_FINAL
2013-01-14 15:21:12 +09:00
Andrew Tridgell 4e183f4321 autotest: move hash link to new github repo 2013-01-13 19:03:46 +11:00
Andrew Tridgell 66073ee94f autotest: ensure JSBSim is dead on restart 2013-01-09 13:31:05 +11:00
Andrew Tridgell 9d6d59b1dd autotest: fixed jsbsim on fedora 2013-01-09 13:31:03 +11:00
Andrew Tridgell d5d2fc667f autotest: use mktemp instead of tempfile
more portable
2013-01-09 13:31:01 +11:00
Andrew Tridgell 3fda7bbeac autotest: fixed log dumping 2012-12-22 14:50:32 +11:00
Andrew Tridgell f4d3cd42d7 autotest: enable throttle failsafe for ArduCopter 2012-12-22 13:29:09 +11:00
Andrew Tridgell 7b2d65e3e7 autotest: added HAL_BOARD to build config 2012-12-22 12:55:22 +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 f1206ed363 autotest: tweak the rover mission a bit 2012-11-29 20:53:21 +11:00
Andrew Tridgell 74f50012a5 autotest: allow for wildcard list of steps to be specified 2012-11-29 20:53:21 +11:00
Andrew Tridgell 3ea89eb987 autotest: cope with rover already being close to home in RTL 2012-11-28 16:31:38 +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
Andrew Tridgell fdeb6d897d autotest: added Rover testing in autotest 2012-11-28 10:43:11 +11:00
Andrew Tridgell a620665772 autotest: first version of a rover simulator in python 2012-11-28 00:11:54 +11:00
Andrew Tridgell eaf868a0b6 autotest: run build_examples.sh in autotest 2012-11-24 21:12:05 +11:00
Andrew Tridgell 58a0cfc0b3 params: fixed ordering of vehicle parsing
this keeps it consistent in the wiki
2012-11-20 20:37:02 +11:00
Andrew Tridgell 4683df4a21 params: fixed parsing of value lists with -1 elements 2012-11-20 20:27:00 +11:00
Andrew Tridgell 71f8166818 autotest: fix a race condition with baro noise on startup
we need to wait for a full GPS fix
2012-11-19 11:56:46 +11:00
Andrew Tridgell 1ce3876d24 pysim: fixed testwind script 2012-10-31 10:26:48 +11:00
Lee Pike a141e16729 Pysim: add effects of wind by calcualting a drag vector (force). 2012-10-31 10:15:32 +11:00
Andrew Tridgell a9af6e95cb APM: higher throttle on takeoff in ArduPlane autotest 2012-08-30 07:37:26 +10:00
Andrew Tridgell 681e67201d APM: fixed orientation on runway in autotest 2012-08-29 17:17:38 +10:00
Andrew Tridgell d93861f4d2 autotest: removed the --wind options
SIM_WIND_* options now control wind
2012-08-28 20:18:23 +10:00
Andrew Tridgell 51247ad6c1 autotest: loiter can be a bit slow to circle sometimes 2012-08-27 13:19:21 +10:00
Andrew Tridgell c1405bddb3 APM-autotest: fixed inside loop test
pitch 80 may not be reached due to granularity of the MAVLink logging
2012-08-27 11:45:07 +10:00
Andrew Tridgell 697b2074a5 SITL: added SIM_WIND_* parameters
this allows control of the simulated wind during a flight
2012-08-25 17:49:26 +10:00
rmackay9 93f918f3e0 AutoTest: reduced descend throttle for arducopter's change_alt test. 2012-08-19 12:33:21 +09:00
Andrew Tridgell 7cc9ec4d61 autotest: ArduCopter on a 1280 is not supported any more 2012-08-19 12:30:15 +10:00
Andrew Tridgell 00f0092ae4 SITL: updated ArduPlane autotest parms
a bit more xtrack and fixed steering parameter names
2012-08-18 16:34:02 +10:00
Andrew Tridgell a6327e254c SITL: use rudder steering in APM autotest 2012-08-15 12:53:05 +10:00
Andrew Tridgell 533aab4f66 SITL: added a test script for starting in Kingaroy
we use this for OBC testing
2012-08-15 12:39:34 +10:00
Andrew Tridgell b6b12532da SITL: make it easier to start ArduPlane SITL at any location
this generates a jsbsim startup XML file from a template
2012-08-15 12:39:34 +10:00
rmackay9 6603e7724d AutoTest: set RTL's APPROACH_ALT to zero to force the copter to land instead of hanging out at 2m and causing the auto test to time out 2012-08-14 12:03:32 +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
Andrew Tridgell 6b12ad79ff APM: tweak Rascal autotest settings 2012-08-09 10:03:52 +10:00
wiseman af0d2de2ed Use MAVPROXY_CMD instead of MAVPROXY 2012-07-23 21:30:50 -07:00
wiseman 05de9e425c Added run_sim_mission. 2012-07-23 21:29:24 -07:00
Andreas M. Antonopoulos c0f8f6251b param_parser: input validation bug fix 2012-07-16 23:37:13 -07:00
Andrew Tridgell ba205d8ff5 autotest: create kmz files on timeout 2012-07-10 09:13:16 +10:00
Andreas M. Antonopoulos de64c05f8e param_parser: cosmetic
Arduplane: doc fixes
2012-07-08 21:45:26 -07: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 75772b83cf autotest: don't set a negative max pitch limit!
this didn't do well in the simulator :-)
2012-07-05 17:59:37 +10:00
Andrew Tridgell 3a792abb4d autotest: tweak the Rascal tuning 2012-07-05 17:59:37 +10:00
Andreas M. Antonopoulos 186a3e4f6a param_parser - better tolerance for missing parameters 2012-07-04 23:01:52 -07:00
Andreas M. Antonopoulos 2010d3aaa3 parameter metadata parser: better values formatting 2012-07-04 21:27:58 -07:00
Andreas M. Antonopoulos 425ef33b59 parameter metadata parser: escape wiki characters 2012-07-04 20:55:55 -07:00
Andrew Tridgell 60caaa4b04 MAVLink: remove MAVLink 0.9 protocol support
this simplifies the code a lot. We're not going back to 1.0
2012-07-05 13:00:46 +10:00
Andreas M. Antonopoulos 9f6fb89392 parameter metadata parser, display improvements 2012-07-04 17:58:09 -07:00
Andreas M. Antonopoulos 453c1677b5 parameter metadata -> wiki, bug fixes 2012-07-04 17:42:38 -07:00
Andreas M. Antonopoulos c4b59a89da parameter metadata parser and wiki generator 2012-07-04 16:44:53 -07:00
Andrew Tridgell c8f5aeb7ba autotest: change loiter heading accuracy to 10 2012-07-04 15:59:35 +10:00
Andrew Tridgell 61f325713e SITL: fixed the normalisation of the DCM matrix in the multicopter sim 2012-07-04 15:59:15 +10:00
Andrew Tridgell 82e09ce53a SITL: don't enable wind until we are off the ground
this makes it possible to test with much larger wind speeds, without
the sim crashing due to the wind flipping us over on the runway
2012-07-03 10:19:20 +10:00
Pat Hickey d0453c5085 Autotest: use mktemp instead of tempfile
* tempfile has been deprecated in favor of mktemp on debian, not available
  on fedora
2012-06-27 14:28:22 -07:00
Andrew Tridgell 5cd5f40f09 autotest: switch to full accel modelling in multicopter simulation
the new AHRS code should allow for centripetal compensation in
multicopters
2012-06-27 16:01:50 +10:00
Andrew Tridgell 28d62416fe autotest: show logs on timeout 2012-06-16 06:47:55 +10:00
Andrew Tridgell b2f8fad0a3 autotest: try again to get paths right! 2012-06-15 18:44:00 +10:00
Andrew Tridgell 04a2a0eb46 autotest: added --timeout option
try to ensure we end up with a timeout display on the website
2012-06-15 16:53:51 +10:00
Andrew Tridgell 92cb3cdf6f sitl: fixed fgFDM path 2012-06-14 15:18:58 +10:00
Andrew Tridgell ff9743995d autotest: fixed lat/lon update for multicopter sim
this makes waypoint tracking more accurate
2012-06-05 11:18:52 +10:00
Andrew Tridgell 47d5f31fc2 removed copy of pymavlink code
use upstream code instead
2012-06-04 17:51:12 +10:00
Andrew Tridgell 7589de689b mavlink: added auto-detection of mavlink protocol version 2012-06-04 17:51:12 +10:00
Andrew Tridgell 70669434a2 autotest: wait for VFR_HUD to be non-zero on startup 2012-06-04 14:55:40 +10:00
Andrew Tridgell 076d1616ba autotest: default to mavlink10 2012-06-04 13:19:21 +10:00
Andrew Tridgell 6945be0ca8 autotest: default to not using gdb on ArduPlane.elf 2012-05-22 20:02:23 +10:00
Andrew Tridgell 46ee92441e HILTest is not needed any more 2012-05-09 13:47:44 +10:00
Andrew Tridgell 34af851b20 autotest: forced loiter via 2nd method 2012-05-03 15:40:13 +10: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
Andrew Tridgell b73732c361 autotest: removed unused files 2012-04-27 15:15:53 +10:00
Andrew Tridgell 95bd51ab10 autotest: updated pymavlink to latest 2012-04-27 15:15:52 +10:00
Andrew Tridgell 0e54613632 sitl: added sim_arducopter10.sh
useful for testing
2012-04-24 22:24:58 +10:00
Andrew Tridgell 9d4b37ecac sitl: we don't need mavlink in copter sim 2012-04-24 22:24:58 +10:00
Andrew Tridgell 1478191ecf sitl: make it easy to run sitl for MAVLink 1.0 2012-04-20 10:09:21 +10:00
Andrew Tridgell d60126fc1f autotest: fixed overshoot due to low resolution log timing 2012-04-03 10:43:05 +10:00
Andrew Tridgell abd33dd914 autotest: fixed order of startup messages 2012-04-03 09:53:26 +10:00
Andrew Tridgell 3b3f9d8b17 autotest: use the automatic declination code in autotest 2012-03-30 14:25:27 +11:00
Andrew Tridgell c084a72723 pysim: ensure Vector3() uses floats 2012-03-29 12:39:53 +11:00
Andrew Tridgell 0f6e7a1449 pysim: implement partial 3D acceleration support
The simulator flies very badly when using the full acceleration
code. I don't yet know if this is a bug in the simulation or a problem
with AHRS not handling acceleration for multicopters.

For now set the acceleration to be half a 'pure gravity' acceleration
and half from the full 3D calculation.
2012-03-23 16:48:52 +11:00