Home | History | Annotate | Download | only in libsensors

Lines Matching refs:gyro

232     mPendingEvents[Gyro].version = sizeof(sensors_event_t);
233 mPendingEvents[Gyro].sensor = ID_GY;
234 mPendingEvents[Gyro].type = SENSOR_TYPE_GYROSCOPE;
254 mHandlers[Gyro] = &MPLSensor::gyroHandler;
570 //after the first no motion, the gyro should be calibrated well
598 res = inv_get_float_array(INV_GYROS, s->gyro.v);
599 s->gyro.v[0] = s->gyro.v[0] * M_PI / 180.0;
600 s->gyro.v[1] = s->gyro.v[1] * M_PI / 180.0;
601 s->gyro.v[2] = s->gyro.v[2] * M_PI / 180.0;
694 s->gyro.v[0] = quat[1];
695 s->gyro.v[1] = quat[2];
696 s->gyro.v[2] = quat[3];
705 res = inv_get_float_array(INV_LINEAR_ACCELERATION, s->gyro.v);
706 s->gyro.v[0] *= 9.81;
707 s->gyro.v[1] *= 9.81;
708 s->gyro.v[2] *= 9.81;
718 res = inv_get_float_array(INV_GRAVITY, s->gyro.v);
719 s->gyro.v[0] *= 9.81;
720 s->gyro.v[1] *= 9.81;
721 s->gyro.v[2] *= 9.81;
810 what = Gyro;
868 what = Gyro;
1126 /* first add gyro, accel and compass to the list */
1144 /* fill in gyro values */
1298 void MPLSensor::fillGyro(const char* gyro, struct sensor_t *list)
1300 if ((gyro != NULL) && (strcmp(gyro, "mpu3050") == 0)) {
1301 list[Gyro].maxRange = GYRO_MPU3050_RANGE;
1302 list[Gyro].resolution = GYRO_MPU3050_RESOLUTION;
1303 list[Gyro].power = GYRO_MPU3050_POWER;
1305 list[Gyro].maxRange = GYRO_MPU6050_RANGE;
1306 list[Gyro].resolution = GYRO_MPU6050_RESOLUTION;
1307 list[Gyro].power = GYRO_MPU6050_POWER;
1317 list[RotationVector].power = list[Gyro].power + list[Accelerometer].power
1326 list[Orientation].power = list[Gyro].power + list[Accelerometer].power
1335 list[Gravity].power = list[Gyro].power + list[Accelerometer].power
1344 list[Gravity].power = list[Gyro].power + list[Accelerometer].power