Ardupilot2/libraries/AP_Motors
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_HAL: make code not depend on concrete HAL implementations 2015-10-21 09:16:07 +11:00
AP_Motors_Class.cpp AP_Motors: get rid of _motor_to_channel_map 2015-09-29 11:59:25 +09:00
AP_Motors_Class.h AP_Motors: get rid of _motor_to_channel_map 2015-09-29 11:59:25 +09:00
AP_Motors.h AP_Motors: Move traditional helicopter controls into AP_MotorsHeli_Single. 2015-08-31 11:27:31 +09:00
AP_MotorsCoax.cpp AP_Motors: Group writes to motors 2015-10-06 10:42:18 +11:00
AP_MotorsCoax.h AP_Motors: standardize inclusion of libaries headers 2015-08-11 16:38:19 +10:00
AP_MotorsHeli_RSC.cpp MotorsHeli_RSC: RotorControlState enum 2015-08-31 11:43:57 +09:00
AP_MotorsHeli_RSC.h MotorsHeli_RSC: add RotorControlMode enum 2015-08-31 11:43:58 +09:00
AP_MotorsHeli_Single.cpp AP_Motors: Group writes to motors 2015-10-06 10:42:18 +11:00
AP_MotorsHeli_Single.h AP_Motors: added H_GYR_GAIN_ACRO 2015-09-25 12:30:33 +10:00
AP_MotorsHeli.cpp AP_Motors: display message in heli parameter_check() 2015-09-25 12:30:34 +10:00
AP_MotorsHeli.h AP_Motors: display message in heli parameter_check() 2015-09-25 12:30:34 +10:00
AP_MotorsHexa.cpp Copter Motors: add slow start feature 2013-09-12 22:27:44 +09:00
AP_MotorsHexa.h AP_Motors: standardize inclusion of libaries headers 2015-08-11 16:38:19 +10:00
AP_MotorsMatrix.cpp AP_Motors: Group writes to motors 2015-10-06 10:42:18 +11:00
AP_MotorsMatrix.h AP_Motors: standardize inclusion of libaries headers 2015-08-11 16:38:19 +10:00
AP_MotorsMulticopter.cpp AP_Motors: Group writes to motors 2015-10-06 10:42:18 +11:00
AP_MotorsMulticopter.h MotorsMulti: add throttle_max accessor 2015-09-07 15:10:02 +09:00
AP_MotorsOcta.cpp AP_Motors: fix compile warnings re float constants 2015-04-24 14:04:00 +09:00
AP_MotorsOcta.h AP_Motors: standardize inclusion of libaries headers 2015-08-11 16:38:19 +10:00
AP_MotorsOctaQuad.cpp AP_Motors: fix compile warnings re float constants 2015-04-24 14:04:00 +09:00
AP_MotorsOctaQuad.h AP_Motors: standardize inclusion of libaries headers 2015-08-11 16:38:19 +10:00
AP_MotorsQuad.cpp AP_Motors: fix compile warnings re float constants 2015-04-24 14:04:00 +09:00
AP_MotorsQuad.h AP_Motors: standardize inclusion of libaries headers 2015-08-11 16:38:19 +10:00
AP_MotorsSingle.cpp AP_Motors: Group writes to motors 2015-10-06 10:42:18 +11:00
AP_MotorsSingle.h AP_Motors: standardize inclusion of libaries headers 2015-08-11 16:38:19 +10:00
AP_MotorsTri.cpp AP_Motors: Group writes to motors 2015-10-06 10:42:18 +11:00
AP_MotorsTri.h AP_Motors: standardize inclusion of libaries headers 2015-08-11 16:38:19 +10:00
AP_MotorsY6.cpp AP_Motors: fix compile warnings re float constants 2015-04-24 14:04:00 +09:00
AP_MotorsY6.h AP_Motors: standardize inclusion of libaries headers 2015-08-11 16:38:19 +10:00