Searched refs:gravity (Results 1 – 9 of 9) sorted by relevance
106 long gravity[3], accel[3]; in inv_get_sensor_type_linear_acceleration() local110 inv_get_gravity(gravity); in inv_get_sensor_type_linear_acceleration()111 accel[0] -= gravity[0] >> 14; in inv_get_sensor_type_linear_acceleration()112 accel[1] -= gravity[1] >> 14; in inv_get_sensor_type_linear_acceleration()113 accel[2] -= gravity[2] >> 14; in inv_get_sensor_type_linear_acceleration()135 long gravity[3]; in inv_get_sensor_type_gravity() local140 inv_get_gravity(gravity); in inv_get_sensor_type_gravity()141 values[0] = (gravity[0] >> 14) * ACCEL_CONVERSION; in inv_get_sensor_type_gravity()142 values[1] = (gravity[1] >> 14) * ACCEL_CONVERSION; in inv_get_sensor_type_gravity()143 values[2] = (gravity[2] >> 14) * ACCEL_CONVERSION; in inv_get_sensor_type_gravity()
483 long gravity[3]; in inv_get_linear_accel() local488 inv_get_gravity(gravity); in inv_get_linear_accel()489 data[0] -= gravity[0] >> 14; in inv_get_linear_accel()490 data[1] -= gravity[1] >> 14; in inv_get_linear_accel()491 data[2] -= gravity[2] >> 14; in inv_get_linear_accel()
154 long gravity[3], accel[3]; in inv_get_sensor_type_linear_acceleration() local158 inv_get_gravity(gravity); in inv_get_sensor_type_linear_acceleration()159 accel[0] -= gravity[0] >> 14; in inv_get_sensor_type_linear_acceleration()160 accel[1] -= gravity[1] >> 14; in inv_get_sensor_type_linear_acceleration()161 accel[2] -= gravity[2] >> 14; in inv_get_sensor_type_linear_acceleration()179 long gravity[3]; in inv_get_sensor_type_gravity() local182 inv_get_gravity(gravity); in inv_get_sensor_type_gravity()183 values[0] = (gravity[0] >> 14) * ACCEL_CONVERSION; in inv_get_sensor_type_gravity()184 values[1] = (gravity[1] >> 14) * ACCEL_CONVERSION; in inv_get_sensor_type_gravity()185 values[2] = (gravity[2] >> 14) * ACCEL_CONVERSION; in inv_get_sensor_type_gravity()
607 long gravity[3]; in inv_get_linear_accel() local612 inv_get_gravity(gravity); in inv_get_linear_accel()613 data[0] -= gravity[0] >> 14; in inv_get_linear_accel()614 data[1] -= gravity[1] >> 14; in inv_get_linear_accel()615 data[2] -= gravity[2] >> 14; in inv_get_linear_accel()
526 long gravity = axis_sign * (32768L / accel_scale.i) * 1000L; in main() local527 accel_bias[axis].l -= gravity; in main()529 gravity = axis_sign * (32768L / accel_scale.i) * 65536L; in main()531 printf("Self-Test:Gravity = %ld\n", gravity); in main()533 save_data.factory_accel_bias[axis] -= gravity; in main()
20 const long *compass, const long *gravity);
21 const long *compass, const long *gravity);
494 float gravity[3]; in fifo_callback() local495 inv_get_sensor_type_gravity_float(gravity, NULL, NULL); in fifo_callback()496 PRINT_3ELM_ARRAY_FLOAT(10, 5, gravity); in fifo_callback()
132 * device minus the acceleration due to gravity.218 * A gravity output indicates the direction of and magnitude of gravity in231 * not including gravity.387 * 2-seconds window average gravity changed by at least 35 degrees since the391 * the first 1 second after activation or the estimated gravity at the last712 * device minus the acceleration due to gravity.