Andrew Tridgell
fb4e68f0f0
SITL: added SIM_GPS_BYTELOSS option
...
this allows testing of protocol recovery after losing bytes on the GPS
serial link
2013-02-16 22:00:16 +11:00
Andrew Tridgell
3a582663fb
SITL: improve time field handling in simulated GPS
2013-02-16 21:36:06 +11:00
Andrew Tridgell
428966160a
SITL: added support for MTK16 and MTK19 simulated GPS types
2013-02-16 20:59:48 +11:00
Andrew Tridgell
10cd466035
SITL: added simulation of the original MTK GPS
2013-02-16 20:16:13 +11:00
Andrew Tridgell
70f7cde9b8
AP_HAL: added run_debug_shell() hal.util method
2013-02-07 15:04:33 +11:00
Andrew Tridgell
37be83994f
SITL: allow motor multiplier to work on quad simulation
2013-01-22 21:22:01 +11:00
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
2013-01-16 14:43:18 +11:00
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.
2013-01-16 13:52:17 +11:00
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.
2013-01-16 13:52:01 +11:00
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
2013-01-14 08:26:29 +11:00
Pat Hickey
7b5153c79b
AP_HAL_AVR_SITL: main calls system_initialized
2013-01-10 14:37:22 -08:00
Pat Hickey
a228519b18
AP_HAL_AVR_SITL: Implement new Scheduler methods
2013-01-10 14:07:43 -08:00
Pat Hickey
dd27984eac
SITL: instansiate EmptyI2CDriver with EmptySemaphore
2013-01-04 16:20:22 -08:00
Andrew Tridgell
c16db01395
HAL_SITL: add pragma pack
...
may be needed on some systems
2013-01-05 08:01:30 +11:00
Pat Hickey
bc3b6fcb9f
AP_HAL_AVR_SITL: remove begin/end atomic, adjust timer procs
2013-01-03 17:33:14 -08:00
Andrew Tridgell
091c14a33e
SITL: disabled buffering on stdout
...
this fixes the ArduPlane log dump
2012-12-24 08:00:57 +11:00
Andrew Tridgell
93040e5725
AP_HAL: removed the defer_timer_process() function
...
this is now unused
2012-12-21 20:01:42 +11:00
Andrew Tridgell
8d47a739a1
SITL: fixed a return value in snprintf functions
2012-12-20 22:46:22 +11:00
Andrew Tridgell
9931009db2
Math: use pythagorous2() in some more places
2012-12-20 15:16:18 +11:00
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
2012-12-20 14:53:23 +11:00
Pat Hickey
823efc4734
AP_HAL_AVR_SITL: implement BetterStream's vprintf methods
2012-12-20 14:53:22 +11:00
Pat Hickey
ec8f08d743
AP_HAL_AVR_SITL: rename vprintf utility to print_vprintf
2012-12-20 14:53:22 +11:00
Pat Hickey
4c715bfd04
AP_HAL_AVR_SITL: add Util driver, fix deprecated deps on HAL_AVR.h
2012-12-20 14:52:37 +11:00
Andrew Tridgell
7ecf8981b9
SITL: added dummy SPI and make RCInput 50Hz
2012-12-20 14:52:34 +11:00
Andrew Tridgell
e020694c03
SITL: fixed build of apm1/apm2 target
2012-12-20 14:52:34 +11:00
Andrew Tridgell
abbe37be37
SITL: added emulated airspeed sensor on a pin
2012-12-20 14:52:33 +11:00
Andrew Tridgell
46f7c9e92b
SITL: added basic analogin implementation
2012-12-20 14:52:33 +11:00
Andrew Tridgell
472b45bc2a
SITL: fixed use of local printf() method in UART driver
2012-12-20 14:52:33 +11:00
Andrew Tridgell
7be507948f
SITL: added SITL_State::loop_hook()
...
this prevents us using so much CPU time, and ensures stdout is flushed
2012-12-20 14:52:33 +11:00
Andrew Tridgell
0c9d37e2ee
SITL: added RCInput and RCOutput
2012-12-20 14:52:33 +11:00
Andrew Tridgell
dcc17dad94
SITL: added panic() method in scheduler
2012-12-20 14:52:33 +11:00
Andrew Tridgell
5f7f6966af
SITL: fixed GPS and UART startup
2012-12-20 14:52:32 +11:00
Andrew Tridgell
334b96b375
SITL: switched to empty driver for unimplemented backends
2012-12-20 14:52:32 +11:00
Andrew Tridgell
98ead51801
SITL: fill in a lot more of the AP_HAL SITL backend
2012-12-20 14:52:30 +11:00
Pat Hickey
63eb1dc85d
AP_HAL_AVR_SITL: separate header for AP_HAL_MAIN and Private
2012-12-20 14:52:30 +11:00
Andrew Tridgell
8916b280fd
SITL: filled in more of the HAL SITL backend
2012-12-20 14:52:29 +11:00
Andrew Tridgell
18824c7ef5
AP_HAL: expose argc/argv in hal.init()
...
used for SITL port
2012-12-20 14:52:29 +11:00
Andrew Tridgell
d42cbb791f
HAL_SITL: start filling in more of SITL framework
2012-12-20 14:51:40 +11:00
Pat Hickey
54bab59066
AP_HAL_AVR_SITL: add initial scaffolding
2012-12-20 14:51:38 +11:00