aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/lsm303d/lsm303d.cpp
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2013-12-15 18:32:46 +0100
committerLorenz Meier <lm@inf.ethz.ch>2013-12-15 18:32:46 +0100
commitf4ac204f4650dedcde52aa9ec001fafb5e7c5284 (patch)
treecb41e2485c0469a25c30f149140245bc1dbcbf78 /src/drivers/lsm303d/lsm303d.cpp
parentd6a6d59d2de7270fd978fcb6029edc3f315899a0 (diff)
downloadpx4-firmware-f4ac204f4650dedcde52aa9ec001fafb5e7c5284.tar.gz
px4-firmware-f4ac204f4650dedcde52aa9ec001fafb5e7c5284.tar.bz2
px4-firmware-f4ac204f4650dedcde52aa9ec001fafb5e7c5284.zip
Cranking up bus speeds for all sensors to achievable 10.4 MHz, will cut the bus lock time to half
Diffstat (limited to 'src/drivers/lsm303d/lsm303d.cpp')
-rw-r--r--src/drivers/lsm303d/lsm303d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/lsm303d/lsm303d.cpp b/src/drivers/lsm303d/lsm303d.cpp
index 11e5b95a7..969b5e25f 100644
--- a/src/drivers/lsm303d/lsm303d.cpp
+++ b/src/drivers/lsm303d/lsm303d.cpp
@@ -486,7 +486,7 @@ private:
LSM303D::LSM303D(int bus, const char* path, spi_dev_e device) :
- SPI("LSM303D", path, bus, device, SPIDEV_MODE3, 8000000),
+ SPI("LSM303D", path, bus, device, SPIDEV_MODE3, 11*1000*1000 /* will be rounded to 10.4 MHz, within safety margins for LSM303D */),
_mag(new LSM303D_mag(this)),
_call_accel_interval(0),
_call_mag_interval(0),