Home
last modified time | relevance | path

Searched refs:SENSOR_PI (Results 1 – 15 of 15) sorted by relevance

/Zephyr-latest/tests/drivers/sensor/generic/src/
Dmain.c294 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/
Dbmg160.h141 ((2 * range_dps * SENSOR_PI) / 180LL / 65536LL)
143 (((scale * 90LL * 65536LL) + SENSOR_PI / 2) / SENSOR_PI)
/Zephyr-latest/include/zephyr/drivers/
Dsensor.h1175 #define SENSOR_PI 3141592LL macro
1247 return (micro_rad_s * 180LL + SENSOR_PI / 2) / SENSOR_PI; in sensor_rad_to_degrees()
1249 return (micro_rad_s * 180LL - SENSOR_PI / 2) / SENSOR_PI; in sensor_rad_to_degrees()
1261 rad->val1 = ((int64_t)d * SENSOR_PI / 180LL) / 1000000LL; in sensor_degrees_to_rad()
1262 rad->val2 = ((int64_t)d * SENSOR_PI / 180LL) % 1000000LL; in sensor_degrees_to_rad()
1280 return (micro_rad_s * 180LL * 100000LL) / SENSOR_PI; in sensor_rad_to_10udegrees()
1291 rad->val1 = ((int64_t)d * SENSOR_PI / 180LL / 100000LL) / 1000000LL; in sensor_10udegrees_to_rad()
1292 rad->val2 = ((int64_t)d * SENSOR_PI / 180LL / 100000LL) % 1000000LL; in sensor_10udegrees_to_rad()
/Zephyr-latest/drivers/sensor/tdk/icm42688/
Dicm42688_emul.c292 *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()
Dicm42688.h580 int64_t in10_rads = (int64_t)in * SENSOR_PI * 10LL; in icm42688_gyro_rads()
/Zephyr-latest/subsys/sensing/sensor/phy_3d_sensor/
Dphy_3d_sensor.c79 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/mpu6050/
Dmpu6050.c36 conv_val = ((int64_t)raw_val * SENSOR_PI * 10) / in mpu6050_convert_gyro()
/Zephyr-latest/drivers/sensor/bosch/bmi270/
Dbmi270.c88 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/
Dlsm6ds0.h316 #define SENSOR_PI_DOUBLE (SENSOR_PI / 1000000.0)
/Zephyr-latest/drivers/sensor/tdk/mpu9250/
Dmpu9250.c74 conv_val = ((int64_t)raw_val * SENSOR_PI * 10) / in mpu9250_convert_gyro()
/Zephyr-latest/drivers/sensor/bosch/bmi08x/
Dbmi08x.h427 #define BMI08X_GYR_SCALE(range_dps) ((2 * range_dps * SENSOR_PI) / 180LL / 65536LL)
/Zephyr-latest/drivers/sensor/tdk/icm42605/
Dicm42605.c45 conv_val = ((int64_t)raw_val * SENSOR_PI * 10) / in icm42605_convert_gyro()
/Zephyr-latest/drivers/sensor/bosch/bmi160/
Dbmi160.h306 #define BMI160_GYR_SCALE_NUMERATOR(range_dps) (2 * (range_dps) * SENSOR_PI)
/Zephyr-latest/drivers/sensor/st/lsm6dsv16x/
Dlsm6dsv16x_decoder.c123 (int32_t)(((udps_lsb) * SENSOR_PI / 180LL) / 1000000LL)
/Zephyr-latest/drivers/sensor/tdk/icm42670/
Dicm42670.c569 conv_val = ((int64_t)raw_val * fs * SENSOR_PI) / (INT16_MAX * 180U); in icm42670_convert_gyro()