Searched refs:SENSOR_PI (Results 1 – 16 of 16) sorted by relevance
| /Zephyr-latest/tests/drivers/sensor/generic/src/ |
| D | main.c | 294 zassert_equal(data.val1, SENSOR_PI/1000000LL, in ZTEST() 296 zassert_equal(data.val2, SENSOR_PI%(data.val1 * 1000000LL), in ZTEST() 312 SENSOR_PI, "the data does not match"); in ZTEST() 314 SENSOR_PI, "the data does not match"); in ZTEST() 317 sensor_value_from_double(&data, (double)(SENSOR_PI) / 1000000.0); in ZTEST() 318 zassert_equal(data.val1, SENSOR_PI/1000000LL, in ZTEST() 320 zassert_equal(data.val2, SENSOR_PI%(data.val1 * 1000000LL), in ZTEST() 323 sensor_value_from_float(&data, (float)(SENSOR_PI) / 1000000.0f); in ZTEST() 324 zassert_equal(data.val1, SENSOR_PI/1000000LL, in ZTEST() 326 zassert_equal(data.val2, SENSOR_PI%(data.val1 * 1000000LL), in ZTEST()
|
| /Zephyr-latest/drivers/sensor/bosch/bmg160/ |
| D | bmg160.h | 141 ((2 * range_dps * SENSOR_PI) / 180LL / 65536LL) 143 (((scale * 90LL * 65536LL) + SENSOR_PI / 2) / SENSOR_PI)
|
| /Zephyr-latest/include/zephyr/drivers/ |
| D | sensor.h | 1178 #define SENSOR_PI 3141592LL macro 1269 return (micro_rad_s * 180LL + SENSOR_PI / 2) / SENSOR_PI; in sensor_rad_to_degrees() 1271 return (micro_rad_s * 180LL - SENSOR_PI / 2) / SENSOR_PI; in sensor_rad_to_degrees() 1283 rad->val1 = ((int64_t)d * SENSOR_PI / 180LL) / 1000000LL; in sensor_degrees_to_rad() 1284 rad->val2 = ((int64_t)d * SENSOR_PI / 180LL) % 1000000LL; in sensor_degrees_to_rad() 1302 return (micro_rad_s * 180LL * 100000LL) / SENSOR_PI; in sensor_rad_to_10udegrees() 1313 rad->val1 = ((int64_t)d * SENSOR_PI / 180LL / 100000LL) / 1000000LL; in sensor_10udegrees_to_rad() 1314 rad->val2 = ((int64_t)d * SENSOR_PI / 180LL / 100000LL) % 1000000LL; in sensor_10udegrees_to_rad()
|
| /Zephyr-latest/drivers/sensor/tdk/icm42688/ |
| D | icm42688_emul.c | 292 *epsilon = (3 * SENSOR_PI * Q31_SCALE * 10LL / 1000000LL / 180LL / sensitivity / 2LL) >> in icm42688_emul_get_gyro_ranges() 294 *upper = (((fs_mdps * SENSOR_PI / 1000000LL) * Q31_SCALE) / 1000LL / 180LL) >> *shift; in icm42688_emul_get_gyro_ranges() 389 SENSOR_PI / 10LL, in icm42688_emul_backend_set_channel()
|
| D | icm42688.h | 580 int64_t in10_rads = (int64_t)in * SENSOR_PI * 10LL; in icm42688_gyro_rads()
|
| /Zephyr-latest/subsys/sensing/sensor/phy_3d_sensor/ |
| D | phy_3d_sensor.c | 79 int64_t micro_deg = micro_rad * 180000000LL / SENSOR_PI; in gyro_sensor_value_to_q31() 89 int64_t micro_rad = micro_deg * SENSOR_PI / 180000000LL; in gyro_q31_to_sensor_value()
|
| /Zephyr-latest/drivers/sensor/tdk/icm42x70/ |
| D | icm42670.c | 101 conv_val = ((int64_t)raw_val * fs * SENSOR_PI) / (INT16_MAX * 180U); in icm42670_convert_gyro()
|
| /Zephyr-latest/drivers/sensor/tdk/icm45686/ |
| D | icm45686.h | 246 int64_t in10_rads = (int64_t)in * SENSOR_PI * 10LL; in icm45686_gyro_rads()
|
| /Zephyr-latest/drivers/sensor/tdk/mpu6050/ |
| D | mpu6050.c | 36 conv_val = ((int64_t)raw_val * SENSOR_PI * 10) / in mpu6050_convert_gyro()
|
| /Zephyr-latest/drivers/sensor/bosch/bmi270/ |
| D | bmi270.c | 88 val->val1 = ((raw_val * (int64_t) range * SENSOR_PI) in channel_gyro_convert() 90 val->val2 = ((raw_val * (int64_t) range * SENSOR_PI) in channel_gyro_convert()
|
| /Zephyr-latest/drivers/sensor/st/lsm6ds0/ |
| D | lsm6ds0.h | 316 #define SENSOR_PI_DOUBLE (SENSOR_PI / 1000000.0)
|
| /Zephyr-latest/drivers/sensor/tdk/mpu9250/ |
| D | mpu9250.c | 74 conv_val = ((int64_t)raw_val * SENSOR_PI * 10) / in mpu9250_convert_gyro()
|
| /Zephyr-latest/drivers/sensor/bosch/bmi08x/ |
| D | bmi08x.h | 427 #define BMI08X_GYR_SCALE(range_dps) ((2 * range_dps * SENSOR_PI) / 180LL / 65536LL)
|
| /Zephyr-latest/drivers/sensor/tdk/icm42605/ |
| D | icm42605.c | 45 conv_val = ((int64_t)raw_val * SENSOR_PI * 10) / in icm42605_convert_gyro()
|
| /Zephyr-latest/drivers/sensor/bosch/bmi160/ |
| D | bmi160.h | 306 #define BMI160_GYR_SCALE_NUMERATOR(range_dps) (2 * (range_dps) * SENSOR_PI)
|
| /Zephyr-latest/drivers/sensor/st/lsm6dsv16x/ |
| D | lsm6dsv16x_decoder.c | 123 (int32_t)(((udps_lsb) * SENSOR_PI / 180LL) / 1000000LL)
|