Lines Matching refs:Gyro
228 LOGV_IF(EXTRA_VERBOSE, "HAL:gyro temperature path: %s", mpu.temperature);
276 mPendingEvents[Gyro].version = sizeof(sensors_event_t);
277 mPendingEvents[Gyro].sensor = ID_GY;
278 mPendingEvents[Gyro].type = SENSOR_TYPE_GYROSCOPE;
304 mHandlers[Gyro] = &MPLSensor::gyroHandler;
538 /* gyro setup */
603 // get gyro orientation
615 "HAL:gyro mounting matrix: "
629 LOGE("HAL:Couldn't read gyro mounting matrix");
682 /* Turn off Gyro master enable */
686 LOGE("HAL:could not disable gyro master enable");
792 //3. Either Gyro or Accel must be enabled/configured before next step
1028 uint32_t all_changeables = (1 << Gyro) | (1 << RawGyro) | (1 << Accelerometer)
1050 if (changed & ((1 << Gyro) | (1 << RawGyro))) {
1051 res = enableOneSensor(sensors & INV_THREE_AXIS_GYRO, "gyro", &MPLSensor::enableGyro);
1204 update = inv_get_sensor_type_gyroscope(s->gyro.v, &status, &s->timestamp);
1205 LOGV_IF(HANDLER_DATA, "HAL:gyro data : %+f %+f %+f -- %lld - %d",
1206 s->gyro.v[0], s->gyro.v[1], s->gyro.v[2], s->timestamp, update);
1215 update = inv_get_sensor_type_gyroscope_raw(s->gyro.v, &status, &s->timestamp);
1216 LOGV_IF(HANDLER_DATA, "HAL:raw gyro data : %+f %+f %+f -- %lld - %d",
1217 s->gyro.v[0], s->gyro.v[1], s->gyro.v[2], s->timestamp, update);
1265 s->gyro.v, &status, &s->timestamp);
1267 s->gyro.v[0], s->gyro.v[1], s->gyro.v[2], s->timestamp, update);
1276 update = inv_get_sensor_type_gravity(s->gyro.v, &status, &s->timestamp);
1278 s->gyro.v[0], s->gyro.v[1], s->gyro.v[2], s->timestamp, update);
1327 what = Gyro;
1328 sname = "Gyro";
1384 case Gyro:
1403 for (int i = Gyro; i <= MagneticField; i++) {
1454 what = Gyro;
1455 sname = "Gyro";
1516 case Gyro:
1519 for (int i = Gyro; i <= Accelerometer + mCompassSensor->isIntegrated();
1530 (((mEnabled & (1 << Gyro)) && ns > mDelays[Gyro]) ||
1533 LOGV_IF(PROCESS_VERBOSE, "HAL:ignore delay set due to gyro/accel");
1597 gyro vs compass vs accel */
1615 LOGV_IF(PROCESS_VERBOSE, "HAL:MPL gyro sample rate: %d", mplGyroRate);
1649 LOGE("HAL:GYRO update delay error");
1672 wanted = (mDelays[Gyro] <= mDelays[RawGyro]?
1673 (mEnabled & (1 << Gyro)? mDelays[Gyro]: mDelays[RawGyro]):
1674 (mEnabled & (1 << RawGyro)? mDelays[RawGyro]: mDelays[Gyro]));
1684 LOGE_IF(res < 0, "HAL:GYRO update delay error");
1688 if (GY_ENABLED && mDelays[Gyro] < mDelays[Accelerometer]) {
1689 wanted = mDelays[Gyro];
1722 if (GY_ENABLED && mDelays[Gyro] < mDelays[MagneticField]) {
1723 wanted = mDelays[Gyro];
1807 * Should be called after reading at least one of gyro
1830 /* after the first no motion, the gyro should be
1894 LOGI_IF(mLocalSensorMask & INV_THREE_AXIS_GYRO, "gyro x/y/z: %d/%d/%d",
1939 mask |= (((mLocalSensorMask & INV_THREE_AXIS_GYRO)? 1 << Gyro: 0) +
1951 if (mask & (1 << Gyro)) {
1982 mPendingMask |= 1 << Gyro;
2393 LOGE("HAL:error reading gyro temperature");
2455 LOGE("HAL:Error reading gyro bias");
2495 /* first add gyro, accel and compass to the list */
2497 /* fill in gyro/accel values */
2499 LOGE("HAL:Can not get gyro/accel id");
2575 void MPLSensor::fillGyro(const char* gyro, struct sensor_t *list)
2579 if ( gyro != NULL && strcmp(gyro, "MPU3050") == 0) {
2580 list[Gyro].maxRange = GYRO_MPU3050_RANGE;
2581 list[Gyro].resolution = GYRO_MPU3050_RESOLUTION;
2582 list[Gyro].power = GYRO_MPU3050_POWER;
2583 list[Gyro].minDelay = GYRO_MPU3050_MINDELAY;
2584 } else if( gyro != NULL && strcmp(gyro, "MPU6050") == 0) {
2585 list[Gyro].maxRange = GYRO_MPU6050_RANGE;
2586 list[Gyro].resolution = GYRO_MPU6050_RESOLUTION;
2587 list[Gyro].power = GYRO_MPU6050_POWER;
2588 list[Gyro].minDelay = GYRO_MPU6050_MINDELAY;
2589 } else if( gyro != NULL && strcmp(gyro, "MPU6500") == 0) {
2590 list[Gyro].maxRange = GYRO_MPU6500_RANGE;
2591 list[Gyro].resolution = GYRO_MPU6500_RESOLUTION;
2592 list[Gyro].power = GYRO_MPU6500_POWER;
2593 list[Gyro].minDelay = GYRO_MPU6500_MINDELAY;
2594 } else if( gyro != NULL && strcmp(gyro, "MPU9150") == 0) {
2595 list[Gyro].maxRange = GYRO_MPU9150_RANGE;
2596 list[Gyro].resolution = GYRO_MPU9150_RESOLUTION;
2597 list[Gyro].power = GYRO_MPU9150_POWER;
2598 list[Gyro].minDelay = GYRO_MPU9150_MINDELAY;
2600 LOGE("HAL:unknown gyro id -- gyro params will be wrong.");
2602 list[Gyro].maxRange = GYRO_MPU3050_RANGE;
2603 list[Gyro].resolution = GYRO_MPU3050_RESOLUTION;
2604 list[Gyro].power = GYRO_MPU3050_POWER;
2605 list[Gyro].minDelay = GYRO_MPU3050_MINDELAY;
2608 list[RawGyro].maxRange = list[Gyro].maxRange;
2609 list[RawGyro].resolution = list[Gyro].resolution;
2610 list[RawGyro].power = list[Gyro].power;
2611 list[RawGyro].minDelay = list[Gyro].minDelay;
2622 list[RotationVector].power = list[Gyro].power +
2636 list[Orientation].power = list[Gyro].power +
2650 Gyro].power +
2664 list[LinearAccel].power = list[Gyro].power +