Commit Graph

49 Commits

Author SHA1 Message Date
Andrew Tridgell ca3fa1a469 autotest: first version of a rover simulator in python 2012-11-28 00:11:54 +11:00
Andrew Tridgell e9f129786a pysim: fixed testwind script 2012-10-31 10:26:48 +11:00
Lee Pike b084d3d2b0 Pysim: add effects of wind by calcualting a drag vector (force). 2012-10-31 10:15:32 +11:00
Andrew Tridgell b8decb4fd7 SITL: added SIM_WIND_* parameters
this allows control of the simulated wind during a flight
2012-08-25 17:49:26 +10:00
wiseman a36a9e86b9 Use MAVPROXY_CMD instead of MAVPROXY 2012-07-23 21:30:50 -07:00
wiseman da2f3d7f6d Added run_sim_mission. 2012-07-23 21:29:24 -07:00
Andrew Tridgell fe54329de2 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
Andrew Tridgell b3c9cdb353 SITL: fixed the normalisation of the DCM matrix in the multicopter sim 2012-07-04 15:59:15 +10:00
Andrew Tridgell 624fdda89c 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 9ef4595ad3 autotest: fixed lat/lon update for multicopter sim
this makes waypoint tracking more accurate
2012-06-05 11:18:52 +10:00
Andrew Tridgell 83c1b7fe3b removed copy of pymavlink code
use upstream code instead
2012-06-04 17:51:12 +10:00
Andrew Tridgell 8134c9a883 autotest: fixes for MAVLink 1.0 in autotest 2012-04-27 15:15:53 +10:00
Andrew Tridgell 766755aa9c autotest: removed unused files 2012-04-27 15:15:53 +10:00
Andrew Tridgell cbecb3eff9 sitl: we don't need mavlink in copter sim 2012-04-24 22:24:58 +10:00
Andrew Tridgell dd3218c913 pysim: ensure Vector3() uses floats 2012-03-29 12:39:53 +11:00
Andrew Tridgell 0b94b2e470 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
Andrew Tridgell c020030620 pysim: added experimental acceleration support 2012-03-23 16:48:52 +11:00
Andrew Tridgell ccfac19cef pysim: update the multicopter simulator with correct acceleration
this re-works the multicopter simulator in terms of rotation matrices,
and adds full acceleration support, which means it will include linear
acceleration affects and centripetal acceleration
2012-03-22 23:00:45 +11:00
Andrew Tridgell 21c8351f2f pysim: added rotmat.py
this is a python library for rotation matrices, following the
conventions in AP_Math
2012-03-22 23:00:45 +11:00
Andrew Tridgell 5652ccd3c6 autotest: fixed the calculation of the acceleration due to gravity
this fixes the attitude calculation for the multicopter simulation
2012-02-18 19:27:15 +11:00
Jason Short 9cbfcac802 Made timer unsigned 2012-01-10 23:42:26 -08:00
Andrew Tridgell 9833636500 pysim: support octax 2012-01-04 22:15:17 +11:00
Andrew Tridgell b9b0aa4a81 autotest: change to an octa frame for autotest
this will be a useful experiment
2012-01-04 22:03:37 +11:00
Andrew Tridgell 5317e47e2d pysim: added more frame types 2012-01-04 21:45:58 +11:00
Andrew Tridgell e4ae5ffd0e pysim: show frame type at startup 2012-01-04 19:34:11 +11:00
Andrew Tridgell f395e8e36d rename sim_quad.py to sim_multicopter.py 2012-01-04 19:14:42 +11:00
Andrew Tridgell bc49573b4c pysim: added --frame option 2012-01-04 19:13:47 +11:00
Andrew Tridgell f4d7e108fa pysim: generalise the quadcopter code for multicopters
this allows for arbitrary multicopter motor arrangements
2012-01-04 19:13:15 +11:00
Jason Short 22172820a8 Made wind not reverse itself to be more natural 2011-12-29 23:02:02 -08:00
Andrew Tridgell 9f089f3b0e added a copy of fdpexpect 2011-12-23 12:20:58 +11:00
Andrew Tridgell e88a8e2519 more errno fixes for MacOS 2011-12-23 12:07:32 +11:00
Andrew Tridgell aaa0214ded autotest: fgrate option has been removed from mavproxy 2011-12-13 21:34:53 +11:00
Andrew Tridgell be3b9e3480 autotest: added wind support to ArduPlane simulation 2011-12-13 15:28:03 +11:00
Andrew Tridgell 5a2827e64b autotest: changed default sim_quad rate to 400Hz (matches autotest
script)
2011-12-13 13:44:53 +11:00
Andrew Tridgell f5a54f3da8 autotest: use 'enter 3 times' method to get into CLI
this doesn't depend on build options
2011-12-13 10:36:52 +11:00
Andrew Tridgell 0e75b3b140 autotest: added a test script for wind generation
this makes it easier to experiment
2011-12-13 10:36:52 +11:00
Andrew Tridgell 9ef929e88e autotest: added --wind option to sim_quad
this is in the form of speed,direction,turbulance
2011-12-13 10:36:52 +11:00
Andrew Tridgell 5fb01d1cdd autotest: added a wind generation class 2011-12-13 10:36:52 +11:00
Andrew Tridgell c1a23ef150 pysim: added rotational resistance 2011-12-12 22:08:10 +11:00
Andrew Tridgell 6121942d42 pysim: fixed the accelerometer calculation in the quad simulator
this was causing severe drift in the attitude calculation
2011-12-12 21:57:09 +11:00
Andrew Tridgell 880f551efc autotest: fixed body/earth frames in sim_quad physics model
Jason, can you have a look at this?
2011-12-05 17:45:23 +11:00
Andrew Tridgell 9b3ce4a96a autotest: estimate the cost of sleeping for more accurate frame rate
this gets us quite close to 1kHz simulation
2011-12-03 07:38:51 +11:00
Andrew Tridgell 1192e2f11c autotest: run the quad simulation at a much higher rate
it now defaults to 1kHz
2011-12-03 07:24:58 +11:00
Andrew Tridgell 9dd2021ec8 autotest: support all 11 PWM output channels
this will allow for more complex aircraft
2011-12-02 22:45:48 +11:00
Andrew Tridgell a0baf71322 autotest: switch to big-endian metric packets internally
now that all the sim code is internal to the APM git repo, we can
choose saner packet formats
2011-12-02 22:12:58 +11:00
Andrew Tridgell f6eb5f9ba1 autotest: don't die if FG isn't running 2011-12-02 17:37:55 +11:00
Andrew Tridgell a2cc6b2ec1 autotest: adapt test suite to new simulation framework 2011-12-02 17:37:55 +11:00
Andrew Tridgell 113b496924 autotest: combined python utility code 2011-12-02 17:37:54 +11:00
Andrew Tridgell 9a508f4f69 autotest: imported python quadcopter model as sim_quad.py
this allows us to keep it in sync with the main SITL code
2011-12-02 17:37:54 +11:00