diff options
author | Ash Charles <ashcharles@gmail.com> | 2014-05-14 09:19:30 -0700 |
---|---|---|
committer | Ash Charles <ashcharles@gmail.com> | 2014-05-14 09:19:30 -0700 |
commit | cbc559b6d6285f169e352dde2a205be12aef9ea8 (patch) | |
tree | 047f960ab712ce1351db1f8f85a36700ba1269d7 /src/drivers/boards/aerocore | |
parent | 2d29c5bd72f77d572a8f83480e841051236b3645 (diff) | |
download | px4-firmware-cbc559b6d6285f169e352dde2a205be12aef9ea8.tar.gz px4-firmware-cbc559b6d6285f169e352dde2a205be12aef9ea8.tar.bz2 px4-firmware-cbc559b6d6285f169e352dde2a205be12aef9ea8.zip |
[l3gd20] Make gyro orientation board-overridable
As discussed [1], provide a default SENSOR_BOARD_ROTATION
(270 degrees as this seems most common) and let boards override it
as necessary.
[1] https://github.com/gumstix/m4-firmware/commit/7d0850a710b3ac9e9e165beb36389577d0e5adcb#commitcomment-6315550
Signed-off-by: Ash Charles <ashcharles@gmail.com>
Diffstat (limited to 'src/drivers/boards/aerocore')
-rw-r--r-- | src/drivers/boards/aerocore/board_config.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/boards/aerocore/board_config.h b/src/drivers/boards/aerocore/board_config.h index 814065fcb..70142a314 100644 --- a/src/drivers/boards/aerocore/board_config.h +++ b/src/drivers/boards/aerocore/board_config.h @@ -65,6 +65,7 @@ __BEGIN_DECLS /* Gyro */ #define GPIO_EXTI_GYRO_DRDY (GPIO_INPUT|GPIO_FLOAT|GPIO_EXTI|GPIO_PORTD|GPIO_PIN0) +#define SENSOR_BOARD_ROTATION_DEFAULT 3 /* SENSOR_BOARD_ROTATION_270_DEG */ /* Accel & Mag */ #define GPIO_EXTI_MAG_DRDY (GPIO_INPUT|GPIO_FLOAT|GPIO_EXTI|GPIO_PORTD|GPIO_PIN1) |