Commit Graph

247 Commits

Author SHA1 Message Date
Lee Pike a141e16729 Pysim: add effects of wind by calcualting a drag vector (force). 2012-10-31 10:15:32 +11: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
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
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
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 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 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 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 9d4b37ecac sitl: we don't need mavlink in copter sim 2012-04-24 22:24:58 +10: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
Andrew Tridgell f1acdb13c2 pysim: added experimental acceleration support 2012-03-23 16:48:52 +11:00
Andrew Tridgell 5f3e2cf98a 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 4407f6b8ca 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 ffa3330f93 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 351be7c305 Made timer unsigned 2012-01-10 23:42:26 -08:00
Andrew Tridgell 2a3d4efb38 pysim: support octax 2012-01-04 22:15:17 +11: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 9df96d0e07 pysim: added more frame types 2012-01-04 21:45:58 +11:00
Andrew Tridgell 45b4e07776 pysim: show frame type at startup 2012-01-04 19:34:11 +11:00
Andrew Tridgell ed5c9d4c47 rename sim_quad.py to sim_multicopter.py 2012-01-04 19:14:42 +11:00
Andrew Tridgell ba9423f7de pysim: added --frame option 2012-01-04 19:13:47 +11:00
Andrew Tridgell 1670f1f65b pysim: generalise the quadcopter code for multicopters
this allows for arbitrary multicopter motor arrangements
2012-01-04 19:13:15 +11:00
Jason Short a29aa020ff Made wind not reverse itself to be more natural 2011-12-29 23:02:02 -08:00
Andrew Tridgell d626fcb52f added a copy of fdpexpect 2011-12-23 12:20:58 +11:00
Andrew Tridgell 30425063d8 more errno fixes for MacOS 2011-12-23 12:07:32 +11:00
Andrew Tridgell eac97725f5 autotest: fgrate option has been removed from mavproxy 2011-12-13 21:34:53 +11:00
Andrew Tridgell ad6c90c3b9 autotest: added wind support to ArduPlane simulation 2011-12-13 15:28:03 +11:00
Andrew Tridgell 6520c7be1b autotest: changed default sim_quad rate to 400Hz (matches autotest
script)
2011-12-13 13:44:53 +11:00
Andrew Tridgell 2c0e4c1c02 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 da43b85422 autotest: added a test script for wind generation
this makes it easier to experiment
2011-12-13 10:36:52 +11:00
Andrew Tridgell 228d1620d2 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 a58e81469f autotest: added a wind generation class 2011-12-13 10:36:52 +11:00
Andrew Tridgell 7301a8bddd pysim: added rotational resistance 2011-12-12 22:08:10 +11:00
Andrew Tridgell 420bb9cc75 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 39d0d7ed49 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 dedbfc8cca 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 5be56a824d 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 f96a48e42b autotest: support all 11 PWM output channels
this will allow for more complex aircraft
2011-12-02 22:45:48 +11:00
Andrew Tridgell 66d65121cc 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 1878db2013 autotest: don't die if FG isn't running 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
Andrew Tridgell 65699a2f2f autotest: combined python utility code 2011-12-02 17:37:54 +11:00
Andrew Tridgell 0887804096 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