Caio Marcelo de Oliveira Filho
918a339660
AP_Declination: remove unnecessary board include from example
2015-10-21 09:16:12 +11:00
Caio Marcelo de Oliveira Filho
42a111f5df
AP_Mount: remove unnecessary board include from example
2015-10-21 09:16:12 +11:00
Caio Marcelo de Oliveira Filho
de98ec7c1a
AP_OpticalFlow: fix build of example for PX4
2015-10-21 09:16:12 +11:00
Caio Marcelo de Oliveira Filho
ae9bc62e84
AP_OpticalFlow: remove unnecessary includes from example
2015-10-21 09:16:12 +11:00
Caio Marcelo de Oliveira Filho
817248b2f5
AP_Airspeed: remove unnecessary includes from example
2015-10-21 09:16:11 +11:00
Caio Marcelo de Oliveira Filho
db1491f079
AP_GPS: remove unnecessary board includes from examples
2015-10-21 09:16:11 +11:00
Caio Marcelo de Oliveira Filho
d840fc0680
AP_Notify: remove unnecessary includes from examples
2015-10-21 09:16:11 +11:00
Caio Marcelo de Oliveira Filho
d51adf2523
AP_Notify: fix build of ToshibaLED_test in PX4
...
The unused variables were causing error due to shadowing. The
AP_Scheduler library was missing from make.inc.
2015-10-21 09:16:11 +11:00
Caio Marcelo de Oliveira Filho
191cff2035
AP_InertialSensor: remove unnecessary includes from examples
2015-10-21 09:16:11 +11:00
Caio Marcelo de Oliveira Filho
118de8d01f
AP_Mission: remove unnecessary includes from example
2015-10-21 09:16:11 +11:00
Caio Marcelo de Oliveira Filho
5d2279a554
AP_RangeFinder: remove unnecessary includes from example
2015-10-21 09:16:11 +11:00
Caio Marcelo de Oliveira Filho
6566deff66
AP_RangeFinder: fix compilation for Linux/SITL
...
Add libraries that those boards depend on. This should be handled in the
future elsewhere (and once for each board), but for now let's make it
compile again.
2015-10-21 09:16:11 +11:00
Caio Marcelo de Oliveira Filho
4731f87683
AP_Common: add Makefile and clean up includes
2015-10-21 09:16:11 +11:00
Caio Marcelo de Oliveira Filho
a3169d0a34
AP_Compass: remove unnecessary includes from example
2015-10-21 09:16:11 +11:00
Caio Marcelo de Oliveira Filho
9b73fcb6f8
AP_AHRS: remove unnecessary includes in the example
2015-10-21 09:16:11 +11:00
Caio Marcelo de Oliveira Filho
24178c3e10
AP_Baro: remove unnecessary includes in example
2015-10-21 09:16:10 +11:00
Caio Marcelo de Oliveira Filho
b028219c94
DataFlash: remove unnecessary includes from example
2015-10-21 09:16:10 +11:00
Caio Marcelo de Oliveira Filho
03b0c76553
StorageManager: remove unnecessary includes from example
2015-10-21 09:16:10 +11:00
Caio Marcelo de Oliveira Filho
d32207008d
Filter: remove unnecessary includes from examples
2015-10-21 09:16:10 +11:00
Caio Marcelo de Oliveira Filho
8e1e77007e
AP_BattMonitor: remove unnecessary includes in example
2015-10-21 09:16:10 +11:00
Caio Marcelo de Oliveira Filho
9a2e0c2fd9
AC_PID: remove unnecessary includes from example
2015-10-21 09:16:10 +11:00
Caio Marcelo de Oliveira Filho
09579cb6e3
GCS_MAVLink: remove unnecessary includes
2015-10-21 09:16:10 +11:00
Caio Marcelo de Oliveira Filho
e8d9c4dc9b
PID: remove unnecessary includes from example
2015-10-21 09:16:10 +11:00
Caio Marcelo de Oliveira Filho
36ffef97c0
CPUInfo: remove unnecessary includes
2015-10-21 09:16:10 +11:00
Caio Marcelo de Oliveira Filho
12850742f9
AP_Scheduler: remove unnecessary includes from example
2015-10-21 09:16:10 +11:00
Caio Marcelo de Oliveira Filho
b98bf2a65e
AP_HAL: remove unnecessary includes from examples
2015-10-21 09:16:10 +11:00
Caio Marcelo de Oliveira Filho
c95a89411c
AP_HAL_Linux: remove unnecessary includes in example
2015-10-21 09:16:09 +11:00
Caio Marcelo de Oliveira Filho
e36728d1db
RC_Channel: make example compile again
...
By adding a missing library dependency. Also remove unnecessary
includes, in particular including each board HAL file is not needed
anymore.
2015-10-21 09:16:09 +11:00
Caio Marcelo de Oliveira Filho
01b11ba48f
Hello: remove unnecessary includes
2015-10-21 09:16:09 +11:00
Caio Marcelo de Oliveira Filho
5020db4481
AP_Math: remove unnecessary includes
...
Remove unnecessary includes, in particular the includes for specific
boards. The list of libraries for 'polygon' example was updated so that
the example compiles again.
2015-10-21 09:16:09 +11:00
Caio Marcelo de Oliveira Filho
ef615a5da1
Replay: 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
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
06b2c966c1
APMrover2: 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
db3e501aec
ArduPlane: 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
3e3f13659d
ArduCopter: 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
b29d6eff5d
AP_HAL: add an AP_HAL_MAIN_CALLBACKS() macro
...
This is going to be used by vehicles that already have an object with
setup/loop functions. The vehicle object will just implement the
HAL::Callbacks interface.
2015-10-21 09:16:09 +11:00
Caio Marcelo de Oliveira Filho
19b4ca60c4
AP_HAL: provide AP_HAL_MAIN()
...
Move the macros to a single place and reduce the variations not based on
board, but based on
- The name of the entry-point function, specified by AP_MAIN;
- Whether it contains argc/argv arguments or not.
The goal here is that programs (vehicles and examples) don't need to
include all possible boards to define a main function. Further patches
will change the programs.
2015-10-21 09:16:09 +11:00
Caio Marcelo de Oliveira Filho
e30457a84d
AP_HAL_VRBRAIN: merge init() and run()
2015-10-21 09:16:08 +11:00
Caio Marcelo de Oliveira Filho
cb61bdd8d1
AP_HAL_PX4: merge init() and run()
2015-10-21 09:16:08 +11:00
Caio Marcelo de Oliveira Filho
e18884a328
AP_HAL_AVR: merge init() and run()
2015-10-21 09:16:08 +11:00
Caio Marcelo de Oliveira Filho
1649104382
AP_HAL_FLYMAPLE: merge init() and run()
2015-10-21 09:16:08 +11:00
Caio Marcelo de Oliveira Filho
3c22564307
AP_HAL_Linux: merge init() and run()
2015-10-21 09:16:08 +11:00
Caio Marcelo de Oliveira Filho
e4ef0e43c0
AP_HAL_SITL: merge init() and run()
2015-10-21 09:16:08 +11:00
Caio Marcelo de Oliveira Filho
0c837326b5
AP_HAL_Empty: merge init() and run()
2015-10-21 09:16:08 +11:00
Caio Marcelo de Oliveira Filho
6fc60e2d5e
AP_HAL: remove unused init() from the interface
...
And make run() pure virtual to ensure future implementations provide it.
2015-10-21 09:16:08 +11:00
Caio Marcelo de Oliveira Filho
fe1dd1be25
AP_HAL_VRBRAIN: implement HAL::run()
2015-10-21 09:16:08 +11:00
Caio Marcelo de Oliveira Filho
0dab23c4df
AP_HAL_PX4: implement HAL::run()
2015-10-21 09:16:08 +11:00
Caio Marcelo de Oliveira Filho
3fe1d86c80
AP_HAL_AVR: implement HAL::run() for APM1 and APM2
2015-10-21 09:16:08 +11:00
Caio Marcelo de Oliveira Filho
51bc25a2ab
AP_HAL_FLYMAPLE: implement HAL::run()
2015-10-21 09:16:07 +11:00
Caio Marcelo de Oliveira Filho
32dc822470
AP_HAL_Linux: implement HAL::run()
...
Added a note about the different ordering between setup callback and
scheduler initialized call.
2015-10-21 09:16:07 +11:00