ardupilot/libraries/AP_HAL_SITL
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'.
2015-10-21 09:16:07 +11:00
..
AP_HAL_SITL.h AP_HAL_SITL: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
AP_HAL_SITL_Main.h
AP_HAL_SITL_Namespace.h HAL_SITL: reformat HAL_SITL with astyle 2015-05-05 10:59:07 +10:00
AP_HAL_SITL_Private.h
AnalogIn.cpp AP_HAL_SITL: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
AnalogIn.h AP_HAL_SITL: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
HAL_SITL_Class.cpp AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
HAL_SITL_Class.h AP_HAL_SITL: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
RCInput.cpp AP_HAL_SITL: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
RCInput.h AP_HAL_SITL: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
RCOutput.cpp AP_HAL_SITL: remove unused write method 2015-09-29 11:53:51 +09:00
RCOutput.h AP_HAL_SITL: remove unused write method 2015-09-29 11:53:51 +09:00
SITL_State.cpp SITL_State: fixed _set_param_default 2015-10-16 10:20:31 +11:00
SITL_State.h AP_HAL_SITL: add file based gps 2015-09-03 19:43:31 +10:00
SITL_cmdline.cpp SITL: Add HELI_DUAL_FRAME and HELI_COMPOUND_FRAME. 2015-08-13 18:23:30 +10:00
Scheduler.cpp AP_HAL_SITL: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
Scheduler.h AP_HAL_SITL: use method for downcast 2015-09-23 09:01:29 +10:00
Storage.cpp AP_HAL_SITL: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
Storage.h AP_HAL_SITL: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
UARTDriver.cpp AP_HAL_SITL: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
UARTDriver.h AP_HAL_SITL: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
Util.h AP_HAL_SITL: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
fenv_polyfill.h HAL_SITL: Adds polyfill for feenableexcept on OS X. 2015-07-01 11:32:01 +10:00
sitl_barometer.cpp AP_HAL_SITL: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00
sitl_compass.cpp AP_HAL_SITL: standardize inclusion of libaries headers 2015-08-18 17:12:52 +10:00
sitl_gps.cpp AP_HAL_SITL: add file based gps 2015-09-03 19:43:31 +10:00
sitl_ins.cpp AP_HAL_SITL: standardize inclusion of libaries headers 2015-08-18 17:12:52 +10:00
sitl_optical_flow.cpp AP_HAL_SITL: standardize inclusion of libaries headers 2015-08-11 16:28:43 +10:00