/hardware/invensense/6515/libsensors_iio/ |
D | CompassSensor.IIO.primary.cpp | 147 const char* compass = dev_full_name; in enable_iio_sysfs() local 165 find_type_by_name(compass, "iio:device")); in enable_iio_sysfs() 171 compass, iio_device_node, strerror(res), res); in enable_iio_sysfs() 174 "HAL:iio %s, compass_fd opened : %d", compass, compass_fd); in enable_iio_sysfs() 404 const char *compass = dev_full_name; in fillList() local 406 if (compass) { in fillList() 407 if(!strcmp(compass, "INV_COMPASS")) { in fillList() 415 if(!strcmp(compass, "compass") in fillList() 416 || !strcmp(compass, "INV_AK8975") in fillList() 417 || !strcmp(compass, "AKM8975") in fillList() [all …]
|
D | CompassSensor.IIO.9150.cpp | 294 const char *compass = sensor_name; in fillList() local 296 if (compass) { in fillList() 297 if(!strcmp(compass, "INV_COMPASS")) { in fillList() 304 if(!strcmp(compass, "compass") in fillList() 305 || !strcmp(compass, "INV_AK8975") in fillList() 306 || !strcmp(compass, "AK8975") in fillList() 307 || !strcmp(compass, "ak8975")) { in fillList() 314 if(!strcmp(compass, "compass") in fillList() 315 || !strcmp(compass, "INV_AK8963") in fillList() 316 || !strcmp(compass, "AK8963") in fillList() [all …]
|
D | CompassSensor.AKM.cpp | 154 const char *compass = COMPASS_NAME; in fillList() local 156 if (compass) { in fillList() 157 if (!strcmp(compass, "AKM8963")) { in fillList() 164 if (!strcmp(compass, "AKM8975")) { in fillList() 174 "this implementation only supports AKM compasses", compass); in fillList()
|
D | sensors_mpl.cpp | 127 compass, enumerator 173 mPollFds[compass].fd = mCompassSensor->getFd(); in sensors_poll_context_t() 174 mPollFds[compass].events = POLLIN; in sensors_poll_context_t() 175 mPollFds[compass].revents = 0; in sensors_poll_context_t() 274 } else if (i == compass) { in pollEvents()
|
/hardware/bsp/intel/peripheral/libupm/examples/c++/ |
D | hmc5883l.cxx | 34 upm::Hmc5883l* compass = new upm::Hmc5883l(0); in main() local 37 compass->set_declination(0.2749); // Set your declination from true north in radians in main() 41 compass->update(); // Update the coordinates in main() 42 pos = compass->coordinates(); in main() 44 … fprintf(stdout, "heading: %5.2f direction: %3.2f\n", compass->heading(), compass->direction()); in main()
|
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/ |
D | data_builder.c | 90 memcpy(raw, sensors.compass.raw, sizeof(sensors.compass.raw)); in inv_get_raw_compass() 100 sensors.compass.accuracy = inv_data_builder.save.compass_accuracy; in inv_db_load_func() 105 if (sensors.compass.accuracy == 3) { in inv_db_load_func() 197 return sensors.compass.sensitivity; in inv_get_compass_sensitivity() 308 sensors.compass.sample_rate_us = sample_rate_us; in inv_set_compass_sample_rate() 309 sensors.compass.sample_rate_ms = sample_rate_us / 1000; in inv_set_compass_sample_rate() 310 if (sensors.compass.bandwidth == 0) { in inv_set_compass_sample_rate() 311 sensors.compass.bandwidth = (int)(1000000L / sample_rate_us); in inv_set_compass_sample_rate() 327 *sample_rate_ms = sensors.compass.sample_rate_ms; in inv_get_compass_sample_rate_ms() 367 sensors.compass.bandwidth = bandwidth_hz; in inv_set_compass_bandwidth() [all …]
|
D | hal_outputs.c | 299 long compass[3], quat_geomagnetic[4]; in inv_get_sensor_type_geomagnetic_rotation_vector() local 301 inv_get_compass_set(compass, accuracy, timestamp); in inv_get_sensor_type_geomagnetic_rotation_vector() 520 long compass[3], quat_geomagnetic[4]; in inv_get_sensor_type_orientation_geomagnetic() local 521 inv_get_compass_set(compass, accuracy, timestamp); in inv_get_sensor_type_orientation_geomagnetic() 536 long compass[3]; in inv_generate_hal_outputs() local 545 hal_out.compass_status = sensor_cal->compass.status; in inv_generate_hal_outputs() 559 if ((sensor_cal->compass.status & INV_SENSOR_ON) && (sr > sensor_cal->compass.sample_rate_ms)) { in inv_generate_hal_outputs() 560 sr = sensor_cal->compass.sample_rate_ms; in inv_generate_hal_outputs() 571 if ((sensor_cal->accel.status & sensor_cal->compass.status & INV_SENSOR_ON) == 0) { in inv_generate_hal_outputs() 575 …if ((sensor_cal->gyro.status & sensor_cal->accel.status & sensor_cal->compass.status & INV_SENSOR_… in inv_generate_hal_outputs() [all …]
|
D | ml_math_func.c | 39 float inv_compass_angle(const long *compass, const long *grav, const float *quat) in inv_compass_angle() argument 46 cgcross[1] = (float)compass[1] * grav[2] - (float)compass[2] * grav[1]; in inv_compass_angle() 47 cgcross[2] = (float)compass[2] * grav[0] - (float)compass[0] * grav[2]; in inv_compass_angle() 48 cgcross[3] = (float)compass[0] * grav[1] - (float)compass[1] * grav[0]; in inv_compass_angle() 698 void inv_get_cross_product_vec(float *cgcross, float compass[3], float grav[3]) { in inv_get_cross_product_vec() 700 cgcross[0] = (float)compass[1] * grav[2] - (float)compass[2] * grav[1]; in inv_get_cross_product_vec() 701 cgcross[1] = (float)compass[2] * grav[0] - (float)compass[0] * grav[2]; in inv_get_cross_product_vec() 702 cgcross[2] = (float)compass[0] * grav[1] - (float)compass[1] * grav[0]; in inv_get_cross_product_vec()
|
D | 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]);
|
D | data_builder.h | 130 struct inv_single_sensor_t compass; member 241 inv_error_t inv_build_compass(const long *compass, int status,
|
/hardware/invensense/6515/libsensors_iio/software/core/mllite/ |
D | data_builder.c | 91 memcpy(raw, sensors.compass.raw, sizeof(sensors.compass.raw)); in inv_get_raw_compass() 101 sensors.compass.accuracy = inv_data_builder.save.compass_accuracy; in inv_db_load_func() 106 if (sensors.compass.accuracy == 3) { in inv_db_load_func() 198 return sensors.compass.sensitivity; in inv_get_compass_sensitivity() 355 *ts = sensors.compass.timestamp; in inv_raw_sensor_timestamp() 357 if (sensors.compass.timestamp_prev != sensors.compass.timestamp) in inv_raw_sensor_timestamp() 388 if ((sensors.compass.status & INV_SENSOR_ON) == 0) { in inv_get_9_axis_timestamp() 394 td[1] = sample_rate_us - sensors.compass.sample_rate_us; in inv_get_9_axis_timestamp() 443 if ((sensors.compass.status & INV_SENSOR_ON) == 0) { in inv_get_6_axis_compass_accel_timestamp() 452 td[1] = sample_rate_us - sensors.compass.sample_rate_us; in inv_get_6_axis_compass_accel_timestamp() [all …]
|
D | hal_outputs.c | 341 long compass[3]; in inv_get_sensor_type_geomagnetic_rotation_vector() local 345 inv_get_compass_set(compass, accuracy, ×tamp1); in inv_get_sensor_type_geomagnetic_rotation_vector() 562 long compass[3]; in inv_get_sensor_type_orientation_geomagnetic() local 564 inv_get_compass_set(compass, accuracy, ×tamp1); in inv_get_sensor_type_orientation_geomagnetic() 580 long compass[3]; in inv_generate_hal_outputs() local 589 hal_out.compass_status = sensor_cal->compass.status; in inv_generate_hal_outputs() 603 if ((sensor_cal->compass.status & INV_SENSOR_ON) && (sr > sensor_cal->compass.sample_rate_ms)) { in inv_generate_hal_outputs() 604 sr = sensor_cal->compass.sample_rate_ms; in inv_generate_hal_outputs() 619 if (sensor_cal->compass.timestamp_prev == sensor_cal->compass.timestamp) { in inv_generate_hal_outputs() 629 if ((sensor_cal->accel.status & sensor_cal->compass.status & INV_SENSOR_ON) == 0) { in inv_generate_hal_outputs() [all …]
|
D | ml_math_func.c | 39 float inv_compass_angle(const long *compass, const long *grav, const float *quat) in inv_compass_angle() argument 46 cgcross[1] = (float)compass[1] * grav[2] - (float)compass[2] * grav[1]; in inv_compass_angle() 47 cgcross[2] = (float)compass[2] * grav[0] - (float)compass[0] * grav[2]; in inv_compass_angle() 48 cgcross[3] = (float)compass[0] * grav[1] - (float)compass[1] * grav[0]; in inv_compass_angle() 698 void inv_get_cross_product_vec(float *cgcross, float compass[3], float grav[3]) { in inv_get_cross_product_vec() 700 cgcross[0] = (float)compass[1] * grav[2] - (float)compass[2] * grav[1]; in inv_get_cross_product_vec() 701 cgcross[1] = (float)compass[2] * grav[0] - (float)compass[0] * grav[2]; in inv_get_cross_product_vec() 702 cgcross[2] = (float)compass[0] * grav[1] - (float)compass[1] * grav[0]; in inv_get_cross_product_vec()
|
D | 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]);
|
/hardware/invensense/65xx/libsensors_iio/ |
D | CompassSensor.IIO.primary.cpp | 147 const char* compass = dev_full_name; in enable_iio_sysfs() local 165 find_type_by_name(compass, "iio:device")); in enable_iio_sysfs() 171 compass, iio_device_node, strerror(res), res); in enable_iio_sysfs() 174 "HAL:iio %s, compass_fd opened : %d", compass, compass_fd); in enable_iio_sysfs() 404 const char *compass = dev_full_name; in fillList() local 406 if (compass) { in fillList() 407 if(!strcmp(compass, "INV_COMPASS")) { in fillList() 415 if(!strcmp(compass, "compass") in fillList() 416 || !strcmp(compass, "INV_AK8975") in fillList() 417 || !strncmp(compass, "ak89xx", 2)) { in fillList() [all …]
|
D | CompassSensor.IIO.9150.cpp | 292 const char *compass = sensor_name; in fillList() local 294 if (compass) { in fillList() 295 if(!strcmp(compass, "INV_COMPASS")) { in fillList() 302 if(!strcmp(compass, "compass") in fillList() 303 || !strcmp(compass, "INV_AK8975") in fillList() 304 || !strncmp(compass, "AK89xx",2) in fillList() 305 || !strncmp(compass, "ak89xx",2)) { in fillList() 312 if(!strcmp(compass, "compass") in fillList() 313 || !strncmp(compass, "mlx90399",3) in fillList() 314 || !strncmp(compass, "MLX90399",3)) { in fillList() [all …]
|
D | CompassSensor.AKM.cpp | 154 const char *compass = COMPASS_NAME; in fillList() local 156 if (compass) { in fillList() 157 if (!strcmp(compass, "AKM8963")) { in fillList() 164 if (!strcmp(compass, "AKM8975")) { in fillList() 174 "this implementation only supports AKM compasses", compass); in fillList()
|
D | sensors_mpl.cpp | 101 compass, enumerator 145 mPollFds[compass].fd = mCompassSensor->getFd(); in sensors_poll_context_t() 146 mPollFds[compass].events = POLLIN; in sensors_poll_context_t() 147 mPollFds[compass].revents = 0; in sensors_poll_context_t() 223 } else if (i == compass) { in pollEvents()
|
/hardware/bsp/intel/peripheral/libmraa/examples/c++/ |
D | CMakeLists.txt | 6 add_executable (I2c-compass I2c-compass.cpp) 17 target_link_libraries (I2c-compass mraa stdc++ m)
|
/hardware/invensense/6515/libsensors_iio/software/simple_apps/playback/linux/ |
D | datalogger_outputs.c | 143 struct inv_single_sensor_t *pc = &dl_out.sc.compass; in inv_get_sensor_type_compass_raw_short() 163 long compass[3]; in inv_get_sensor_type_compass_float() local 168 inv_get_compass_set(compass, accuracy, timestamp); in inv_get_sensor_type_compass_float() 170 values[0] = (float)compass[0]*COMPASS_CONVERSION; in inv_get_sensor_type_compass_float() 171 values[1] = (float)compass[1]*COMPASS_CONVERSION; in inv_get_sensor_type_compass_float() 172 values[2] = (float)compass[2]*COMPASS_CONVERSION; in inv_get_sensor_type_compass_float()
|
D | and_constructor.c | 165 long compass[3]; in inv_playback() local 168 int32_to_long(buffer, compass, 3); in inv_playback() 169 inv_build_compass(compass, 0, ts); in inv_playback()
|
D | main.c | 397 float compass[3]; in fifo_callback() local 399 compass[0] = inv_q16_to_float(lcompass[0]); in fifo_callback() 400 compass[1] = inv_q16_to_float(lcompass[1]); in fifo_callback() 401 compass[2] = inv_q16_to_float(lcompass[2]); in fifo_callback() 402 PRINT_3ELM_ARRAY_FLOAT(10, 5, compass); in fifo_callback()
|
/hardware/invensense/6515/libsensors_iio/software/simple_apps/stress_iio/ |
D | README | 14 this includes the compass in the enable sequence when you have 9150 or other 15 secondary bus compass. It won't work for compasses on the primary bus. 24 other sensor output (including quaternion, gyro, accel, and compass.) in the
|
/hardware/bsp/intel/peripheral/libmraa/examples/ |
D | samples.mapping.txt | 13 I2c-compass.cpp java/I2cCompass.java
|
/hardware/invensense/65xx/libsensors_iio/software/core/mpl/ |
D | mag_disturb.h | 20 const long *compass, const long *gravity);
|