Home
last modified time | relevance | path

Searched refs:bias (Results 1 – 20 of 20) sorted by relevance

/device/google/contexthub/firmware/os/algos/calibration/magnetometer/mag_cal/
Dmag_cal.c161 struct Vec3 bias; in magCalUpdate() local
164 if (kasaFit(&moc->kasa, &bias, &radius, MAX_FIT_MAG, MIN_FIT_MAG)) { in magCalUpdate()
169 CAL_ENCODE_FLOAT(bias.x, 3), CAL_ENCODE_FLOAT(bias.y, 3), in magCalUpdate()
170 CAL_ENCODE_FLOAT(bias.z, 3), CAL_ENCODE_FLOAT(radius, 3), in magCalUpdate()
178 if (diversityCheckerNormQuality(&moc->diversity_checker, bias.x, bias.y, in magCalUpdate()
179 bias.z) && in magCalUpdate()
192 CAL_ENCODE_FLOAT(bias.x, 3), CAL_ENCODE_FLOAT(bias.y, 3), in magCalUpdate()
193 CAL_ENCODE_FLOAT(bias.z, 3), CAL_ENCODE_FLOAT(radius, 3), in magCalUpdate()
210 moc->x_bias = bias.x; in magCalUpdate()
211 moc->y_bias = bias.y; in magCalUpdate()
[all …]
/device/google/contexthub/firmware/os/inc/
DhalIntf.h68 float bias[3]; // in uT member
82 float bias[3]; member
/device/google/contexthub/firmware/os/drivers/st_lsm6dsm/
DREADME51 - LSM6DSM_ACCEL_CALIB_ENABLED /* Enable accelerometer bias calibration */
52 - LSM6DSM_GYRO_CALIB_ENABLED /* Enable gyroscope bias calibration */
53 - LSM6DSM_OVERTEMP_CALIB_ENABLED /* Enable gyroscope over temperature bias calibration […
93 > Accel bias calibration through accel_cal lib;
94 > Gyro bias calibration through gyro_cal & gyro_stillnes_detect libs;
Dst_lsm6dsm.c972 #define DEC_INFO_RATE_BIAS(name, rates, type, axis, inter, samples, bias) \ argument
976 .biasType = bias
985 #define DEC_INFO_RATE_RAW_BIAS(name, rates, type, axis, inter, samples, raw, scale, bias) \ argument
988 .biasType = bias
3722 (int32_t)(d->bias[0] * 1000), in lsm6dsm_magnCfgData()
3723 (int32_t)(d->bias[1] * 1000), in lsm6dsm_magnCfgData()
3724 (int32_t)(d->bias[2] * 1000)); in lsm6dsm_magnCfgData()
3726 T(magnCal).x_bias = d->bias[0]; in lsm6dsm_magnCfgData()
3727 T(magnCal).y_bias = d->bias[1]; in lsm6dsm_magnCfgData()
3728 T(magnCal).z_bias = d->bias[2]; in lsm6dsm_magnCfgData()
/device/google/contexthub/firmware/os/algos/calibration/accelerometer/
Daccel_cal.c497 struct Vec3 bias; in accelCalRun() local
501 kasaFit(&acc->ac1[temp_gate].akf, &bias, &radius, G_NORM_MAX, in accelCalRun()
505 if (fabsf(bias.x) < MAX_OFF && fabsf(bias.y) < MAX_OFF && in accelCalRun()
506 fabsf(bias.z) < MAX_OFF) { in accelCalRun()
511 acc->x_bias_new = bias.x * KSCALE2; in accelCalRun()
512 acc->y_bias_new = bias.y * KSCALE2; in accelCalRun()
513 acc->z_bias_new = bias.z * KSCALE2; in accelCalRun()
525 acc->adf.x_o[acc->adf.n_o] = bias.x; in accelCalRun()
526 acc->adf.y_o[acc->adf.n_o] = bias.y; in accelCalRun()
527 acc->adf.z_o[acc->adf.n_o] = bias.z; in accelCalRun()
/device/google/contexthub/firmware/os/algos/calibration/sphere_fit/
Dcalibration_data.h53 float bias[THREE_AXIS_DIM]; member
Dcalibration_data.c40 vecSub(x_temp, x_impaired, calstruct->bias, THREE_AXIS_DIM); in calDataCorrectData()
Dsphere_fit_calibration.c187 vecSub(x_bias_corr, x_data, calstruct.bias, THREE_AXIS_DIM); in sphereFitResidAndJacobianFunc()
207 memcpy(&calstruct->bias[0], &x[eParamOffset1], in convertStateToCalStruct()
/device/google/contexthub/firmware/os/drivers/st_mag40/
Dst_mag40.c396 #define DEC_INFO_BIAS(name, type, axis, inter, samples, rates, raw, scale, bias) \ argument
405 .biasType = bias
515 (int32_t)(d->bias[0] * 1000), in magCfgData()
516 (int32_t)(d->bias[1] * 1000), in magCfgData()
517 (int32_t)(d->bias[2] * 1000)); in magCfgData()
519 mTask.moc.x_bias = d->bias[0]; in magCfgData()
520 mTask.moc.y_bias = d->bias[1]; in magCfgData()
521 mTask.moc.z_bias = d->bias[2]; in magCfgData()
/device/google/contexthub/firmware/os/algos/common/math/
Dkasa.h47 int kasaFit(struct KasaFit *kasa, struct Vec3 *bias, float *radius,
Dkasa.c68 int kasaFit(struct KasaFit *kasa, struct Vec3 *bias, float *radius, in kasaFit() argument
111 initVec3(bias, v.x, v.y, v.z); in kasaFit()
/device/google/contexthub/firmware/os/inc/algos/
Dfusion.h85 void fusionGetBias(const struct Fusion *fusion, struct Vec3 *bias);
/device/google/muskie/
Dsynaptics_dsxv26.idc26 touch.size.bias = -21.905636
/device/google/taimen/
Dtouchscreen.idc26 touch.size.bias = -13.924837
/device/google/contexthub/firmware/os/drivers/bosch_bmi160/
Dbosch_bmi160.c694 #define DEC_INFO_RATE_BIAS(name, rates, type, axis, inter, samples, bias) \ argument
698 .biasType = bias
700 #define DEC_INFO_RATE_RAW_BIAS(name, rates, type, axis, inter, samples, raw, scale, bias) \ argument
703 .biasType = bias
3124 const struct GyroCalBias *bias = p->gyroCalBias; local
3125 mTask.sensors[GYR].offset[0] = bias->hardwareBias[0];
3126 mTask.sensors[GYR].offset[1] = bias->hardwareBias[1];
3127 mTask.sensors[GYR].offset[2] = bias->hardwareBias[2];
3130 bias->hardwareBias[0] & 0xFF,
3131 bias->hardwareBias[1] & 0xFF,
[all …]
/device/google/contexthub/util/nanotool/
Dapptohostevent.h120 int32_t bias; member
/device/google/contexthub/firmware/os/algos/calibration/nano_calibration/
Dnano_calibration.cc215 memcpy(ash_cal_info.bias, cal_data.offset, sizeof(ash_cal_info.bias)); in NotifyAshCalibration()
/device/google/contexthub/sensorhal/
Dhubconnection.cpp1091 uint32_t type, sensor, bias, currSensor; in processBuf() local
1102 bias = 0; in processBuf()
1113 bias = COMMS_SENSOR_ACCEL_BIAS; in processBuf()
1124 bias = COMMS_SENSOR_GYRO_BIAS; in processBuf()
1130 bias = COMMS_SENSOR_MAG_BIAS; in processBuf()
1291 currSensor = bias; in processBuf()
1463 std::copy(magBiasData.begin(), magBiasData.end(), packet.mag.bias); in sendCalibrationOffsets()
1512 float bias = atof(buf); in threadLoop() local
1513 mUsbMagBias = bias; in threadLoop()
/device/google/contexthub/firmware/os/drivers/invensense_icm40600/
Dinvensense_icm40600.c727 #define DEC_INFO_RATE_BIAS(name, rates, type, axis, inter, samples, bias) \ argument
731 .biasType = bias
733 #define DEC_INFO_RATE_RAW_BIAS(name, rates, type, axis, inter, samples, raw, scale, bias) \ argument
736 .biasType = bias
1055 const struct GyroCalBias *bias = p->gyroCalBias; local
1058 if (bias->hardwareBias[i] > 2047) {
1060 } else if (bias->hardwareBias[i] < -2048) {
1063 sensor->offset[i] = bias->hardwareBias[i];
1067 gyroCalSetBias(&T(gyro_cal), bias->softwareBias[0], bias->softwareBias[1],
1068 bias->softwareBias[2], sensorGetTime());
/device/google/contexthub/firmware/os/algos/
Dfusion.c685 void fusionGetBias(const struct Fusion *fusion, struct Vec3 *bias) { in fusionGetBias() argument
686 *bias = fusion->x1; in fusionGetBias()