diff options
author | JP Abgrall <jpa@google.com> | 2012-10-03 20:16:57 -0700 |
---|---|---|
committer | JP Abgrall <jpa@google.com> | 2012-10-03 20:16:57 -0700 |
commit | 33ce91b37062fa63af192f5643de93f3beebe854 (patch) | |
tree | ba6a03c7954a32ce23b00c6d46cd3d524f4d7007 /libsensors_iio/software/core/mpl/interpolator.h | |
parent | 64ca18f95225d0a86f7ccfd1d21c23971b9f77ae (diff) | |
download | android_hardware_invensense-33ce91b37062fa63af192f5643de93f3beebe854.tar.gz android_hardware_invensense-33ce91b37062fa63af192f5643de93f3beebe854.tar.bz2 android_hardware_invensense-33ce91b37062fa63af192f5643de93f3beebe854.zip |
MotionApps 5.1.1 release, with MA 5.1.0 for further merge review.cm-10.1.3-RC2cm-10.1.3-RC1cm-10.1.3cm-10.1.2cm-10.1.1cm-10.1.0-RC5cm-10.1.0-RC4cm-10.1.0-RC3cm-10.1.0-RC2cm-10.1.0-RC1cm-10.1.0cm-10.1-M3cm-10.1-M2cm-10.1-M1mr1.1-stagingcm-10.1
1. Removed all #ifdef in HAL's member APIs.
2. Added necessary comments as reference.
3. Made changes for coding style, optimization and so on per prior comments.
4. Now raw/calibrated gyroscope sensors could co-exist
Default sensor would be calibrated gyroscope sensor
for getDefaultSensor() call in Android.
* Correctly handle onPower()/masterEnable().
* Use the support functions for reading/writing sysfs.
1 line instead of 9 all over the place.
* Fix return code for {read,write}_sysfs_int():
was > 0 in case of failure instead of < 0.
Bug: 7211625
Change-Id: Ib49dab8ca0f48f45a2838de72f4f8ac011d0e68f
Diffstat (limited to 'libsensors_iio/software/core/mpl/interpolator.h')
-rw-r--r-- | libsensors_iio/software/core/mpl/interpolator.h | 103 |
1 files changed, 0 insertions, 103 deletions
diff --git a/libsensors_iio/software/core/mpl/interpolator.h b/libsensors_iio/software/core/mpl/interpolator.h deleted file mode 100644 index 5eb571d..0000000 --- a/libsensors_iio/software/core/mpl/interpolator.h +++ /dev/null @@ -1,103 +0,0 @@ -/* - $License: - Copyright (C) 2011 InvenSense Corporation, All Rights Reserved. - $ - */ -#ifndef INTERPOLATOR_H -#define INTERPOLATOR_H - -#ifdef __cplusplus -extern "C" { -#endif - -//#include "mltypes.h" - - /* ------------ */ - /* - Defines. - */ - /* ------------ */ - -#define MAX_INTERPOLATION (20) - -typedef struct { - long x[2]; - long y[4]; -} tInterpolate2; -typedef struct { - long x[2]; - long y[6]; -} tInterpolate3; -typedef struct { - long x[5]; - long y[10]; - int idx1; -} tInterpolate5; -typedef struct { - tInterpolate2 state1; - tInterpolate2 state2; -} tInterpolate4; -typedef struct { - tInterpolate3 state1; - tInterpolate2 state2; -} tInterpolate6; -typedef struct { - tInterpolate2 state1; - tInterpolate4 state2; -} tInterpolate8; -typedef struct { - tInterpolate3 state1; - tInterpolate3 state2; -} tInterpolate9; -typedef struct { - tInterpolate5 state1; - tInterpolate2 state2; -} tInterpolate10; -typedef struct { - tInterpolate4 state1; - tInterpolate3 state2; -} tInterpolate12; -typedef struct { - tInterpolate5 state1; - tInterpolate3 state2; -} tInterpolate15; -typedef struct { - tInterpolate2 state1; - tInterpolate8 state2; -} tInterpolate16; -typedef struct { - tInterpolate9 state1; - tInterpolate2 state2; -} tInterpolate18; -typedef struct { - tInterpolate10 state1; - tInterpolate2 state2; -} tInterpolate20; - -typedef union { - tInterpolate2 u2; - tInterpolate3 u3; - tInterpolate4 u4; - tInterpolate5 u5; - tInterpolate6 u6; - tInterpolate8 u8; - tInterpolate9 u9; - tInterpolate10 u10; - tInterpolate12 u12; - tInterpolate15 u15; - tInterpolate16 u16; - tInterpolate18 u18; - tInterpolate20 u20; -} tInterpolateState; - - /* --------------------- */ - /* - Function p-types. - */ - /* --------------------- */ -int inv_get_interp_amount( int x ); -int inv_interpolate( int amount, long input, long *output, tInterpolateState *state ); -long inv_fxmult( long x, long y ); - - -#ifdef __cplusplus -} -#endif - -#endif /* INTERPOLATOR_H */ |