/hardware/bsp/intel/peripheral/libupm/examples/c++/ |
hmc5883l.cxx | 34 upm::Hmc5883l* compass = new upm::Hmc5883l(0); local 37 compass->set_declination(0.2749); // Set your declination from true north in radians 41 compass->update(); // Update the coordinates 42 pos = compass->coordinates(); 44 fprintf(stdout, "heading: %5.2f direction: %3.2f\n", compass->heading(), compass->direction());
|
/hardware/invensense/6515/libsensors_iio/ |
CompassSensor.IIO.9150.cpp | 39 #pragma message("HAL:build Invensense compass cal with YAS53x IIO on secondary bus") 44 #pragma message("HAL:build Invensense compass cal with AK8975 on primary bus") 50 #pragma message("HAL:build Invensense compass cal with compass IIO on secondary bus") 53 #pragma message("HAL:build third party compass cal HAL") 81 LOGE("Error Instantiating Compass\n"); 96 LOGE("HAL:Could not read compass mounting matrix"); 98 LOGV_IF(EXTRA_VERBOSE, "HAL:compass mounting matrix: " 165 LOGE("HAL:Compass update delay error"); 198 /* use for Invensense compass calibration * 294 const char *compass = sensor_name; local [all...] |
CompassSensor.IIO.primary.cpp | 39 #pragma message("HAL:build Invensense compass cal with AK8975 on primary bus") 85 LOGE("Error Instantiating Compass\n"); 101 LOGV_IF(SYSFS_VERBOSE, "HAL:compass name: %s", dev_full_name); 112 LOGE("HAL:could not read compass mounting matrix"); 116 "HAL:compass mounting matrix: " 135 LOGE("HAL:Could not open compass overunderflow"); 147 const char* compass = dev_full_name; local 165 find_type_by_name(compass, "iio:device")); 171 compass, iio_device_node, strerror(res), res); 174 "HAL:iio %s, compass_fd opened : %d", compass, compass_fd) 404 const char *compass = dev_full_name; local 525 const char* compass = dev_full_name; local [all...] |
CompassSensor.AKM.cpp | 30 // TODO: include corresponding header file for 3rd party compass sensor 47 0, "/sys/class/compass/akm8963/enable_mag", getTimestamp()); 48 write_sysfs_int((char*)"/sys/class/compass/akm8963/enable_mag", 0); 57 0, "/sys/class/compass/akm8963/enable_mag", getTimestamp()); 58 write_sysfs_int((char*)"/sys/class/compass/akm8963/enable_mag", 0); 100 // TODO: return if 3rd-party compass is enabled 154 const char *compass = COMPASS_NAME; local 156 if (compass) { 157 if (!strcmp(compass, "AKM8963")) { 164 if (!strcmp(compass, "AKM8975")) [all...] |
sensors_mpl.cpp | 127 compass, enumerator in enum:sensors_poll_context_t::__anon31927 173 mPollFds[compass].fd = mCompassSensor->getFd(); 174 mPollFds[compass].events = POLLIN; 175 mPollFds[compass].revents = 0; 274 } else if (i == compass) {
|
/hardware/invensense/6515/libsensors_iio/software/core/mllite/ |
data_builder.c | 86 /** Gets last value of raw compass data. 87 * @param[out] raw Raw compass data in mounting frame in hardware units. Length 3. 91 memcpy(raw, sensors.compass.raw, sizeof(sensors.compass.raw)); 101 sensors.compass.accuracy = inv_data_builder.save.compass_accuracy; 106 if (sensors.compass.accuracy == 3) { 191 /** Compass sensitivity. 198 return sensors.compass.sensitivity; 354 case 3: // Compass 355 *ts = sensors.compass.timestamp [all...] |
hal_outputs.c | 35 filter for compass data. 37 compass data, since the former is unfiltered and the latter is filtered, 45 int accuracy_mag; /**< Compass accuracy */ 341 long compass[3]; local 345 inv_get_compass_set(compass, accuracy, ×tamp1); 367 /** Compass data (uT) in body frame. 368 * @param[out] values Compass data in (uT), length 3. May be calibrated by having 395 /** Compass raw data (uT) in body frame. 396 * @param[out] values Compass data in (uT), length 3. May be calibrated by having 562 long compass[3] local 580 long compass[3]; local [all...] |
ml_math_func.h | 100 float inv_compass_angle(const long *compass, const long *grav, 115 void inv_get_cross_product_vec(float *cgcross, float compass[3], float grav[3]);
|
ml_math_func.c | 30 * Does the cross product of compass by gravity, then converts that 34 * @param[in] compass Compass Vector (Body Frame), length 3 39 float inv_compass_angle(const long *compass, const long *grav, const float *quat) 44 // Compass cross Gravity 46 cgcross[1] = (float)compass[1] * grav[2] - (float)compass[2] * grav[1]; 47 cgcross[2] = (float)compass[2] * grav[0] - (float)compass[0] * grav[2]; 48 cgcross[3] = (float)compass[0] * grav[1] - (float)compass[1] * grav[0] [all...] |
data_builder.h | 24 /** This is a new sample of compass data */ 133 struct inv_single_sensor_t compass; member in struct:inv_sensor_cal_t 179 /** compass Bias in chip frame, hardware units scaled by 2^16. */ 244 inv_error_t inv_build_compass(const long *compass, int status,
|
/hardware/invensense/65xx/libsensors_iio/ |
CompassSensor.AKM.cpp | 30 // TODO: include corresponding header file for 3rd party compass sensor 47 0, "/sys/class/compass/akm8963/enable_mag", getTimestamp()); 48 write_sysfs_int((char*)"/sys/class/compass/akm8963/enable_mag", 0); 57 0, "/sys/class/compass/akm8963/enable_mag", getTimestamp()); 58 write_sysfs_int((char*)"/sys/class/compass/akm8963/enable_mag", 0); 100 // TODO: return if 3rd-party compass is enabled 154 const char *compass = COMPASS_NAME; local 156 if (compass) { 157 if (!strcmp(compass, "AKM8963")) { 164 if (!strcmp(compass, "AKM8975")) [all...] |
CompassSensor.IIO.primary.cpp | 39 #pragma message("HAL:build Invensense compass cal with AK8975 on primary bus") 85 LOGE("Error Instantiating Compass\n"); 101 LOGV_IF(SYSFS_VERBOSE, "HAL:compass name: %s", dev_full_name); 112 LOGE("HAL:could not read compass mounting matrix"); 116 "HAL:compass mounting matrix: " 135 LOGE("HAL:Could not open compass overunderflow"); 147 const char* compass = dev_full_name; local 165 find_type_by_name(compass, "iio:device")); 171 compass, iio_device_node, strerror(res), res); 174 "HAL:iio %s, compass_fd opened : %d", compass, compass_fd) 404 const char *compass = dev_full_name; local 491 const char* compass = dev_full_name; local [all...] |
CompassSensor.IIO.9150.cpp | 39 #pragma message("HAL:build Invensense compass cal with YAS53x IIO on secondary bus") 44 #pragma message("HAL:build Invensense compass cal with AK8975 on primary bus") 50 #pragma message("HAL:build Invensense compass cal with compass IIO on secondary bus") 53 #pragma message("HAL:build third party compass cal HAL") 81 LOGE("Error Instantiating Compass\n"); 96 LOGE("HAL:Could not read compass mounting matrix"); 98 LOGV_IF(EXTRA_VERBOSE, "HAL:compass mounting matrix: " 163 LOGE("HAL:Compass update delay error"); 196 /* use for Invensense compass calibration * 292 const char *compass = sensor_name; local [all...] |
sensors_mpl.cpp | 101 compass, enumerator in enum:sensors_poll_context_t::__anon31938 145 mPollFds[compass].fd = mCompassSensor->getFd(); 146 mPollFds[compass].events = POLLIN; 147 mPollFds[compass].revents = 0; 223 } else if (i == compass) {
|
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/ |
data_builder.c | 85 /** Gets last value of raw compass data. 86 * @param[out] raw Raw compass data in mounting frame in hardware units. Length 3. 90 memcpy(raw, sensors.compass.raw, sizeof(sensors.compass.raw)); 100 sensors.compass.accuracy = inv_data_builder.save.compass_accuracy; 105 if (sensors.compass.accuracy == 3) { 190 /** Compass sensitivity. 197 return sensors.compass.sensitivity; 296 /** Set Compass Sample rate in micro seconds. 308 sensors.compass.sample_rate_us = sample_rate_us [all...] |
hal_outputs.c | 35 filter for compass data.
37 compass data, since the former is unfiltered and the latter is filtered,
45 int accuracy_mag; /**< Compass accuracy */
299 long compass[3], quat_geomagnetic[4];
local 301 inv_get_compass_set(compass, accuracy, timestamp);
321 /** Compass data (uT) in body frame.
322 * @param[out] values Compass data in (uT), length 3. May be calibrated by having
349 /** Compass raw data (uT) in body frame.
350 * @param[out] values Compass data in (uT), length 3. May be calibrated by having
520 long compass[3], quat_geomagnetic[4]; local 536 long compass[3]; local [all...] |
ml_math_func.h | 100 float inv_compass_angle(const long *compass, const long *grav, 115 void inv_get_cross_product_vec(float *cgcross, float compass[3], float grav[3]);
|
ml_math_func.c | 30 * Does the cross product of compass by gravity, then converts that 34 * @param[in] compass Compass Vector (Body Frame), length 3 39 float inv_compass_angle(const long *compass, const long *grav, const float *quat) 44 // Compass cross Gravity 46 cgcross[1] = (float)compass[1] * grav[2] - (float)compass[2] * grav[1]; 47 cgcross[2] = (float)compass[2] * grav[0] - (float)compass[0] * grav[2]; 48 cgcross[3] = (float)compass[0] * grav[1] - (float)compass[1] * grav[0] [all...] |
data_builder.h | 24 /** This is a new sample of compass data */ 130 struct inv_single_sensor_t compass; member in struct:inv_sensor_cal_t 176 /** compass Bias in chip frame, hardware units scaled by 2^16. */ 241 inv_error_t inv_build_compass(const long *compass, int status,
|
/hardware/invensense/6515/libsensors_iio/software/simple_apps/playback/linux/ |
datalogger_outputs.c | 137 * Raw (uncompensated) compass magnetic field (LSB) in chip frame. 143 struct inv_single_sensor_t *pc = &dl_out.sc.compass; 163 long compass[3]; local 168 inv_get_compass_set(compass, accuracy, timestamp); 170 values[0] = (float)compass[0]*COMPASS_CONVERSION; 171 values[1] = (float)compass[1]*COMPASS_CONVERSION; 172 values[2] = (float)compass[2]*COMPASS_CONVERSION;
|
and_constructor.c | 86 // compass setup 88 // scale is the max value of the compass in micro Tesla. 165 long compass[3]; local 168 int32_to_long(buffer, compass, 3); 169 inv_build_compass(compass, 0, ts); 316 // Set Compass Sample Rate in MPL in micro seconds 338 // Set Compass Sample Rate in MPL in micro seconds 349 // set compass sample rate in MPL in micro seconds
|
main.c | 397 float compass[3]; local 399 compass[0] = inv_q16_to_float(lcompass[0]); 400 compass[1] = inv_q16_to_float(lcompass[1]); 401 compass[2] = inv_q16_to_float(lcompass[2]); 402 PRINT_3ELM_ARRAY_FLOAT(10, 5, compass); 621 "Note on compass state values:\n"
|
/hardware/invensense/6515/libsensors_iio/software/core/mpl/ |
mag_disturb.h | 21 const long *compass, const long *gravity);
|
/hardware/invensense/65xx/libsensors_iio/software/core/mpl/ |
mag_disturb.h | 20 const long *compass, const long *gravity);
|
/external/libgdx/gdx/src/com/badlogic/gdx/input/ |
RemoteInput.java | 33 * An {@link Input} implementation that receives touch, key, accelerometer and compass events from a remote Android device. Just
176 private float[] compass = new float[3];
field in class:RemoteInput 252 case RemoteSender.COMPASS:
253 compass[0] = in.readFloat();
254 compass[1] = in.readFloat();
255 compass[2] = in.readFloat();
437 return compass[0];
442 return compass[1];
447 return compass[2];
489 if (peripheral == Peripheral.Compass) return true; [all...] |