Gustavo Jose de Sousa
c2e3f05dbf
waf: ardupilotwaf: prefix build context methods with ap_
...
It helps to distinguish between things from waf and things from ardupilotwaf.
9 years ago
Gustavo Jose de Sousa
3d22490397
waf: examples: use methods from bld instead of ardupilotwaf
9 years ago
Gustavo Jose de Sousa
d281067bcc
waf: make example binaries be placed in 'examples' dir
...
This commit makes examples' wscripts use ardupilotwaf.example() instead of
ardupilot.program().
9 years ago
Jonathan Challinger
dcfc95fadf
AP_Baro: fix example build
9 years ago
Lucas De Marchi
a096703b06
Global: don't link with AP_Progmem
...
AP_Progmem is not used anymore.
9 years ago
Lucas De Marchi
5b1769cd2b
AP_Baro: remove unused AP_ADC_AnalogSource
9 years ago
Caio Marcelo de Oliveira Filho
6e7b73610d
waf: add waf support
9 years ago
Caio Marcelo de Oliveira Filho
8cce3067f4
AP_Baro: examples use millis/micros/panic functions
9 years ago
Lucas De Marchi
4bd8b2ae35
AP_Baro: remove checks for HAL_BOARD_APM2 and HAL_BOARD_APM1
9 years ago
Caio Marcelo de Oliveira Filho
24178c3e10
AP_Baro: remove unnecessary includes in example
9 years ago
Caio Marcelo de Oliveira Filho
ec52df991c
build: compile only the HAL files needed by the board
...
Instead of requiring every program to specify the HAL related modules,
let the build system do it (in practice everything we compiled depended
on HAL anyway). This allow including only the necessary files in the
compilation.
9 years ago
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'.
9 years ago
mirkix
ba4db34c83
AP_Baro: Prevent busy waiting
10 years ago
Gustavo Jose de Sousa
f18802bc46
AP_Baro: standardize inclusion of libaries headers
...
This commit changes the way libraries headers are included in source files:
- If the header is in the same directory the source belongs to, so the
notation '#include ""' is used with the path relative to the directory
containing the source.
- If the header is outside the directory containing the source, then we use
the notation '#include <>' with the path relative to libraries folder.
Some of the advantages of such approach:
- Only one search path for libraries headers.
- OSs like Windows may have a better lookup time.
10 years ago
Andrew Tridgell
282efe2d57
AP_Baro: fixed example to run accumulate at 50Hz
10 years ago
Andrew Tridgell
4368f922a3
AP_Baro: convert example from .pde to .cpp
10 years ago
Andrew Tridgell
7d9d594283
AP_Baro: fix for HAL_SITL rename
10 years ago
Randy Mackay
55298a4c73
Baro: fix example sketch
10 years ago
Andrew Tridgell
d040318014
AP_Baro: removed unused define
10 years ago
Randy Mackay
bb4204c045
Baro: fix example sketch
10 years ago
Andrew Tridgell
5bb57a31f7
AP_Baro: split into frontend/backend
...
this allows for support of multiple sensors on a board
10 years ago
Andrew Tridgell
e45522f51d
AP_Baro: fixed example build
10 years ago
Randy Mackay
78b1bf8282
Baro: example sketch to use healthy() function
11 years ago
Andrew Tridgell
a400cbc922
AP_Baro: fixed example build
11 years ago
Andrew Tridgell
c538cc0665
AP_Baro: fixed example build
11 years ago
Andrew Tridgell
b0ab2671cd
AP_Baro: removed old device specific example code
...
not needed any more
11 years ago
Andrew Tridgell
028e2e34f1
AP_Baro: added generic baro test sketch
11 years ago
Víctor Mayoral Vilches
8a85f8d6d2
AP_Baro_MS5611_test: Add HAL specific code.
11 years ago
Víctor Mayoral Vilches
de58df6371
AP_Baro_MS5611_test: Add block for APM2-code
11 years ago
Víctor Mayoral Vilches
9797867067
AP_Baro_MS5611: Fix the test code so that compiles.
...
Add HAL_BOARD_LINUX and HAL_BOARD_ERLE compatibility.
11 years ago
Andrew Tridgell
3705c90b8e
AP_Baro: fix for HAL_GPIO_*
11 years ago
Andrew Tridgell
d3d71d597c
AP_Baro: fixed example build
11 years ago
Andrew Tridgell
63234d4c22
AP_Baro: fixed linux build of BMP085 driver
11 years ago
Andrew Tridgell
3af38a778d
AP_Baro: fixed example build
11 years ago
Randy Mackay
bb715424ee
Baro: fix BMP085 example sketch
11 years ago
Andrew Tridgell
42eba615b4
AP_Baro: fixed example build
11 years ago
Andrew Tridgell
6c2e392d5d
AP_Baro: fixed BMP085 examples build in autotest
11 years ago
Andrew Tridgell
8a699f6189
AP_Baro: enable BMP085 on Linux
12 years ago
Andrew Tridgell
517c44bbaa
AP_Baro: fixed example build
12 years ago
Andrew Tridgell
ed93f80ba9
AP_Baro: fixed example build
12 years ago
Andrew Tridgell
8cb0ed364a
AP_Baro: read 4 pressure values for every temperature value on BMP085
12 years ago
Andrew Tridgell
1ce1fa3864
AP_Baro: update example to use accumulate()
12 years ago
Andrew Tridgell
c15bf95e19
AP_Baro: fixed example build on AVR
12 years ago
Andrew Tridgell
2ac6541526
AP_Baro: added PX4 barometer driver
12 years ago
James Bielman
264db3670e
AP_Baro: Add CONFIG_MS5611_SERIAL option to choose between SPI and I2C.
...
- Update ArduCopter and ArduPlane modules to pass the correct serial
driver to the MS5611 driver.
- Update barometer examples, assuming SPI.
12 years ago
Andrew Tridgell
374af1cd14
build: change from Arduino.mk to apm.mk
12 years ago
Andrew Tridgell
a1187519a8
AP_HAL: use AP_HAL_BOARD_DRIVER in remaining test sketches
12 years ago
Andrew Tridgell
c15eb97c8d
AP_Baro: fixed example build
12 years ago
Pat Hickey
eb530b86e8
move Arduino.mk to /mk/Arduino.mk
12 years ago
Andrew Tridgell
7d27e420ae
AP_HAL: remove unnecessary Arduino.h includes
12 years ago