Commit Graph

150 Commits

Author SHA1 Message Date
Andrew Tridgell 4f37a9363a SITL: prevent the GPS pipe filling up and delaying GPS readings 2012-11-28 14:23:53 +11:00
Andrew Tridgell 54235f7a23 SITL: cleanup RC control for rover support
added vehicle type, and setup right initial throttle
2012-11-28 09:35:42 +11:00
Andrew Tridgell 0cec543610 SITL: run the timer_scheduler() when there are no SITL packets
otherwise we can block in the ADC code
2012-11-21 22:20:14 +11:00
Andrew Tridgell a66da57d0a SITL: added in recursion check in timer_handler() 2012-11-21 09:10:10 +11:00
Andrew Tridgell 27e3f0c091 SITL: fixed a interrupt recursion bug
this can be triggered by the timer scheduler re-enabling interrupts
2012-11-20 22:29:26 +11:00
Andrew Tridgell df19bef23c SITL: don't define __AVR_ATmega2560__ on desktop build
this allows us to properly separate the desktop build in the code
2012-11-19 09:03:35 +11:00
Andrew Tridgell 0534406f6d SITL: added SREG declaration 2012-11-19 08:42:36 +11:00
Andrew Tridgell a523c319ce SITL: fixed build with new sonar driver 2012-11-13 15:12:38 +11:00
Andrew Tridgell c14788240f SITL: set a reasonable number of satellites in simulated uBlox 2012-11-06 14:26:49 +11:00
Andrew Tridgell 44f49aafb6 Desktop: fixed build with recent SPI changes 2012-10-19 11:21:42 +11:00
rmackay9 96470e2d49 Desktop: fix build error 2012-10-18 19:33:31 +09:00
rmackay9 4055066779 Desktop: add AP_Semaphore to list of includes for DataFlash_APM1.cpp 2012-10-18 19:25:53 +09:00
Andrew Tridgell 2bc1d4a5ae SITL: prevent a fd leak in GPS code 2012-09-17 14:45:48 +10:00
Andrew Tridgell f5efb25e62 APM: added wdt.h for SITL build of APM 2012-09-10 15:52:53 +10:00
Andrew Tridgell 39a4c6e861 SITL: use AP_Declination code to get right compass dec for autotest 2012-08-29 13:33:01 +10:00
Andrew Tridgell aaa4e64238 SITL: zero wind for first 15s
this allows for airspeed calibration on startup
2012-08-28 20:18:23 +10: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
Andrew Tridgell 1ccff12b54 SITL: added SIM_ENGINE_MUL
this allows for simulated engine failures
2012-08-17 14:22:08 +10:00
Andrew Tridgell faeb206239 SITL: make abs() 16 bit in SITL
this will help us find abs() bugs in autotest
2012-08-16 15:18:17 +10:00
Andrew Tridgell eeaa855b03 SITL: fixed deletion of eeprom.bin
with the new AP_Param constructor order, we need to erase rather than
unlink the eeprom
2012-08-08 18:01:06 +10:00
Andrew Tridgell 6245592447 SITL: added pgm_read_dword() and pgm_read_float() 2012-08-08 12:11:57 +10:00
Andrew Tridgell 5f38669666 SITL: run the HIL barometer at 80Hz to match APM2 2012-07-05 16:29:21 +10:00
Andrew Tridgell ce3f8be6c7 SITL: add some minimal noise when motors are off
this actually improves the gyro calibration
2012-07-05 13:00:46 +10: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 dc6d70bc15 SITL: added SIM_GPS_DELAY parameter
this allows a delay to be added to the gps data to test the impact on
AHRS/DCM
2012-07-04 21:05:22 +10:00
Andrew Tridgell 597170afdc DataFlash: fixed SITL build 2012-07-04 13:44:01 +10:00
Andrew Tridgell 0341e0e5f0 SITL: added support for new analog source
removed analogRead() to prevent people using it
2012-07-01 15:01:05 +10:00
Andrew Tridgell 117bae9585 SITL: added SITL class for controlling simulation
this holds mavlink settable parameters for controlling sensor noise
levels
2012-06-29 15:10:51 +10:00
Andrew Tridgell 70bfacc350 SITL: removed an unused variable 2012-06-27 16:01:50 +10:00
Andrew Tridgell 426006d98f SITL: fixed GPS heading in simulated UBlox
longitude scale does not apply to velocity->heading conversions
2012-06-27 16:01:50 +10:00
Andrew Tridgell 20c1baf585 SITL: changes UBlox simulation to 5Hz
this matches the real UBlox driver
2012-06-27 16:01:50 +10:00
Andrew Tridgell f347572fc2 SITL: map() is a C++ function, so needs to be in C++ part of the header
this fixes the ACM build
2012-06-08 17:09:23 +10:00
Andrew Tridgell 34234b7003 SITL: fixed SITL build with mavlink10 2012-06-04 13:14:52 +10:00
rmackay9 080c5184d5 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.
2012-06-02 17:46:00 +09:00
Andrew Tridgell 734dcebb2a SITL: fixed ChipErase()
the loop never completed
2012-05-23 21:15:45 +10:00
Andrew Tridgell 5e0d937e50 SITL: fixed build with new ChipErase() call 2012-05-23 17:33:33 +10:00
Andrew Tridgell 532ac607b2 sitl: support MAVLink 1.0 builds 2012-04-24 22:24:58 +10:00
Andrew Tridgell 972bdcfa39 SITL: add magnetic field noise to the simulated compass 2012-03-28 20:55:27 +11:00
Andrew Tridgell dc127fe749 SITL: ensure we don't run the sitl timer twice
this caused problems with random()
2012-03-28 20:55:27 +11:00
Andrew Tridgell e93b31c76b 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
2012-03-21 10:41:55 +11:00
Michael Oborne 42960efe80 sitl cygwin mods 2012-03-15 08:16:50 +08:00
Andrew Tridgell 42a29169f0 SITL: added pgm_read_byte_far() 2012-03-11 20:59:47 +11:00
Andrew Tridgell a30b03cd0a SITL: lower the noise and drift levels for general autotest usage 2012-03-10 10:34:34 +11:00
Andrew Tridgell 1002bbcbfe SITL: cleanup the gyro drift calculations
use units that are more easily understood
2012-03-10 10:34:34 +11:00
Andrew Tridgell 97faa47ba6 SITL: make the yaw match the APM conventions 2012-03-10 10:34:33 +11:00
Andrew Tridgell d1713bd2fb SITL: fixed the pwm output on startup 2012-03-10 10:34:33 +11:00
Andrew Tridgell b273df0725 SITL: avoid parent pid code on cygwin
this causes problems on windows
2012-03-10 10:34:31 +11:00
Andrew Tridgell e1ff9a641b SITL: prevent nested timer interrupts 2012-03-10 10:34:31 +11:00
Andrew Tridgell 76736792f8 SITL: disable interrupts during register updates
this may prevent bogus mode channel reads
2012-03-10 10:34:30 +11:00
Andrew Tridgell 353f9e613f SITL: make SITL not depend on DCM 2012-03-10 10:34:28 +11:00