Andrew Tridgell
a620665772
autotest: first version of a rover simulator in python
12 years ago
Andrew Tridgell
1ce3876d24
pysim: fixed testwind script
12 years ago
Lee Pike
a141e16729
Pysim: add effects of wind by calcualting a drag vector (force).
12 years ago
Andrew Tridgell
697b2074a5
SITL: added SIM_WIND_* parameters
...
this allows control of the simulated wind during a flight
13 years ago
wiseman
af0d2de2ed
Use MAVPROXY_CMD instead of MAVPROXY
13 years ago
wiseman
05de9e425c
Added run_sim_mission.
13 years ago
Andrew Tridgell
60caaa4b04
MAVLink: remove MAVLink 0.9 protocol support
...
this simplifies the code a lot. We're not going back to 1.0
13 years ago
Andrew Tridgell
61f325713e
SITL: fixed the normalisation of the DCM matrix in the multicopter sim
13 years ago
Andrew Tridgell
5cd5f40f09
autotest: switch to full accel modelling in multicopter simulation
...
the new AHRS code should allow for centripetal compensation in
multicopters
13 years ago
Andrew Tridgell
ff9743995d
autotest: fixed lat/lon update for multicopter sim
...
this makes waypoint tracking more accurate
13 years ago
Andrew Tridgell
47d5f31fc2
removed copy of pymavlink code
...
use upstream code instead
13 years ago
Andrew Tridgell
67afdc7485
autotest: fixes for MAVLink 1.0 in autotest
13 years ago
Andrew Tridgell
b73732c361
autotest: removed unused files
13 years ago
Andrew Tridgell
9d4b37ecac
sitl: we don't need mavlink in copter sim
13 years ago
Andrew Tridgell
c084a72723
pysim: ensure Vector3() uses floats
13 years ago
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.
13 years ago
Andrew Tridgell
f1acdb13c2
pysim: added experimental acceleration support
13 years ago
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
13 years ago
Andrew Tridgell
4407f6b8ca
pysim: added rotmat.py
...
this is a python library for rotation matrices, following the
conventions in AP_Math
13 years ago
Andrew Tridgell
ffa3330f93
autotest: fixed the calculation of the acceleration due to gravity
...
this fixes the attitude calculation for the multicopter simulation
13 years ago
Jason Short
351be7c305
Made timer unsigned
13 years ago
Andrew Tridgell
2a3d4efb38
pysim: support octax
13 years ago
Andrew Tridgell
64b541037e
autotest: change to an octa frame for autotest
...
this will be a useful experiment
13 years ago
Andrew Tridgell
9df96d0e07
pysim: added more frame types
13 years ago
Andrew Tridgell
45b4e07776
pysim: show frame type at startup
13 years ago
Andrew Tridgell
ed5c9d4c47
rename sim_quad.py to sim_multicopter.py
13 years ago
Andrew Tridgell
ba9423f7de
pysim: added --frame option
13 years ago
Andrew Tridgell
1670f1f65b
pysim: generalise the quadcopter code for multicopters
...
this allows for arbitrary multicopter motor arrangements
13 years ago
Jason Short
a29aa020ff
Made wind not reverse itself to be more natural
13 years ago
Andrew Tridgell
d626fcb52f
added a copy of fdpexpect
13 years ago
Andrew Tridgell
30425063d8
more errno fixes for MacOS
13 years ago
Andrew Tridgell
eac97725f5
autotest: fgrate option has been removed from mavproxy
13 years ago
Andrew Tridgell
ad6c90c3b9
autotest: added wind support to ArduPlane simulation
13 years ago
Andrew Tridgell
6520c7be1b
autotest: changed default sim_quad rate to 400Hz (matches autotest
...
script)
13 years ago
Andrew Tridgell
2c0e4c1c02
autotest: use 'enter 3 times' method to get into CLI
...
this doesn't depend on build options
13 years ago
Andrew Tridgell
da43b85422
autotest: added a test script for wind generation
...
this makes it easier to experiment
13 years ago
Andrew Tridgell
228d1620d2
autotest: added --wind option to sim_quad
...
this is in the form of speed,direction,turbulance
13 years ago
Andrew Tridgell
a58e81469f
autotest: added a wind generation class
13 years ago
Andrew Tridgell
7301a8bddd
pysim: added rotational resistance
13 years ago
Andrew Tridgell
420bb9cc75
pysim: fixed the accelerometer calculation in the quad simulator
...
this was causing severe drift in the attitude calculation
13 years ago
Andrew Tridgell
39d0d7ed49
autotest: fixed body/earth frames in sim_quad physics model
...
Jason, can you have a look at this?
13 years ago
Andrew Tridgell
dedbfc8cca
autotest: estimate the cost of sleeping for more accurate frame rate
...
this gets us quite close to 1kHz simulation
13 years ago
Andrew Tridgell
5be56a824d
autotest: run the quad simulation at a much higher rate
...
it now defaults to 1kHz
13 years ago
Andrew Tridgell
f96a48e42b
autotest: support all 11 PWM output channels
...
this will allow for more complex aircraft
13 years ago
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
13 years ago
Andrew Tridgell
1878db2013
autotest: don't die if FG isn't running
13 years ago
Andrew Tridgell
cf7073128d
autotest: adapt test suite to new simulation framework
13 years ago
Andrew Tridgell
65699a2f2f
autotest: combined python utility code
13 years ago
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
13 years ago