ardupilot/libraries/AP_Compass
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
..
examples/AP_Compass_test AP_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
AP_Compass_AK8963.cpp AP_Compass: remove use of milligauss_ratio 2015-10-15 19:56:14 +09:00
AP_Compass_AK8963.h AP_Compass: Add support for more then one AK8963 2015-10-06 10:38:21 +11:00
AP_Compass_Backend.cpp AP_Compass: mention mag field unit in existing documentation 2015-10-15 19:56:15 +09:00
AP_Compass_Backend.h AP_Compass: mention mag field unit in existing documentation 2015-10-15 19:56:15 +09:00
AP_Compass_Calibration.cpp AP_Compass: only play compass cal cancel tone if a cal was running 2015-10-21 08:24:49 +11:00
AP_Compass_HIL.cpp AP_Compass: remove use of milligauss_ratio 2015-10-15 19:56:14 +09:00
AP_Compass_HIL.h AP_Compass: fix the milligauss handling 2015-09-09 14:53:11 +10:00
AP_Compass_HMC5843.cpp AP_Compass: HMC5843: Use the correctly spelled method 2015-10-16 10:16:24 +11:00
AP_Compass_HMC5843.h AP_Compass: HMC5843: fix _calibrate() 2015-10-15 19:56:10 +09:00
AP_Compass_LSM303D.cpp AP_Compass: remove use of milligauss_ratio 2015-10-15 19:56:14 +09:00
AP_Compass_LSM303D.h AP_Compass: fix milligauss code in LSM303D driver 2015-09-16 16:52:17 +09:00
AP_Compass_PX4.cpp AP_Compass: remove use of milligauss_ratio 2015-10-15 19:56:14 +09:00
AP_Compass_PX4.h AP_Compass: fix the milligauss handling 2015-09-09 14:53:11 +10:00
AP_Compass.h AP_Compass: use state array for compass variables 2015-03-13 18:46:15 +11:00
Compass_learn.cpp Compass: Improved field rounding in learning 2015-07-06 11:31:58 +10:00
Compass.cpp Compass: update param descriptions 2015-10-15 20:52:38 +09:00
Compass.h AP_Compass: mention mag field unit in existing documentation 2015-10-15 19:56:15 +09:00
CompassCalibrator.cpp AP_Compass: standardize inclusion of libaries headers 2015-09-03 16:59:13 +10:00
CompassCalibrator.h AP_Compass: standardize inclusion of libaries headers 2015-09-03 16:59:13 +10:00
keywords.txt Compass: fixup line endings 2014-04-15 15:56:57 +09:00