John Boiles
bb2a6b8a22
HAL_SITL: Fixing SITL build for OSX.
12 years ago
Andrew Tridgell
2316c3bd11
AP_HAL: make storage->write_block() take a const pointer
12 years ago
Andrew Tridgell
e2eca3e273
AP_HAL_AVR_SITL: fixed indent-tabs-mode
12 years ago
Andrew Tridgell
15a84972d1
SITL: added SIM_MAG_ERROR parameter
...
this is a compass yaw error in degrees, used for testing navigation
with a bad compass
12 years ago
Randy Mackay
b914f9ba06
SITL: use SIM_ENGINE_MUL to simulate motor failure
12 years ago
Andrew Tridgell
119ffb0fc0
SITL: fixed simulated airspeed value
12 years ago
Andrew Tridgell
a5b20b4dfc
AP_HAL: removed scaling factor on analog sources
...
these are not use anymore, as voltage_average() is used instead
12 years ago
Andrew Tridgell
589b8cdb58
AP_HAL: added voltage_average_ratiometric() call to AnalogIn
...
this is for ratiometric sensors such as the 3DR airspeed sensor and
the Maxbotix analog sonar
12 years ago
Andrew Tridgell
ed918dc6bc
SITL: use PACKED attribute instead of pragma pack
12 years ago
Andrew Tridgell
4bc53acbda
SITL: support vsnprintf with %S on SITL
12 years ago
Andrew Tridgell
055da3c4b6
SITL: added SIM_GPS_NUMSATS parameter
...
this allows testing of the DCM code with less than 6 satellites
12 years ago
Andrew Tridgell
53ebcfeba5
SITL: fixed compass vector to be based on yaw not GPS heading
...
Many thanks to Randy for noticing this, and apologies for the wasted time!
12 years ago
Andrew Tridgell
5ac493908c
SITL: fixed build with new AnalogIn API
12 years ago
Andrew Tridgell
65183887e5
SITL: use new baro setHIL method
12 years ago
Andrew Tridgell
811c2ccc11
libraries: fixes for AP_Baro_HIL
12 years ago
Andrew Tridgell
a09c53a3ea
SITL: use new HIL compass API
12 years ago
Randy Mackay
bbbd90c430
AP_HAL: rename RCInput's valid() fn to valid_channels
12 years ago
Andrew Tridgell
af7381e9e0
AP_HAL: added register_io_process()
...
this is used to register a low priority IO task. Used for file IO in
DataFlash_File.cpp
12 years ago
Andrew Tridgell
0ffc7dab6b
SITL: added GPS speed down to SITL state
12 years ago
Andrew Tridgell
16270ccc47
HAL_AVR_SITL: fixed windows build
12 years ago
Andrew Tridgell
b1c27407a2
AP_HAL: added voltage_average() interface to AnalogIn
...
returns voltage in Volts, using averaged reading over samples.
Where possible this should be auto-scaled against a known reference
voltage
12 years ago
Andrew Tridgell
fb4e68f0f0
SITL: added SIM_GPS_BYTELOSS option
...
this allows testing of protocol recovery after losing bytes on the GPS
serial link
12 years ago
Andrew Tridgell
3a582663fb
SITL: improve time field handling in simulated GPS
12 years ago
Andrew Tridgell
428966160a
SITL: added support for MTK16 and MTK19 simulated GPS types
12 years ago
Andrew Tridgell
10cd466035
SITL: added simulation of the original MTK GPS
12 years ago
Andrew Tridgell
70f7cde9b8
AP_HAL: added run_debug_shell() hal.util method
12 years ago
Andrew Tridgell
37be83994f
SITL: allow motor multiplier to work on quad simulation
12 years ago
Andrew Tridgell
76092eb590
AP_HAL: remove unused peek() interface from UART drivers
...
this is a bit tricky to implement on some platforms, and is unused
anyway
12 years ago
James Bielman
4fa7bb1486
Add AVR compatibility header for missing math.h definitions.
...
- Define float versions of math functions to the double versions
on AVR (eg. #define sinf sin).
- These macros appear to be missing in older versions of avr-libs.
- Include AP_Math.h rather than math.h to get these definitions.
12 years ago
James Bielman
5631f865b2
Update floating point calculations to use floats instead of doubles.
...
- Allows use of hardware floating point on the Cortex-M4.
- Added "f" suffix to floating point literals.
- Call floating point versions of stdlib math functions.
12 years ago
Andrew Tridgell
4c4b6afaff
HAL_AVR_SITL: fixed log dump
...
the sockets need to default blocking, and only be non-blocking per
call
fixes issue #9
12 years ago
Pat Hickey
7b5153c79b
AP_HAL_AVR_SITL: main calls system_initialized
12 years ago
Pat Hickey
a228519b18
AP_HAL_AVR_SITL: Implement new Scheduler methods
12 years ago
Pat Hickey
dd27984eac
SITL: instansiate EmptyI2CDriver with EmptySemaphore
12 years ago
Andrew Tridgell
c16db01395
HAL_SITL: add pragma pack
...
may be needed on some systems
12 years ago
Pat Hickey
bc3b6fcb9f
AP_HAL_AVR_SITL: remove begin/end atomic, adjust timer procs
12 years ago
Andrew Tridgell
091c14a33e
SITL: disabled buffering on stdout
...
this fixes the ArduPlane log dump
12 years ago
Andrew Tridgell
93040e5725
AP_HAL: removed the defer_timer_process() function
...
this is now unused
12 years ago
Andrew Tridgell
8d47a739a1
SITL: fixed a return value in snprintf functions
12 years ago
Andrew Tridgell
9931009db2
Math: use pythagorous2() in some more places
12 years ago
Andrew Tridgell
60d3df50ae
AP_HAL: changed delay() to take a uint16_t
...
this allows for up to 32 second delays, and saves a bit of flash space
12 years ago
Pat Hickey
823efc4734
AP_HAL_AVR_SITL: implement BetterStream's vprintf methods
12 years ago
Pat Hickey
ec8f08d743
AP_HAL_AVR_SITL: rename vprintf utility to print_vprintf
12 years ago
Pat Hickey
4c715bfd04
AP_HAL_AVR_SITL: add Util driver, fix deprecated deps on HAL_AVR.h
12 years ago
Andrew Tridgell
7ecf8981b9
SITL: added dummy SPI and make RCInput 50Hz
12 years ago
Andrew Tridgell
e020694c03
SITL: fixed build of apm1/apm2 target
12 years ago
Andrew Tridgell
abbe37be37
SITL: added emulated airspeed sensor on a pin
12 years ago
Andrew Tridgell
46f7c9e92b
SITL: added basic analogin implementation
12 years ago
Andrew Tridgell
472b45bc2a
SITL: fixed use of local printf() method in UART driver
12 years ago
Andrew Tridgell
7be507948f
SITL: added SITL_State::loop_hook()
...
this prevents us using so much CPU time, and ensures stdout is flushed
12 years ago