Lucas De Marchi
ad61a93c14
AP_HAL: turn panic() into a variadic method
...
Change the declaration on all HAL implementations so panic() in future
may implement a printf-like interface.
9 years ago
Gustavo Jose de Sousa
27b9d71e2c
AP_HAL_SITL: standardize inclusion of libaries headers
...
This commit changes the way libraries headers are included in source files:
- If the header is in the same directory the source belongs to, so the
notation '#include ""' is used with the path relative to the directory
containing the source.
- If the header is outside the directory containing the source, then we use
the notation '#include <>' with the path relative to libraries folder.
Some of the advantages of such approach:
- Only one search path for libraries headers.
- OSs like Windows may have a better lookup time.
10 years ago
tcr3dr
9d26bc6958
HAL_SITL: Adds polyfill for feenableexcept on OS X.
10 years ago
Lucas De Marchi
acdcdc35fa
AP_HAL_SITL: Do not compare delegate to NULL
...
Use the simpler "if (delegate_name)" since it allows simpler
implementation in the class, i.e. the bool operator rather than having
to compare to another object.
10 years ago
Andrew Tridgell
c81ad1d622
HAL_SITL: reformat HAL_SITL with astyle
10 years ago
Andrew Tridgell
40e3b422b5
HAL_SITL: rename HAL_AVR_SITL to HAL_SITL
...
it is nothing to do with the original AVR emulation now
10 years ago
Andrew Tridgell
963e5c5977
HAL_SITL: removed pthread.h as no longer needed
10 years ago
Andrew Tridgell
878549530d
HAL_SITL: g_state is not needed any more
10 years ago
Andrew Tridgell
a6f41b3ca6
HAL_SITL: removed the need for the FDM thread
...
this also removes the need for the barriers
10 years ago
Andrew Tridgell
74581a55bc
HAL_SITL: fixed startup of SITL in synthetic clock mode
10 years ago
Andrew Tridgell
42d2addbdd
HAL_SITL: removed the special code for cygwin
...
we no longer need special timing code for cygwin
10 years ago
Andrew Tridgell
063a33ebce
HAL_SITL: implement barriers using pthread condition variables
...
this avoid pthread_barrier_*, which is not available on cygwin
10 years ago
Andrew Tridgell
028248d1f5
HAL_SITL: avoid floating point exceptions on i386
...
fixes issue #2147
10 years ago
Andrew Tridgell
0695277773
HAL_SITL: use pthread barriers for synthetic clock synchronisation
...
this avoids siganls and provides a race free way of keeping time in
lock step
10 years ago
Andrew Tridgell
5cbfe4fd11
HAL_SITL: fixed copter interactive SITL
10 years ago
Andrew Tridgell
0c2232a4be
HAL_SITL: don't sync clocks during system initialisation
10 years ago
Andrew Tridgell
9748cb1e3e
HAL_SITL: use a synthetic clock when possible
...
this decouples wall clock time from simulation time if the FDM
supports it
10 years ago
Andrew Tridgell
c5e4e8f035
SITL: fixed SITL for example sketches
...
cope with no SITL object
10 years ago
Andrew Tridgell
22237f2530
HAL_SITL: fixed handling of SIM_FLOAT_EXCEPT in main thread
10 years ago
Andrew Tridgell
5a55101703
HAL_SITL: added millis64() and micros64()
11 years ago
Andrew Tridgell
82fe40224b
HAL_AVR_SITL: updates for AP_HAL::MemberProc
12 years ago
Andrew Tridgell
c08f29fca6
HAL_AVR_SITL: updates for new scheduler API
12 years ago
Michael Oborne
54fc004956
SITL: fix sitl timer issues under cygwin
12 years ago
Andrew Tridgell
7082e0f8aa
AP_HAL: added hold_in_bootloader parameter to scheduler->reboot()
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
Pat Hickey
a228519b18
AP_HAL_AVR_SITL: Implement new Scheduler methods
12 years ago
Pat Hickey
bc3b6fcb9f
AP_HAL_AVR_SITL: remove begin/end atomic, adjust timer procs
12 years ago
Andrew Tridgell
93040e5725
AP_HAL: removed the defer_timer_process() function
...
this is now unused
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
4c715bfd04
AP_HAL_AVR_SITL: add Util driver, fix deprecated deps on HAL_AVR.h
12 years ago
Andrew Tridgell
dcc17dad94
SITL: added panic() method in scheduler
12 years ago
Andrew Tridgell
8916b280fd
SITL: filled in more of the HAL SITL backend
12 years ago
Andrew Tridgell
d42cbb791f
HAL_SITL: start filling in more of SITL framework
12 years ago