diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2012-08-27 22:57:20 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2012-08-27 22:57:20 +0200 |
commit | 2d2548e714505b1a9d1074c0f9a78c44c8363314 (patch) | |
tree | df4b20758f361f00d40268a4fae4137c77067d0d /apps/drivers/mpu6000/mpu6000.cpp | |
parent | 2a6a151342905377c60711c1cade166ffa058e86 (diff) | |
download | px4-firmware-2d2548e714505b1a9d1074c0f9a78c44c8363314.tar.gz px4-firmware-2d2548e714505b1a9d1074c0f9a78c44c8363314.tar.bz2 px4-firmware-2d2548e714505b1a9d1074c0f9a78c44c8363314.zip |
Final parameter interface cleanup - removed last bit of old cruft, fixed a bug on parameter update notification, cleaned up API slightly in naming
Diffstat (limited to 'apps/drivers/mpu6000/mpu6000.cpp')
-rw-r--r-- | apps/drivers/mpu6000/mpu6000.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/apps/drivers/mpu6000/mpu6000.cpp b/apps/drivers/mpu6000/mpu6000.cpp index 6060a80f8..7c5ff2ee0 100644 --- a/apps/drivers/mpu6000/mpu6000.cpp +++ b/apps/drivers/mpu6000/mpu6000.cpp @@ -55,6 +55,7 @@ #include <systemlib/perf_counter.h> #include <systemlib/err.h> +#include <systemlib/conversions.h> #include <nuttx/arch.h> #include <nuttx/clock.h> @@ -761,20 +762,6 @@ MPU6000::measure_trampoline(void *arg) dev->measure(); } -int16_t -int16_t_from_bytes(uint8_t bytes[]) -{ - union { - uint8_t b[2]; - int16_t w; - } u; - - u.b[1] = bytes[0]; - u.b[0] = bytes[1]; - - return u.w; -} - void MPU6000::measure() { |