Searched refs:geomag_quat (Results 1 – 2 of 2) sorted by relevance
/hardware/invensense/6515/libsensors_iio/software/core/mllite/ |
D | results_holder.c | 31 float geomag_quat[4]; member 92 memcpy(&rh.geomag_quat, quat, sizeof(rh.geomag_quat)); in inv_store_geomag_quaternion() 385 data[0] = (long)MIN(MAX(rh.geomag_quat[0] * ((float)(1L << 30)), -2147483648.), 2147483647.); in inv_get_geomagnetic_quaternion() 386 data[1] = (long)MIN(MAX(rh.geomag_quat[1] * ((float)(1L << 30)), -2147483648.), 2147483647.); in inv_get_geomagnetic_quaternion() 387 data[2] = (long)MIN(MAX(rh.geomag_quat[2] * ((float)(1L << 30)), -2147483648.), 2147483647.); in inv_get_geomagnetic_quaternion() 388 data[3] = (long)MIN(MAX(rh.geomag_quat[3] * ((float)(1L << 30)), -2147483648.), 2147483647.); in inv_get_geomagnetic_quaternion() 420 memcpy(data, rh.geomag_quat, sizeof(rh.geomag_quat)); in inv_get_geomagnetic_quaternion_float() 481 rh.geomag_quat[0] = 1.; in inv_init_results_holder()
|
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/ |
D | results_holder.c | 35 long geomag_quat[4]; member 304 inv_q_mult(rh.geomag_compass_correction, rh.accel_quat, rh.geomag_quat); in inv_get_geomagnetic_quaternion() 307 memcpy(data, rh.geomag_quat, sizeof(rh.geomag_quat)); in inv_get_geomagnetic_quaternion() 383 rh.geomag_quat[0] = 1L<<30; in inv_init_results_holder()
|