Home
last modified time | relevance | path

Searched refs:calstruct (Results 1 – 3 of 3) sorted by relevance

/device/google/contexthub/firmware/os/algos/calibration/sphere_fit/
Dcalibration_data.c28 void calDataReset(struct ThreeAxisCalData* calstruct) { in calDataReset() argument
29 memset(calstruct, 0, sizeof(struct ThreeAxisCalData)); in calDataReset()
30 calstruct->scale_factor_x = 1.0f; in calDataReset()
31 calstruct->scale_factor_y = 1.0f; in calDataReset()
32 calstruct->scale_factor_z = 1.0f; in calDataReset()
35 void calDataCorrectData(const struct ThreeAxisCalData* calstruct, in calDataCorrectData() argument
40 vecSub(x_temp, x_impaired, calstruct->bias, THREE_AXIS_DIM); in calDataCorrectData()
46 x_corrected[0] = calstruct->scale_factor_x * x_temp[0]; in calDataCorrectData()
48 calstruct->skew_yx * x_temp[0] + calstruct->scale_factor_y * x_temp[1]; in calDataCorrectData()
49 x_corrected[2] = calstruct->skew_zx * x_temp[0] + in calDataCorrectData()
[all …]
Dsphere_fit_calibration.c35 struct ThreeAxisCalData *calstruct);
135 struct ThreeAxisCalData calstruct; in sphereFitResidAndJacobianFunc() local
136 convertStateToCalStruct(state, &calstruct); in sphereFitResidAndJacobianFunc()
160 A[0 * SF_STATE_DIM + eParamOffset1] = -calstruct.scale_factor_x; in sphereFitResidAndJacobianFunc()
161 A[1 * SF_STATE_DIM + eParamOffset2] = -calstruct.scale_factor_y; in sphereFitResidAndJacobianFunc()
162 A[2 * SF_STATE_DIM + eParamOffset3] = -calstruct.scale_factor_z; in sphereFitResidAndJacobianFunc()
174 calDataCorrectData(&calstruct, x_data, x_corr); in sphereFitResidAndJacobianFunc()
190 vecSub(x_bias_corr, x_data, calstruct.bias, THREE_AXIS_DIM); in sphereFitResidAndJacobianFunc()
209 struct ThreeAxisCalData *calstruct) { in convertStateToCalStruct() argument
210 memcpy(&calstruct->bias[0], &x[eParamOffset1], in convertStateToCalStruct()
[all …]
Dcalibration_data.h61 void calDataReset(struct ThreeAxisCalData* calstruct);
65 void calDataCorrectData(const struct ThreeAxisCalData* calstruct,