Home
last modified time | relevance | path

Searched refs:kasa (Results 1 – 12 of 12) sorted by relevance

/device/google/contexthub/firmware/os/algos/common/math/
Dkasa.c8 void kasaReset(struct KasaFit *kasa) { in kasaReset() argument
9 kasa->acc_x = kasa->acc_y = kasa->acc_z = kasa->acc_w = 0.0f; in kasaReset()
10 kasa->acc_xx = kasa->acc_xy = kasa->acc_xz = kasa->acc_xw = 0.0f; in kasaReset()
11 kasa->acc_yy = kasa->acc_yz = kasa->acc_yw = 0.0f; in kasaReset()
12 kasa->acc_zz = kasa->acc_zw = 0.0f; in kasaReset()
13 kasa->nsamples = 0; in kasaReset()
16 void kasaInit(struct KasaFit *kasa) { kasaReset(kasa); } in kasaInit() argument
18 void kasaAccumulate(struct KasaFit *kasa, float x, float y, float z) { in kasaAccumulate() argument
21 kasa->acc_x += x; in kasaAccumulate()
22 kasa->acc_y += y; in kasaAccumulate()
[all …]
Dkasa.h30 void kasaReset(struct KasaFit *kasa);
33 void kasaInit(struct KasaFit *kasa);
37 void kasaAccumulate(struct KasaFit *kasa, float x, float y, float z);
41 bool kasaNormalize(struct KasaFit *kasa);
47 int kasaFit(struct KasaFit *kasa, struct Vec3 *bias, float *radius,
/device/google/contexthub/firmware/os/algos/calibration/magnetometer/mag_cal/
Dmag_cal.c52 static int moc_eigen_test(struct KasaFit *kasa) { in moc_eigen_test() argument
55 S.elem[0][0] = kasa->acc_xx - kasa->acc_x * kasa->acc_x; in moc_eigen_test()
56 S.elem[0][1] = S.elem[1][0] = kasa->acc_xy - kasa->acc_x * kasa->acc_y; in moc_eigen_test()
57 S.elem[0][2] = S.elem[2][0] = kasa->acc_xz - kasa->acc_x * kasa->acc_z; in moc_eigen_test()
58 S.elem[1][1] = kasa->acc_yy - kasa->acc_y * kasa->acc_y; in moc_eigen_test()
59 S.elem[1][2] = S.elem[2][1] = kasa->acc_yz - kasa->acc_y * kasa->acc_z; in moc_eigen_test()
60 S.elem[2][2] = kasa->acc_zz - kasa->acc_z * kasa->acc_z; in moc_eigen_test()
84 kasaReset(&moc->kasa); in magCalReset()
94 (moc->kasa.nsamples > MIN_BATCH_SIZE)) { in moc_batch_complete()
148 kasaAccumulate(&moc->kasa, x, y, z); in magCalUpdate()
[all …]
Dmag_cal.h68 struct KasaFit kasa; member
/device/google/contexthub/firmware/variant/lunchbox/
Dlunchbox.mk36 os/algos/common/math/kasa.c \
/device/google/contexthub/firmware/variant/nucleo/
Dnucleo.mk37 os/algos/common/math/kasa.c \
/device/google/contexthub/firmware/variant/neonkey/
Dneonkey.mk38 os/algos/common/math/kasa.c \
/device/google/contexthub/firmware/
Dneonkey_aux_variant_config.mk65 os/algos/common/math/kasa.c \
Dargonkey_aux_variant_config.mk64 os/algos/common/math/kasa.c \
Dlunchbox_aux_variant_config.mk73 os/algos/common/math/kasa.c \
Dnucleo_aux_variant_config.mk65 os/algos/common/math/kasa.c \
/device/google/contexthub/firmware/variant/argonkey/
Dargonkey.mk41 os/algos/common/math/kasa.c \