Commit Graph

693 Commits

Author SHA1 Message Date
Andrew Tridgell
320b69c375 autotest: make sim_vehicle.sh work better on windows 2015-05-25 16:50:27 +10:00
Andrew Tridgell
532839d7dd autotest: remove old python simulators 2015-05-25 12:22:28 +10:00
Andrew Tridgell
9f09ac64cf autotest: enable internal MAVLink gimbal
and add -B option to help debugging
2015-05-25 12:20:27 +10:00
Andrew Tridgell
0d20167294 autotest: removed earth-frame rates usage
work only with rates in body frame
2015-05-25 08:42:21 +10:00
Andrew Tridgell
8f5c663463 autotest: show -M option in usage for sim_vehicle.sh 2015-05-24 15:24:02 +10:00
Andrew Tridgell
90aa834102 autotest: use internal simulator backends when possible 2015-05-23 17:14:52 +10:00
Andrew Tridgell
2392481945 autotest: remove old ROS runsim code 2015-05-22 16:09:58 +10:00
Andrew Tridgell
d734e700fc autotest: support last_letter in sim_vehicle.sh 2015-05-22 16:07:44 +10:00
Andrew Tridgell
088fb95192 autotest: make last_letter run at 500Hz 2015-05-22 16:07:43 +10:00
Andrew Tridgell
a661187ac0 autotest: added some debug to last_letter startup 2015-05-21 21:17:38 +10:00
Andrew Tridgell
4c96ec26e5 autotest: fixed the -e option for sim_vehicle.sh 2015-05-21 21:16:32 +10:00
Andrew Tridgell
dfc7878b14 autotest: fixed cpp files for parameter parsing 2015-05-21 11:42:32 +10:00
Andrew Tridgell
64ace3c0c1 autotest: removed 'make configure' 2015-05-21 10:54:19 +10:00
Andrew Tridgell
dd7c42be67 autotest: setup offsets for 2 SITL compasses 2015-05-16 07:07:35 +10:00
Randy Mackay
c86a396ca0 SITL: allow easier slowing of copter test 2015-05-13 22:40:03 +09:00
Lucas De Marchi
35b550f03d autotest: fix usage of tabs instead of space
Python 3 is stricter with regard to using tabs instead of space (PEP8):
	Spaces are the preferred indentation method.

	Tabs should be used solely to remain consistent with code that
	is already indented with tabs.

	Python 3 disallows mixing the use of tabs and spaces for
	indentation.

	Python 2 code indented with a mixture of tabs and spaces should
	be converted to using spaces exclusively.
2015-05-13 20:51:37 +09:00
Randy Mackay
2ac30a53ad SITL: remove copters 3rd accel scaling from params 2015-05-12 16:43:02 +09:00
Randy Mackay
2ad5011177 SITL: slow down autotest for slow VMs 2015-05-12 16:31:32 +09:00
Andrew Tridgell
fb245cd77b autotest: removed unmaintained jenkins autotest code
this can be revived later if there is interest
2015-05-11 11:27:48 +10:00
Andrew Tridgell
68515d0324 autotest: fixed CopterAVC test 2015-05-11 11:26:54 +10:00
Andrew Tridgell
044a09425b autotest: cope with environments with no $DISPLAY 2015-05-11 09:19:54 +10:00
Andrew Tridgell
068b862888 autotest: use buildlogs directory consistently 2015-05-11 08:37:49 +10:00
Andrew Tridgell
aaff670ec4 autotest: use builtin JSBSim support for plane testing 2015-05-11 08:06:31 +10:00
Andrew Tridgell
ebf358138f autotest: use internal sim code for JSBSim 2015-05-10 21:58:05 +10:00
Andrew Tridgell
6b668c08dc autotest: use internal rover sim in sim_vehicle.sh 2015-05-09 21:22:02 +10:00
Fabio Kruger
d585d5691d autotest: Enables copy to clipboard from xterm shells. Useful to copy gdb output. 2015-05-08 16:42:43 +10:00
Ramón Roche
a2a0d834aa autotest: provide a custom location to set as sim home
this helps to set a custom home location on sim, if the location is
outside of the locations in Tools/autotest/locations.txt

Usage:

sim_vehicle.sh -l 37.872991,-122.302348,20,260

The location needs to be in the same format as the locations defined in
locations.txt inside autotest
2015-05-08 13:51:37 +10:00
Michael Day
a17f53254c autotest: Separated McMillan into McMillan and McMillan_East in locations.txt 2015-05-08 09:18:28 +09:00
Andrew Tridgell
c27b605b86 autotest: fixed sim_vehicle -w for plane 2015-05-07 17:28:00 +10:00
Andrew Tridgell
98df4fe60e autotest: make sim command clearer in logs 2015-05-06 10:10:13 +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
209896afc7 autotest: use builtin rover model for autotest 2015-05-05 16:56:39 +10:00
Andrew Tridgell
8c8c910ad0 autotest: removed the old AVR/2560 code in autotest
now checked with build_all
2015-05-05 10:39:31 +10:00
Andrew Tridgell
3d14b47d8b autotest: try to run at 10x, not 100x speed
if we run too fast mavproxy can't keep up
2015-05-05 09:45:59 +10:00
Andrew Tridgell
5d8a897330 autotest: use right sim backend for different vehicles 2015-05-05 09:45:59 +10:00
Andrew Tridgell
9204cab7d5 autotest: fixed rover test 2015-04-30 18:45:38 +10:00
Andrew Tridgell
1cbbf1ab9e autotest: start SITL in synthetic clock mode 2015-04-30 17:19:56 +10:00
Andrew Tridgell
a262f9d31b autotest: disable the devrelease build for now
not being kept updated
2015-04-30 14:09:59 +10:00
Andrew Tridgell
3300de2c9d autotest: added some gyro and accel noise to copter sim
this noise should be kinematically consistent, so will be better for
the EKF
2015-04-21 21:33:27 +10:00
Andrew Tridgell
79f6d93dc9 autotest: change SIM_GPS_DELAY in parameters to 1
better matches uBlox
2015-04-21 21:05:07 +10:00
Andrew Tridgell
03b5305837 autotest: allow for negative col pitch in crrcsim heli
this allows for hovering upside down in acro mode
2015-04-21 20:45:30 +10:00
Andrew Tridgell
5f8c05b712 autotest: fixed extraction of defaults 2015-04-20 15:12:51 +10:00
Andrew Tridgell
76a81069c2 autotest: removed unused Rascal XML config 2015-04-20 09:09:23 +10:00
Andrew Tridgell
ffd4662ec4 autotest: convert rover sim to use sim_wrapper.py 2015-04-20 08:36:52 +10:00
Andrew Tridgell
dbeaccc3d9 autotest: auto-adjust frame rate for crrcsim 2015-04-20 08:20:50 +10:00
Andrew Tridgell
6897bfdc6b autotest: fixes for crrcsim with heli model 2015-04-20 08:05:29 +10:00
Andrew Tridgell
e9b6863b23 autotest: changed to new crrcsim FDM protocol format 2015-04-19 15:49:05 +10:00
Andrew Tridgell
59e25d4b2c autotest: added CRRCSim frame targets 2015-04-19 12:08:27 +10:00
Andrew Tridgell
1cd114e300 autotest: added initial CRRCSim backend 2015-04-19 12:08:26 +10:00
Andrew Tridgell
b5c40cad76 autotest: added gps_distance and gps_bearing
needed for CRRCSim backend
2015-04-19 12:08:26 +10:00
Andrew Tridgell
b6ff19e86c autotest: make default rate depend on model type 2015-04-19 12:08:26 +10:00
Andrew Tridgell
633e7122e7 autotest: added some lateral thrust to helicopter simulator 2015-04-19 12:08:26 +10:00
Andrew Tridgell
6b21aceed0 autotest: moved constrain() into util.py 2015-04-19 12:08:26 +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
1af6fb13ad SITL: clear glitches before running test 2015-04-15 17:33:25 +09:00
Randy Mackay
90b02a2685 SITL: shorten GPS glitch duration for copter 2015-04-15 17:33:23 +09:00
Andrew Tridgell
d4e9418ad4 autotest: rename jsmsim folder to jsb_sim
this prevents problems on windows with virtualbox. It tries to run
JSBSim as the directory 'jsbsim' and fails
2015-04-14 09:04:11 +10:00
Andrew Tridgell
82f6bb3c17 autotest: use common frame time handling 2015-04-13 10:08:12 +10:00
Andrew Tridgell
7f89f73ad1 autotest: use simulation time for all time delays 2015-04-13 10:08:12 +10:00
Andrew Tridgell
d2a188c55d autotest: run plane test at maximum speed 2015-04-13 10:08:12 +10:00
Andrew Tridgell
9fdb74e006 autotest: run JSBSim in lock step mode
this requires an updated JSBSim
2015-04-13 10:08:11 +10:00
Andrew Tridgell
e8c115b9c3 autotest: check for the right version of JSBSim 2015-04-13 09:06:21 +10:00
Andrew Tridgell
370edde286 autotest: no need for special SIGCONT handling any more 2015-04-13 06:08:35 +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
Randy Mackay
9e1502e54a SITL: add wait_sim_seconds and get_sim_time 2015-04-08 12:18:18 +09:00
Randy Mackay
2799d15427 SITL: weaken simulated copter 2015-04-08 12:18:15 +09:00
Andrew Tridgell
ee35c2aa35 autotest: update gimbal model to match new messages 2015-04-06 16:45:51 -07:00
Andrew Tridgell
a0028e3faf autotest: fixed SITL without ROS installed 2015-04-01 12:28:41 -07:00
Andrew Tridgell
70855027f3 autotest: added Iris ROS simulator support
use -f IrisRos
2015-04-01 09:14:03 -07:00
Andrew Tridgell
f82f0da2b3 autotest: support sims that do their own time control 2015-04-01 09:12:11 -07:00
Andrew Tridgell
5947160fd7 autotest: removed delta_time from update_position()
not available in some backends, and not needed
2015-04-01 09:11:25 -07:00
Andrew Tridgell
cf15b4d4fc autotest: removed use of --nowait option 2015-03-27 18:03:24 -07:00
Andrew Tridgell
16f09a6eae autotest: added -S parameter for simulation speedup 2015-03-27 13:52:59 -07:00
Andrew Tridgell
0f540fc30c autotest: ignore SIGCONT with sim_vehicle.sh -G 2015-03-26 21:23:17 -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
c338002e0d autotest: fixed defaults extraction in autotest 2015-03-25 18:57:46 -07:00
Andrew Tridgell
0ea0b51ccd autotest: start plane sim during initial parameter load
this is now needed to get timestamps from JSBSim
2015-03-24 08:06:50 -07:00
Andrew Tridgell
38e9bd5336 SITL: provide simulation timestamp from JSBSim 2015-03-24 08:06:50 -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
Georacer
9b29a9cd5d autotest: Enable SITL code to call an external ROS simulator for ArduPlane
sim_vehicle.sh code was modified to call the ROS/runsim.py file
instead of the default /jsbsim/runsim.py. ROS/runsim.py uses roslaunch
command to launch the last_letter simulator
https://github.com/Georacer/last_letter, which should be cloned
and compiled in the system.

GIT_Success.txt file was modified to depict the author's current
mindstate.

The location LGAT (Former National Airport of Athens, now an unofficial
model park) was added in the locations.txt file, since this is my
base of operations and start for my missions.
2015-03-14 09:07:52 +11:00
Andrew Tridgell
57273b41b4 autotest: removed 2560 build for copter 2015-03-13 22:58:21 +11:00
Andrew Tridgell
3c9af9e474 autotest: fixed hil mode start for sim_vehicle 2015-03-13 22:52:55 +11:00
Andrew Tridgell
d44fff71cf autotest: disable ARMING_REQUIRE in autotest 2015-03-12 12:55:08 +11:00
Andrew Tridgell
08d0ac37a3 autotest: need accel offsets for 2 IMUs now 2015-03-12 12:50:30 +11:00
Andrew Chapman
e90f5375d0 added octa-quad target for SITL, fixed octa motor order 2015-03-11 21:38:25 +09:00
Robert Lefebvre
45a12646be SITL: Initial improvements to tradheli simulation 2015-03-11 21:07:02 +09:00
Andrew Tridgell
3ca4142c91 SITL: added tradheli support
start with:

  sim_vehicle.sh -f heli --console --map
2015-02-24 16:16:05 +11:00
Andrew Tridgell
cd2898b149 autotest: removed old table of contents link in generated paramater docs 2015-02-19 15:58:30 +11:00
Randy Mackay
ae487ca88b AutoTest: remove calibrate level from copter tests 2015-02-03 14:29:11 +09:00
Andrew Tridgell
579048803c autotest: removed PX4IO firmware link 2015-02-03 09:51:42 +11:00
Paul Riseborough
fe0c434d2b Simulator: Gimbal debug output changes 2015-02-03 09:49:17 +11:00
Paul Riseborough
84029f8f7c Simulator: Bypass angle limiting to allow debugging 2015-02-03 09:49:17 +11:00
Andrew Tridgell
9bdefd0bba autotest: updates for new GIMBAL_REPORT format 2015-02-03 09:49:16 +11:00