Andrew Tridgell
ed691fc465
SITL: added SITL class for controlling simulation
...
this holds mavlink settable parameters for controlling sensor noise
levels
13 years ago
Andrew Tridgell
a6543f1e84
SITL: removed an unused variable
13 years ago
Andrew Tridgell
27761737ce
SITL: fixed GPS heading in simulated UBlox
...
longitude scale does not apply to velocity->heading conversions
13 years ago
Andrew Tridgell
b811653800
SITL: changes UBlox simulation to 5Hz
...
this matches the real UBlox driver
13 years ago
Andrew Tridgell
cf4e56457b
SITL: map() is a C++ function, so needs to be in C++ part of the header
...
this fixes the ACM build
13 years ago
Andrew Tridgell
ec1abbf987
SITL: fixed SITL build with mavlink10
13 years ago
rmackay9
173ae33627
ArduCopter Desktop Build: added definition of "map" to wiring.h and included WMath.cpp to fix SITL build failures.
...
All real work on this issue done by Michael Oborne.
13 years ago
Andrew Tridgell
ddfa06e857
SITL: fixed ChipErase()
...
the loop never completed
13 years ago
Andrew Tridgell
6e444f6b64
SITL: fixed build with new ChipErase() call
13 years ago
Andrew Tridgell
89041c6996
sitl: support MAVLink 1.0 builds
13 years ago
Andrew Tridgell
10c35e3769
SITL: add magnetic field noise to the simulated compass
13 years ago
Andrew Tridgell
f4c1b6a3c6
SITL: ensure we don't run the sitl timer twice
...
this caused problems with random()
13 years ago
Andrew Tridgell
90c3d230d9
SITL: improve the simulated compass
...
this implements a much more accurate model of a compass using matrix
rotations, instead of trying to calculate components directly
13 years ago
Michael Oborne
bae5f98666
sitl cygwin mods
13 years ago
Andrew Tridgell
b337441ec5
SITL: added pgm_read_byte_far()
13 years ago
Andrew Tridgell
ba8e764349
SITL: lower the noise and drift levels for general autotest usage
13 years ago
Andrew Tridgell
c8189c80d4
SITL: cleanup the gyro drift calculations
...
use units that are more easily understood
13 years ago
Andrew Tridgell
dffb435aac
SITL: make the yaw match the APM conventions
13 years ago
Andrew Tridgell
2673614f6d
SITL: fixed the pwm output on startup
13 years ago
Andrew Tridgell
ccada2e9c2
SITL: avoid parent pid code on cygwin
...
this causes problems on windows
13 years ago
Andrew Tridgell
3666476bcb
SITL: prevent nested timer interrupts
13 years ago
Andrew Tridgell
47ddd4dfdd
SITL: disable interrupts during register updates
...
this may prevent bogus mode channel reads
13 years ago
Andrew Tridgell
a791224d07
SITL: make SITL not depend on DCM
13 years ago
Andrew Tridgell
fd2a24f8ed
SITL: reduce the simulated compass offsets
...
this was causing us problems in getting DCM right
13 years ago
Andrew Tridgell
bddc6ba241
SITL: separate out drift speed and drift level
13 years ago
Andrew Tridgell
25cad09746
SITL: added a drift_level multiplier
...
this makes it easier to experiment with different gyro drift levels
13 years ago
Andrew Tridgell
ae51173656
SITL: fixed delay() to account for signal interrupions
...
when a timer went off we stopped the delay() code
13 years ago
Andrew Tridgell
8424609924
SITL: push noise level to 2.0 for DCM testing
13 years ago
Andrew Tridgell
772c30ba86
SITL: added sitl_simstate_send()
...
used to report simulator state in logs
13 years ago
Andrew Tridgell
73dafe537e
SITL: use the new noise model
...
use the new noise model at a low level for master until we sort out
DCM noise handling
13 years ago
Andrew Tridgell
37275d229d
SITL: implement cli()/sei() properly for desktop build
...
this disables simulated hardware interrupts during critical sections
13 years ago
Andrew Tridgell
39797c6f33
SITL: simulate noise on each ADC channel separately
...
scale the noise based on the period of the motors
13 years ago
Andrew Tridgell
efe5c0142c
SITL: raise the ADC noise level to 8 bits when flying
...
this is about the level of noise of a aircraft that has a lot of
vibration
13 years ago
Andrew Tridgell
d6bfceef7c
SITL: added -C option to desktop mode
...
this allows running APM to stdout, which is useful for test sketches
13 years ago
Andrew Tridgell
9793d04ed1
SITL: increase the amount of noise in the simulated ADC
...
this increases the noise to 2 bits, which actually can have the effect
of improving accuracy, as it leads to better averaging
13 years ago
Andrew Tridgell
a48a118128
SITL: adjust the SITL compass code to have saner z values
13 years ago
Andrew Tridgell
4398171374
SITL: catch floating point errors
...
if we get a FPE then log a message and exit
13 years ago
Andrew Tridgell
43c56be70c
SITL: add some magnetometer offsets
...
this ensures the compass null_offset algorithm has some work to do in
autotest
13 years ago
Andrew Tridgell
f95d7cadc5
fixed SITL GPS heading to be 0..360
13 years ago
Andrew Tridgell
d658bc6f9d
desktop: more progmem string functions
13 years ago
Andrew Tridgell
49cf409c23
desktop: floating point precision changes from Justin Beech
13 years ago
Jason Short
351be7c305
Made timer unsigned
13 years ago
Andrew Tridgell
ca39fc8b47
sitl: added build targets for different ACM frames
13 years ago
Andrew Tridgell
5f38663d44
desktop: exclude I2C library
13 years ago
Andrew Tridgell
5e4f66e525
DataFlash: moved high level logging logic to library
...
this moves out all the high level logic from ArduPlane/ArduCopter to
the library. It also adds a "config page", as the last page in the
flash. This is used to check if the flash needs erasing. We only erase
now if the DF_LOGGING_FORMAT has changed.
This patch also adds a public CardInserted() method, which is used to
disable logging on APM2 if a dataflash card is not inserted
13 years ago
Andrew Tridgell
9bb0bd0341
desktop: added attachInterrupt() support
13 years ago
Andrew Tridgell
a39a470d75
desktop: fixed for new DataFlash inheritance
13 years ago
Andrew Tridgell
f6f808357c
removed AperiodicProcess code
...
this code was never being used, and was more complex than it was
worth.
13 years ago
Andrew Tridgell
e187ff149f
desktop: fixed type of dword eeprom read
13 years ago
Andrew Tridgell
90c6bad814
autotest: make magnetic field point down
13 years ago