aboutsummaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2015-01-28 19:13:30 +0100
committerThomas Gubler <thomasgubler@gmail.com>2015-02-03 18:13:00 +0100
commite2524b9aed144db6fc023e169e716435c9c93052 (patch)
tree5758790a5e461f01bc5ecc20733d237def6519a6 /src/drivers
parent0e1832452fdbba0ecc3de944bbc25c2eb9c2f313 (diff)
downloadpx4-firmware-e2524b9aed144db6fc023e169e716435c9c93052.tar.gz
px4-firmware-e2524b9aed144db6fc023e169e716435c9c93052.tar.bz2
px4-firmware-e2524b9aed144db6fc023e169e716435c9c93052.zip
drv_gyro: introduce default samplerate
Diffstat (limited to 'src/drivers')
-rw-r--r--src/drivers/drv_gyro.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drivers/drv_gyro.h b/src/drivers/drv_gyro.h
index 5e0334a18..1f2bc35c4 100644
--- a/src/drivers/drv_gyro.h
+++ b/src/drivers/drv_gyro.h
@@ -93,6 +93,8 @@ ORB_DECLARE(sensor_gyro);
/** set the gyro internal sample rate to at least (arg) Hz */
#define GYROIOCSSAMPLERATE _GYROIOC(0)
+#define GYRO_SAMPLERATE_DEFAULT 1000003 /**< default sample rate */
+
/** return the gyro internal sample rate in Hz */
#define GYROIOCGSAMPLERATE _GYROIOC(1)