Andrew Tridgell
b9291d95f0
HAL_SITL: pre-fill stack on each loop with NaN
...
this allows us to catch use of uninitialised stack variables in SITL
without having valgrind running
5 years ago
Peter Barker
045960fe57
AP_HAL_SITL: catch SIGTERM and exit with zero exit status
5 years ago
Andrew Tridgell
ac7a67fda0
HAL_SITL: added uartH
6 years ago
Peter Barker
848a70acd4
AP_HAL_SITL: fix rebooting while in sensor config error loop
6 years ago
Peter Barker
39b17e42d0
AP_HAL_SITL: add missing include for AP_BoardConfig.h
6 years ago
Michael du Breuil
a6623bfad3
AP_HAL_SITL: Fix missing include for logger.h
6 years ago
Peter Barker
0a3fe32209
AP_HAL_SITL: log watchdog reset
6 years ago
Andrew Tridgell
f8bcdf9d3a
HAL_SITL: fixed cygwin build error
6 years ago
Andrew Tridgell
c1b201d051
HAL_SITL: fixed comment typo
6 years ago
Andrew Tridgell
0873e54cc0
HAL_SITL: fixed build error
6 years ago
Andrew Tridgell
6897cecea2
HAL_SITL: support watchdog reset in SITL
...
this only works for speedup 1, and does not initialise the physics
models correctly for internal models
6 years ago
Andrew Tridgell
7a70a888b5
HAL_SITL: added empty flash driver
6 years ago
Andrew Tridgell
751dade9a8
HAL_SITL: enable optional storage in flash
...
this brings storage in SITL very close to storage in ChibiOS
6 years ago
Peter Barker
ed724bc2be
AP_HAL_SITL: strip -w parameter on SITL reboot
7 years ago
Andrew Tridgell
5862138a4b
HAL_SITL: support uartG
7 years ago
Michael du Breuil
0f2482f05b
AP_HAL_SITL: Remove timer process suspension interface
7 years ago
Pierre Kancir
b615677223
HAL_SITL: implement reboot support
7 years ago
Pierre Kancir
7732b41186
AP_HAL_SITL: fix static member access through instance
7 years ago
Andrew Tridgell
ebcffcb0ac
HAL_SITL: fixed console printf in SITL examples
7 years ago
Eugene Shamaev
d81af8700f
AP_HAL_SITL: definitions for CAN bus
8 years ago
Pierre Kancir
8ade9d1fe8
AP_HAL_SITL: style fixes
8 years ago
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
8 years ago
Lucas De Marchi
d418338e22
AP_HAL_SITL: remove I2CDriver
...
I2CDevice now serves for the same purpose.
9 years ago
Andrew Tridgell
5b081a704c
HAL_SITL: added GPIO simulation
...
using SIM_PIN_MASK
9 years ago
Andrew Tridgell
0d27409511
HAL_SITL: added uartF
9 years ago
Lucas De Marchi
c3d8ba3ea5
AP_HAL_SITL: use empty I2CDevice
9 years ago
Andrew Tridgell
655f57ad01
HAL_SITL: cleanup class names
...
remove SITL prefix
9 years ago
Andrew Tridgell
b4cc3d9668
HAL_SITL: implement get_custom_defaults_file()
9 years ago
Julien BERAUD
d8bcb36530
AP_HAL_SITL: add empty optical flow
...
No embedded optical flow on sitl
9 years ago
Lucas De Marchi
c72f812944
AP_HAL_SITL: rename AP_HAL_Empty instances
9 years ago
Lucas De Marchi
4c82c535cc
AP_HAL_SITL: use init() method without arguments
...
Override the init() method from parent class that doesn't have a
parameter since it's not used here.
9 years ago
Caio Marcelo de Oliveira Filho
e4ef0e43c0
AP_HAL_SITL: merge init() and run()
9 years ago
Caio Marcelo de Oliveira Filho
c6292ff097
AP_HAL_SITL: implement HAL::run()
9 years ago
Caio Marcelo de Oliveira Filho
2e464a53c2
AP_HAL: make code not depend on concrete HAL implementations
...
The switching between different AP_HAL was happening by giving different
definitions of AP_HAL_BOARD_DRIVER, and the programs would use it to
instantiate.
A program or library code would have to explicitly include (and depend)
on the concrete implementation of the HAL, even when using it only via
interface.
The proposed change move this dependency to be link time. There is a
AP_HAL::get_HAL() function that is used by the client code. Each
implementation of HAL provides its own definition of this function,
returning the appropriate concrete instance.
Since this replaces the job of AP_HAL_BOARD_DRIVER, the definition was
removed.
The static variables for PX4 and VRBRAIN were named differently to avoid
shadowing the extern symbol 'hal'.
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
Julien BERAUD
7275e33e79
AP_HAL: add the possibility to have more than 1 i2c
...
Bebop drone has 3 i2c
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
22237f2530
HAL_SITL: fixed handling of SIM_FLOAT_EXCEPT in main thread
10 years ago
Andrew Tridgell
0115b9fa07
HAL_SITL: support a 2nd GPS
11 years ago
Andrew Tridgell
18eadfd69e
HAL_SITL: added uartD
11 years ago
Andrew Tridgell
930d664677
AVR_SITL: removed Console driver
12 years ago
Pat Hickey
dd27984eac
SITL: instansiate EmptyI2CDriver with EmptySemaphore
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
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
0c9d37e2ee
SITL: added RCInput and RCOutput
12 years ago
Andrew Tridgell
334b96b375
SITL: switched to empty driver for unimplemented backends
12 years ago
Andrew Tridgell
8916b280fd
SITL: filled in more of the HAL SITL backend
12 years ago