diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-08-05 21:05:34 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-08-05 21:05:34 +0200 |
commit | a2f923b9a3bf403e3a9fcee39d87c7aecc28559d (patch) | |
tree | f39d7c83b89840875345d85f9c0371b671c7e826 | |
parent | b5d19d08ea02bd31e27f4259302b30946e1f673d (diff) | |
download | px4-firmware-a2f923b9a3bf403e3a9fcee39d87c7aecc28559d.tar.gz px4-firmware-a2f923b9a3bf403e3a9fcee39d87c7aecc28559d.tar.bz2 px4-firmware-a2f923b9a3bf403e3a9fcee39d87c7aecc28559d.zip |
Increased MPU6K poll and sampling rate to 1 KHz
-rw-r--r-- | src/modules/sensors/sensors.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/sensors/sensors.cpp b/src/modules/sensors/sensors.cpp index 0f1782fca..5dc23f5c1 100644 --- a/src/modules/sensors/sensors.cpp +++ b/src/modules/sensors/sensors.cpp @@ -763,11 +763,11 @@ Sensors::accel_init() #ifdef CONFIG_ARCH_BOARD_PX4FMU_V1 - /* set the accel internal sampling rate up to at leat 500Hz */ - ioctl(fd, ACCELIOCSSAMPLERATE, 500); + /* set the accel internal sampling rate up to at leat 1000Hz */ + ioctl(fd, ACCELIOCSSAMPLERATE, 1000); - /* set the driver to poll at 500Hz */ - ioctl(fd, SENSORIOCSPOLLRATE, 500); + /* set the driver to poll at 1000Hz */ + ioctl(fd, SENSORIOCSPOLLRATE, 1000); #else |