HomeSort by relevance Sort by last modified time
    Searched refs:gyro (Results 1 - 25 of 34) sorted by null

1 2

  /hardware/bsp/intel/peripheral/libupm/examples/python/
itg3200.py 26 # Create an I2C gyro object
27 gyro = itg3200.Itg3200(0) variable
30 gyro.update() # Update the data
31 rot = gyro.getRawValues() # Read raw sensor data
32 ang = gyro.getRotation() # Read rotational speed (deg/sec)
37 print "Temp: %5.2f Raw: %6d" % (gyro.getTemperature(), gyro.getRawTemp())
41 # Delete the gyro object
42 del gyro
  /hardware/bsp/intel/peripheral/libupm/examples/c++/
enc03r.cxx 50 upm::ENC03R *gyro = new upm::ENC03R(0); local
57 gyro->calibrate(CALIBRATION_SAMPLES);
59 << gyro->calibrationValue() << endl;
65 unsigned int val = gyro->value();
66 double av = gyro->angularVelocity(val);
77 delete gyro;
itg3200.cxx 36 upm::Itg3200* gyro = new upm::Itg3200(0); local
39 gyro->update(); // Update the data
40 rot = gyro->getRawValues(); // Read raw sensor data
41 ang = gyro->getRotation(); // Read rotational speed (deg/sec)
46 fprintf(stdout, "Temp: %5.2f Raw: %6d\n", gyro->getTemperature(), gyro->getRawTemp());
  /hardware/bsp/intel/peripheral/libupm/examples/java/
Itg3200Sample.java 43 upm_itg3200.Itg3200 gyro = new upm_itg3200.Itg3200(0); local
46 gyro.update();
47 rot = gyro.getRawValues();
48 ang = gyro.getRotation();
54 System.out.println("Temp: " + gyro.getTemperature() + ", Raw: " + gyro.getRawTemp());
ENC03RSample.java 42 upm_enc03r.ENC03R gyro = new upm_enc03r.ENC03R(0); local
48 gyro.calibrate(CALIBRATION_SAMPLES);
49 System.out.println("Calibration complete. Reference value: " + gyro.calibrationValue());
54 long val = gyro.value();
55 double av = gyro.angularVelocity(val);
MPU9150Sample.java 50 float[] gyro = sensor.getGyroscope(); local
51 System.out.println("Gryoscope: " + "GX: " + gyro[0] + " GY: " + gyro[1] + " GZ: "
52 + gyro[2]);
  /hardware/bsp/intel/peripheral/libupm/examples/javascript/
itg3200.js 31 var gyro = new itg3200.Itg3200(0);
39 gyro.update(); // Update the data
40 rot = gyro.getRawValues(); // Read raw sensor data
41 ang = gyro.getRotation(); // Read rotational speed (deg/sec)
45 var temp = round2Digits(gyro.getTemperature());
46 var raw = round2Digits(gyro.getRawTemp());
  /hardware/invensense/6515/libsensors_iio/software/core/mllite/
data_builder.c 99 sensors.gyro.accuracy = inv_data_builder.save.gyro_accuracy;
171 /** Gyro sensitivity.
178 return sensors.gyro.sensitivity;
236 /** Sets the Orientation and Sensitivity of the gyro data.
255 set_sensor_orientation_and_scale(&sensors.gyro, orientation,
259 /** Set Gyro Sample rate in micro seconds.
260 * @param[in] sample_rate_us Set Gyro Sample rate in us
271 sensors.gyro.sample_rate_us = sample_rate_us;
272 sensors.gyro.sample_rate_ms = sample_rate_us / 1000;
273 if (sensors.gyro.bandwidth == 0)
    [all...]
hal_outputs.c 46 //int accuracy_gyro; /**< Gyro Accuracy */
204 long gyro[3]; local
207 inv_get_gyro_set(gyro, accuracy, timestamp);
209 values[0] = gyro[0] * GYRO_CONVERSION;
210 values[1] = gyro[1] * GYRO_CONVERSION;
211 values[2] = gyro[2] * GYRO_CONVERSION;
230 long gyro[3]; local
233 inv_get_gyro_set_raw(gyro, accuracy, timestamp);
234 values[0] = gyro[0] * GYRO_CONVERSION;
235 values[1] = gyro[1] * GYRO_CONVERSION
    [all...]
data_builder.h 22 /** This is a new sample of gyro data */
131 struct inv_single_sensor_t gyro; member in struct:inv_sensor_cal_t
181 /** gyro factory bias in chip frame, hardware units scaled by 2^16,
201 /** gyro bias in chip frame, hardware units scaled by 2^16, +/- 2000 dps
243 inv_error_t inv_build_gyro(const short *gyro, inv_time_t timestamp);
301 void inv_get_gyro(long *gyro);
ml_math_func.h 102 unsigned long inv_get_gyro_sum_of_sqr(const long *gyro);
  /hardware/invensense/6515/libsensors_iio/software/core/mpl/
fast_no_motion.h 30 inv_error_t inv_update_fast_nomot(long *gyro);
  /hardware/invensense/65xx/libsensors_iio/software/core/mpl/
fast_no_motion.h 30 inv_error_t inv_update_fast_nomot(long *gyro);
  /hardware/invensense/65xx/libsensors_iio/software/core/mllite/
data_builder.c 98 sensors.gyro.accuracy = inv_data_builder.save.gyro_accuracy;
170 /** Gyro sensitivity.
177 return sensors.gyro.sensitivity;
235 /** Sets the Orientation and Sensitivity of the gyro data.
254 set_sensor_orientation_and_scale(&sensors.gyro, orientation,
258 /** Set Gyro Sample rate in micro seconds.
259 * @param[in] sample_rate_us Set Gyro Sample rate in us
270 sensors.gyro.sample_rate_us = sample_rate_us;
271 sensors.gyro.sample_rate_ms = sample_rate_us / 1000;
272 if (sensors.gyro.bandwidth == 0)
    [all...]
hal_outputs.c 46 //int accuracy_gyro; /**< Gyro Accuracy */
165 long gyro[3]; local
168 inv_get_gyro_set(gyro, accuracy, timestamp);
170 values[0] = gyro[0] * GYRO_CONVERSION;
171 values[1] = gyro[1] * GYRO_CONVERSION;
172 values[2] = gyro[2] * GYRO_CONVERSION;
191 long gyro[3]; local
194 inv_get_gyro_set_raw(gyro, accuracy, timestamp);
195 values[0] = gyro[0] * GYRO_CONVERSION;
196 values[1] = gyro[1] * GYRO_CONVERSION;
    [all...]
data_builder.h 22 /** This is a new sample of gyro data */
128 struct inv_single_sensor_t gyro; member in struct:inv_sensor_cal_t
178 /** gyro factory bias in chip frame, hardware units scaled by 2^16,
198 /** gyro bias in chip frame, hardware units scaled by 2^16, +/- 2000 dps
240 inv_error_t inv_build_gyro(const short *gyro, inv_time_t timestamp);
297 void inv_get_gyro(long *gyro);
ml_math_func.h 102 unsigned long inv_get_gyro_sum_of_sqr(const long *gyro);
  /hardware/invensense/6515/libsensors_iio/software/simple_apps/playback/linux/
and_constructor.c 33 int product; /**< Gyro Product Number */
76 // gyro setup
114 short gyro[3]; local
146 r = fread(gyro, sizeof(gyro[0]), 3, inv_construct.file);
148 inv_build_gyro(gyro, ts);
150 gyro[0], gyro[1], gyro[2], ts);
310 // Set Gyro Sample Rate in MPL in micro second
    [all...]
datalogger_outputs.c 51 struct inv_single_sensor_t *pg = &dl_out.sc.gyro;
67 struct inv_single_sensor_t *pg = &dl_out.sc.gyro;
94 long gyro[3]; local
95 inv_get_gyro_set(gyro, accuracy, timestamp);
97 values[0] = (float)gyro[0] / 65536.f;
98 values[1] = (float)gyro[1] / 65536.f;
99 values[2] = (float)gyro[2] / 65536.f;
main.c 354 float gyro[3]; local
355 inv_get_gyro_float(gyro);
356 PRINT_3ELM_ARRAY_FLOAT(10, 5, gyro);
359 memcpy(gyro_keep[cnt], gyro, sizeof(float) * 3);
  /hardware/invensense/6515/libsensors_iio/
MPLSensor.cpp 208 LOGV_IF(EXTRA_VERBOSE, "HAL:gyro temperature path: %s", mpu.temperature);
217 /* read gyro FSR to calculate accel scale later */
225 LOGE("HAL:Error opening gyro FSR");
230 LOGE("HAL:Error reading gyro FSR");
234 LOGV_IF(EXTRA_VERBOSE, "HAL:Gyro FSR used %ld", mGyroScale);
239 /* read gyro self test scale used to calculate factory cal bias later */
245 LOGE("HAL:Error opening gyro self test scale");
250 LOGE("HAL:Error reading gyro self test scale");
254 LOGV_IF(EXTRA_VERBOSE, "HAL:Gyro self test scale used %ld", mGyroSelfTestScale);
259 /* open Factory Gyro Bias fd *
    [all...]
  /frameworks/native/services/sensorservice/
SensorFusion.cpp 60 // 200 Hz for gyro events is a good compromise between precision
79 // here we estimate the gyro rate (useful for debugging)
86 const vec3_t gyro(event.data);
89 // fusion in no gyro mode will ignore
90 mFusions[i].handleGyro(gyro, dT);
188 result.appendFormat("9-axis fusion %s (%zd clients), gyro-rate=%7.2fHz, "
205 "gyro-rate=%7.2fHz, "
221 result.appendFormat("geomag fusion (no gyro) %s (%zd clients), "
222 "gyro-rate=%7.2fHz, "
  /cts/apps/CameraITS/tests/sensor_fusion/
test_sensor_fusion.py 49 MIN_GYRO_SMP_RATE = 100.0 # Minimum gyro sample rate
86 argument, the test will collect a new set of camera+gyro data from the
94 # Collect or load the camera+gyro data. All gyro events as well as camera
103 # This will catch bugs where camera and gyro timestamps go completely out
108 gyro_times = [e["time"] for e in events["gyro"]]
113 "are not enclosed by gyro timestamps [%f, %f]" % (
121 print "Gyro samples per second", gyro_smp_per_sec
132 # Find the best offset (time-shift) to align the gyro and camera motion
133 # traces; this function integrates the shifted gyro data between camer
    [all...]
  /hardware/invensense/65xx/libsensors_iio/
MPLSensor.cpp 93 // mask of virtual sensors that require gyro + accel + compass data
100 // mask of virtual sensors that require gyro + accel data (but no compass data)
104 // mask of virtual sensors that require mag + accel data (but no gyro data)
300 LOGV_IF(EXTRA_VERBOSE, "HAL:gyro temperature path: %s", mpu.temperature);
309 /* read gyro FSR to calculate accel scale later */
317 LOGE("HAL:Error opening gyro FSR");
322 LOGE("HAL:Error reading gyro FSR");
326 LOGV_IF(EXTRA_VERBOSE, "HAL:Gyro FSR used %ld", mGyroScale);
331 /* read gyro self test scale used to calculate factory cal bias later */
337 LOGE("HAL:Error opening gyro self test scale")
    [all...]
  /device/google/contexthub/sensorhal/
hubconnection.cpp 370 // Add gyro settings
520 sv = &initEv(&nev[cnt++], timestamp, type, sensor)->gyro;
1006 } gyro, accel; local
    [all...]

Completed in 764 milliseconds

1 2