diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-07-16 12:45:43 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-07-16 12:45:43 +0200 |
commit | 6902177b997906dc0003adc9e8210d1901f3dafc (patch) | |
tree | d7787a274e096dede24e5028fc0e838772a6adc8 /src | |
parent | 2f76c811474aa34dd11973df491283278234957a (diff) | |
download | px4-firmware-6902177b997906dc0003adc9e8210d1901f3dafc.tar.gz px4-firmware-6902177b997906dc0003adc9e8210d1901f3dafc.tar.bz2 px4-firmware-6902177b997906dc0003adc9e8210d1901f3dafc.zip |
Default to 2000 dps for L3GD20
Diffstat (limited to 'src')
-rw-r--r-- | src/drivers/l3gd20/l3gd20.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/l3gd20/l3gd20.cpp b/src/drivers/l3gd20/l3gd20.cpp index f47481823..28d6397c9 100644 --- a/src/drivers/l3gd20/l3gd20.cpp +++ b/src/drivers/l3gd20/l3gd20.cpp @@ -334,10 +334,10 @@ L3GD20::init() write_reg(ADDR_CTRL_REG4, REG4_BDU); write_reg(ADDR_CTRL_REG5, 0); - write_reg(ADDR_CTRL_REG5, REG5_FIFO_ENABLE); /* disable wake-on-interrupt */ - write_reg(ADDR_FIFO_CTRL_REG, FIFO_CTRL_STREAM_MODE); /* Enable FIFO, old data is overwritten */ + write_reg(ADDR_CTRL_REG5, REG5_FIFO_ENABLE); /* disable wake-on-interrupt */ + write_reg(ADDR_FIFO_CTRL_REG, FIFO_CTRL_STREAM_MODE); /* Enable FIFO, old data is overwritten */ - set_range(500); /* default to 500dps */ + set_range(2000); /* default to 2000dps */ set_samplerate(0); /* max sample rate */ ret = OK; |