Searched refs:kasa (Results 1 – 12 of 12) sorted by relevance
/device/google/contexthub/firmware/os/algos/common/math/ |
D | kasa.c | 8 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 …]
|
D | kasa.h | 30 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/ |
D | mag_cal.c | 52 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 …]
|
D | mag_cal.h | 68 struct KasaFit kasa; member
|
/device/google/contexthub/firmware/variant/lunchbox/ |
D | lunchbox.mk | 36 os/algos/common/math/kasa.c \
|
/device/google/contexthub/firmware/variant/nucleo/ |
D | nucleo.mk | 37 os/algos/common/math/kasa.c \
|
/device/google/contexthub/firmware/variant/neonkey/ |
D | neonkey.mk | 38 os/algos/common/math/kasa.c \
|
/device/google/contexthub/firmware/ |
D | neonkey_aux_variant_config.mk | 65 os/algos/common/math/kasa.c \
|
D | nucleo_aux_variant_config.mk | 65 os/algos/common/math/kasa.c \
|
D | argonkey_aux_variant_config.mk | 64 os/algos/common/math/kasa.c \
|
D | lunchbox_aux_variant_config.mk | 73 os/algos/common/math/kasa.c \
|
/device/google/contexthub/firmware/variant/argonkey/ |
D | argonkey.mk | 41 os/algos/common/math/kasa.c \
|