aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/drv_gyro.h
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2015-02-03 13:43:28 +0100
committerLorenz Meier <lm@inf.ethz.ch>2015-02-09 22:56:21 +0100
commit16fea51e00a9e0968b9f216770a5ce1c847d3f55 (patch)
tree0b9aba911c4ad103c7dba5203eb08bc696eb3206 /src/drivers/drv_gyro.h
parent4a8044f33845e2477169c2ba63bd63fce4f5668c (diff)
downloadpx4-firmware-16fea51e00a9e0968b9f216770a5ce1c847d3f55.tar.gz
px4-firmware-16fea51e00a9e0968b9f216770a5ce1c847d3f55.tar.bz2
px4-firmware-16fea51e00a9e0968b9f216770a5ce1c847d3f55.zip
Driver headers: Move to 0-based indices
Diffstat (limited to 'src/drivers/drv_gyro.h')
-rw-r--r--src/drivers/drv_gyro.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/drivers/drv_gyro.h b/src/drivers/drv_gyro.h
index 1f2bc35c4..122d20415 100644
--- a/src/drivers/drv_gyro.h
+++ b/src/drivers/drv_gyro.h
@@ -46,7 +46,10 @@
#include "drv_sensor.h"
#include "drv_orb_dev.h"
-#define GYRO_DEVICE_PATH "/dev/gyro"
+#define GYRO_BASE_DEVICE_PATH "/dev/gyro"
+#define GYRO0_DEVICE_PATH "/dev/gyro0"
+#define GYRO1_DEVICE_PATH "/dev/gyro1"
+#define GYRO2_DEVICE_PATH "/dev/gyro2"
/**
* gyro report structure. Reads from the device must be in multiples of this