Lines Matching defs:values

50 * @param[out] values Acceleration in m/s^2 includes gravity. So while not in motion, it

57 int inv_get_sensor_type_accelerometer(float *values, int8_t *accuracy,
66 values[0] = accel[0] * ACCEL_CONVERSION;
67 values[1] = accel[1] * ACCEL_CONVERSION;
68 values[2] = accel[2] * ACCEL_CONVERSION;
77 * @param[out] values Linear Acceleration in body frame, length 3, (m/s^2). May show
84 int inv_get_sensor_type_linear_acceleration(float *values, int8_t *accuracy,
94 values[0] = accel[0] * ACCEL_CONVERSION;
95 values[1] = accel[1] * ACCEL_CONVERSION;
96 values[2] = accel[2] * ACCEL_CONVERSION;
102 * @param[out] values Gravity vector in body frame, length 3, (m/s^2)
108 int inv_get_sensor_type_gravity(float *values, int8_t *accuracy,
117 values[0] = (gravity[0] >> 14) * ACCEL_CONVERSION;
118 values[1] = (gravity[1] >> 14) * ACCEL_CONVERSION;
119 values[2] = (gravity[2] >> 14) * ACCEL_CONVERSION;
132 * @param[out] values Rotation Rate in rad/sec.
138 int inv_get_sensor_type_gyroscope(float *values, int8_t *accuracy,
145 values[0] = gyro[0] * GYRO_CONVERSION;
146 values[1] = gyro[1] * GYRO_CONVERSION;
147 values[2] = gyro[2] * GYRO_CONVERSION;
156 * @param[out] values Rotation Rate in rad/sec.
162 int inv_get_sensor_type_gyroscope_raw(float *values, int8_t *accuracy,
169 values[0] = gyro[0] * GYRO_CONVERSION;
170 values[1] = gyro[1] * GYRO_CONVERSION;
171 values[2] = gyro[2] * GYRO_CONVERSION;
198 * @param[out] values Length 4.
203 int inv_get_sensor_type_rotation_vector(float *values, int8_t *accuracy,
210 values[0] = hal_out.nav_quat[1] * INV_TWO_POWER_NEG_30;
211 values[1] = hal_out.nav_quat[2] * INV_TWO_POWER_NEG_30;
212 values[2] = hal_out.nav_quat[3] * INV_TWO_POWER_NEG_30;
213 values[3] = hal_out.nav_quat[0] * INV_TWO_POWER_NEG_30;
215 values[0] = -hal_out.nav_quat[1] * INV_TWO_POWER_NEG_30;
216 values[1] = -hal_out.nav_quat[2] * INV_TWO_POWER_NEG_30;
217 values[2] = -hal_out.nav_quat[3] * INV_TWO_POWER_NEG_30;
218 values[3] = -hal_out.nav_quat[0] * INV_TWO_POWER_NEG_30;
220 values[4] = inv_get_heading_confidence_interval();
227 * @param[out] values Compass data in (uT), length 3. May be calibrated by having
233 int inv_get_sensor_type_magnetic_field(float *values, int8_t *accuracy,
246 values[i] = hal_out.compass_float[i];
287 /** This corresponds to Sensor.TYPE_ORIENTATION. All values are angles in degrees.
288 * @param[out] values Length 3, Degrees.<br>
289 * - values[0]: Azimuth, angle between the magnetic north direction
291 * - values[1]: Pitch, rotation around x-axis (-180 to 180), with positive values
293 * - values[2]: Roll, rotation around y-axis (-90 to 90), with positive
294 * values when the x-axis moves toward the z-axis.<br>
300 * these values instead.
308 int inv_get_sensor_type_orientation(float *values, int8_t *accuracy,
314 google_orientation(values);