Lucas De Marchi
3142f21363
AP_InertialSensor: remove checks for HAL_BOARD_APM2 and HAL_BOARD_APM1
9 years ago
Lucas De Marchi
3d1d6286e9
AP_InertialSensor: fix example build after PSTR removal
9 years ago
Lucas De Marchi
20c6ffc5e3
Replace use of UARTDriver::printf_P() with UARTDriver::printf()
...
This also starts to show warnings on places that were already using
wrong printf format strings.
9 years ago
Lucas De Marchi
6f4904189b
Replace use of println_P() with println()
9 years ago
Lucas De Marchi
2c38e31c93
Remove use of PSTR
...
The PSTR is already define as a NOP for all supported platforms. It's
only needed for AVR so here we remove all the uses throughout the
codebase.
This was automated with a simple python script so it also converts
places which spans to multiple lines, removing the matching parentheses.
AVR-specific places were not changed.
9 years ago
Caio Marcelo de Oliveira Filho
191cff2035
AP_InertialSensor: remove unnecessary includes from examples
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
Randy Mackay
ada26082ca
InertialSensor: remove INS start style from example sketch
10 years ago
Andrew Tridgell
980659d346
AP_InertialSensor: removed AVR1280 specific ifdef
10 years ago
Gustavo Jose de Sousa
7789aec85b
AP_InertialSensor: 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
214b61bfc0
AP_InertialSensor: fixed example build
10 years ago
Andrew Tridgell
7f7113c1de
AP_InertialSensor: convert example from .pde to .cpp
10 years ago
Randy Mackay
3f8b832075
InertialSensor: fix example sketch
10 years ago
Andrew Tridgell
ef527d9daa
AP_InertialSensor: fix for HAL_SITL rename
10 years ago
Andrew Tridgell
786172aa4e
AP_InertialSensor: removed 1D accel calibration
...
it is finally time to move on from this. We want to push people
towards better calibration and removing the 1D accel cal is the first
step
10 years ago
mirkix
460b434708
AP_InertialSensor: add apm1 oilpan support
10 years ago
Randy Mackay
b43dc3bdfb
INS: fix example sketch
10 years ago
Andrew Tridgell
7bb56e50aa
AP_InertialSensor: fixed example build
10 years ago
Andrew Tridgell
520727e5bd
AP_InertialSensor: fixed example build
10 years ago
Víctor Mayoral Vilches
8968647873
AP_InertialSensor: INS_generic example, add support L3GD20
11 years ago
Andrew Tridgell
24251a7e12
AP_InertialSensor: fixed example build
11 years ago
Andrew Tridgell
984064f3d3
AP_InertialSensor: fixed example build
11 years ago
Andrew Tridgell
662276597a
AP_InertialSensor: fixed example build
11 years ago
Andrew Tridgell
5a170c6343
AP_InertialSensor: added INS_generic test
11 years ago
Víctor Mayoral Vilches
d65aefbef5
AP_InertialSensor_MPU6000: Fix the test code so that compiles.
11 years ago
Andrew Tridgell
4c43cd9775
AP_InertialSensor: fixes for HAL_GPIO_*
11 years ago
Andrew Tridgell
731f980327
AP_InertialSensor: fixed example build
11 years ago
Andrew Tridgell
f9d0747750
AP_InertialSensor: fixed example build
11 years ago
Andrew Tridgell
045efdb084
AP_InertialSensor: fixed example builds
11 years ago
Andrew Tridgell
8dd34f8bc4
AP_InertialSensor: fixed example build
11 years ago
Andrew Tridgell
a0688a69d4
AP_InertialSensor: generalise the accel/gyro calibration for N sensors
11 years ago
Andrew Tridgell
2753449e75
AP_InertialSensor: added support for multiple accel/gyro devices
...
this makes it possible to ask for the gyro and accel vectors from
secondary INS devices.
11 years ago
Andrew Tridgell
14636e1cdf
AP_InertialSensor: changed num_samples_available() to sample_available()
...
this makes the interface clearer. It also fixes a 3D accel cal bug.
12 years ago
Andrew Tridgell
e1aa6e3ff1
libraries: fixed examples for no flash_leds() callback
12 years ago
Andrew Tridgell
f8e9d48a76
AP_InertialSensor: removed the flash_leds() callback
...
AP_Notify now handles this
12 years ago
Andrew Tridgell
ff0f6bcd42
AP_InertialSensor: fixed example build
12 years ago
Andrew Tridgell
5caf2e0ea4
AP_InertialSensor: fixed example build
12 years ago
Andrew Tridgell
c92069644d
AP_InertialSensor: fixed indent-tabs-mode
12 years ago
Andrew Tridgell
8f57b72e3f
AP_InserialSensor: fixed example build
12 years ago
Randy Mackay
963231a19b
AHRS: fix example sketch to use roll/pitch trim
12 years ago
Andrew Tridgell
5643c371b9
AP_InertialSensor: removed unused new_data_available() and temperature() APIs
12 years ago
Andrew Tridgell
0adc4afcb5
InertialSensor: add reboot option in MPU6000 test
12 years ago
Andrew Tridgell
fcb09c3993
InertialSensor: fixed example app for new syntax
12 years ago
Andrew Tridgell
f504e2ec67
InertialSensor: removed sample rate in example
...
not needed any more
12 years ago
Pat Hickey
6437bd3a08
AP_InertialSenor MPU6000 test: fixed for user interact changes
12 years ago
Andrew Tridgell
bada70d871
InertialSensor: fixed example build on 1280
12 years ago
Andrew Tridgell
b06e072c87
AP_InertialSensor: fixed example build
12 years ago
Pat Hickey
475da4eca4
CONFIG_HAL_BOARD - test sketches fixed up, build all passes
12 years ago
Pat Hickey
a4f1f6a5db
AP_Progmem: fix dependencies for all sketches touched by AP_HAL_AVR
12 years ago
Pat Hickey
4acf2c8591
AP_InertialSensor: ported to AP_HAL
12 years ago