Commit Graph

12 Commits

Author SHA1 Message Date
Caio Marcelo de Oliveira Filho b648715496 AntennaTracker: implement HAL::Callbacks
Also removes includes for each board since they are not necessary
anymore.
2015-10-21 09:16:09 +11:00
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
Siddharth Bharat Purohit 0c004c13a1 AntennaTracker: implement on-board compass calibration for Antenna tracker 2015-09-03 16:59:14 +10:00
Gustavo Jose de Sousa 2c9d9e8060 AntennaTracker: use function name for AP_Scheduler task name
That makes it easier to identify tasks when debug is enabled in AP_Scheduler.
2015-09-01 20:22:18 +10:00
Gustavo Jose de Sousa 9820cb0c07 AntennaTracker: use designated initializers for tasks structs
Makes code less prone to break build and semantics (e.g., when a new field is
added).
2015-09-01 20:22:18 +10:00
Lucas De Marchi e62c653362 AntennaTracker: use ARRAY_SIZE macro 2015-07-07 07:56:29 +10:00
Randy Mackay 5f53937c6a Tracker: init member variables
Resolves Coverity warnings
2015-06-08 14:46:29 +09:00
Lucas De Marchi 34058787f3 AntennaTracker: stop using alias FUNCTOR_BIND_VOID 2015-06-04 13:37:39 +09:00
Randy Mackay ac05f0f1d4 Tracker: remove duplicate THISFIRMWARE define 2015-06-03 23:23:50 +09:00
rcairman 7382095d79 Tracker: version to 0.7.1 and release notes 2015-06-03 23:23:44 +09:00
Andrew Tridgell f8adea2ddd AntennaTracker: complete conversion to .cpp files 2015-06-01 15:08:08 +10:00
Andrew Tridgell 1660b027ca AntennaTracker: rename pde files to cpp 2015-06-01 15:06:32 +10:00