Searched defs:gravity (Results 1 - 6 of 6) sorted by relevance
/hardware/invensense/6515/libsensors_iio/software/simple_apps/self_test/ |
H A D | inv_self_test.c | 483 // and it contains the gravity vector. 484 // Find the orientation of the device, by looking for gravity 521 Remove gravity, gravity in raw units should be 16384 = 2^14 for a +/- 523 so gravity needs to scale up accordingly. 525 /* gravity correction for accel_bias format */ 526 long gravity = axis_sign * (32768L / accel_scale.i) * 1000L; local 527 accel_bias[axis].l -= gravity; 528 /* gravity correction for saved_data.accel_bias format */ 529 gravity [all...] |
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/ |
H A D | hal_outputs.c | 67 * @param[out] values Acceleration in m/s^2 includes gravity. So while not in motion, it
106 long gravity[3], accel[3];
local 110 inv_get_gravity(gravity);
111 accel[0] -= gravity[0] >> 14;
112 accel[1] -= gravity[1] >> 14;
113 accel[2] -= gravity[2] >> 14;
135 long gravity[3];
local 140 inv_get_gravity(gravity);
141 values[0] = (gravity[0] >> 14) * ACCEL_CONVERSION;
142 values[1] = (gravity[ [all...] |
H A D | results_holder.c | 235 /** Gets gravity vector 236 * @param[out] data gravity vector in body frame scaled such that 1.0 = 2^30. 475 * with gravity removed 477 * with gravity removed 483 long gravity[3]; local 488 inv_get_gravity(gravity); 489 data[0] -= gravity[0] >> 14; 490 data[1] -= gravity[1] >> 14; 491 data[2] -= gravity[2] >> 14;
|
/hardware/invensense/6515/libsensors_iio/software/core/mllite/ |
H A D | hal_outputs.c | 115 * @param[out] values Acceleration in m/s^2 includes gravity. So while not in motion, it 154 long gravity[3], accel[3]; local 158 inv_get_gravity(gravity); 159 accel[0] -= gravity[0] >> 14; 160 accel[1] -= gravity[1] >> 14; 161 accel[2] -= gravity[2] >> 14; 179 long gravity[3]; local 182 inv_get_gravity(gravity); 183 values[0] = (gravity[0] >> 14) * ACCEL_CONVERSION; 184 values[1] = (gravity[ [all...] |
H A D | results_holder.c | 251 /** Gets gravity vector
252 * @param[out] data gravity vector in body frame scaled such that 1.0 = 2^30.
599 * with gravity removed
601 * with gravity removed
607 long gravity[3];
local 612 inv_get_gravity(gravity);
613 data[0] -= gravity[0] >> 14;
614 data[1] -= gravity[1] >> 14;
615 data[2] -= gravity[2] >> 14;
|
/hardware/invensense/6515/libsensors_iio/software/simple_apps/playback/linux/ |
H A D | main.c | 494 float gravity[3]; local 495 inv_get_sensor_type_gravity_float(gravity, NULL, NULL); 496 PRINT_3ELM_ARRAY_FLOAT(10, 5, gravity);
|
Completed in 96 milliseconds