Searched refs:kasa (Results 1 – 2 of 2) sorted by relevance
47 static int moc_eigen_test(struct KasaFit *kasa) { in moc_eigen_test() argument50 S.elem[0][0] = kasa->acc_xx - kasa->acc_x * kasa->acc_x; in moc_eigen_test()51 S.elem[0][1] = S.elem[1][0] = kasa->acc_xy - kasa->acc_x * kasa->acc_y; in moc_eigen_test()52 S.elem[0][2] = S.elem[2][0] = kasa->acc_xz - kasa->acc_x * kasa->acc_z; in moc_eigen_test()53 S.elem[1][1] = kasa->acc_yy - kasa->acc_y * kasa->acc_y; in moc_eigen_test()54 S.elem[1][2] = S.elem[2][1] = kasa->acc_yz - kasa->acc_y * kasa->acc_z; in moc_eigen_test()55 S.elem[2][2] = kasa->acc_zz - kasa->acc_z * kasa->acc_z; in moc_eigen_test()76 int magKasaFit(struct KasaFit *kasa, struct Vec3 *bias, float *radius) { in magKasaFit() argument80 A.elem[0][0] = kasa->acc_xx; in magKasaFit()81 A.elem[0][1] = kasa->acc_xy; in magKasaFit()[all …]
43 struct KasaFit kasa; member54 void initKasa(struct KasaFit *kasa);88 void magKasaReset(struct KasaFit *kasa);92 int magKasaFit(struct KasaFit *kasa, struct Vec3 *bias, float *radius);