Lines Matching defs:orientation

200 /** Sets orientation and sensitivity field for a sensor.
202 * @param[in] orientation Orientation description of how part is mounted.
207 int orientation, long sensitivity)
218 // Make sure we don't describe some impossible orientation
219 if ((orientation & 3) == 3) {
222 if ((orientation & 0x18) == 0x18) {
225 if ((orientation & 0xc0) == 0xc0) {
229 orientation = 0x88; // Identity
230 MPL_LOGE("\n\nCritical error! Impossible mounting orientation given. Using Identity instead\n\n");
232 sensor->orientation = orientation;
236 * @param[in] orientation A scalar defining the transformation from chip mounting
244 void inv_set_gyro_orientation_and_scale(int orientation, long sensitivity)
250 fwrite(&orientation, sizeof(orientation), 1, inv_data_builder.file);
254 set_sensor_orientation_and_scale(&sensors.gyro, orientation,
428 /** Sets the orientation and sensitivity of the gyro data.
429 * @param[in] orientation A scalar defining the transformation from chip mounting
437 void inv_set_accel_orientation_and_scale(int orientation, long sensitivity)
443 fwrite(&orientation, sizeof(orientation), 1, inv_data_builder.file);
447 set_sensor_orientation_and_scale(&sensors.accel, orientation,
452 * @param[in] orientation A scalar defining the transformation from chip mounting
460 void inv_set_compass_orientation_and_scale(int orientation, long sensitivity)
466 fwrite(&orientation, sizeof(orientation), 1, inv_data_builder.file);
470 set_sensor_orientation_and_scale(&sensors.compass, orientation, sensitivity);
495 inv_convert_to_body_with_scale(sensor->orientation, sensor->sensitivity << 1, raw32, sensor->raw_scaled);
501 inv_convert_to_body_with_scale(sensor->orientation, sensor->sensitivity << 1, raw32, sensor->calibrated);
695 inv_convert_to_body_with_scale(sensors.gyro.orientation, 46850825L,
1356 *orient = sensors.gyro.orientation;
1362 *orient = sensors.accel.orientation;