Home
last modified time | relevance | path

Searched refs:Vec3 (Results 1 – 10 of 10) sorted by relevance

/device/google/contexthub/firmware/os/algos/common/math/
Dvec.h48 struct Vec3 { struct
57 static inline void initVec3(struct Vec3 *v, float x, float y, float z) { in initVec3() argument
65 static inline void vec3Add(struct Vec3 *v, const struct Vec3 *w) { in vec3Add()
74 static inline void vec3AddVecs(struct Vec3 *u, const struct Vec3 *v, in vec3AddVecs()
75 const struct Vec3 *w) { in vec3AddVecs()
85 static inline void vec3Sub(struct Vec3 *v, const struct Vec3 *w) { in vec3Sub()
94 static inline void vec3SubVecs(struct Vec3 *u, const struct Vec3 *v, in vec3SubVecs()
95 const struct Vec3 *w) { in vec3SubVecs()
105 static inline void vec3ScalarMul(struct Vec3 *v, float c) { in vec3ScalarMul()
113 static inline float vec3Dot(const struct Vec3 *v, const struct Vec3 *w) { in vec3Dot()
[all …]
Dmat.h72 void initMatrixColumns(struct Mat33 *A, const struct Vec3 *v1,
73 const struct Vec3 *v2, const struct Vec3 *v3);
77 void mat33Apply(struct Vec3 *out, const struct Mat33 *A, const struct Vec3 *v);
125 void mat33GetEigenbasis(struct Mat33 *S, struct Vec3 *eigenvals,
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()
104 struct Vec3 v; in kasaFit()
Dmat.c62 void initMatrixColumns(struct Mat33 *A, const struct Vec3 *v1, in initMatrixColumns()
63 const struct Vec3 *v2, const struct Vec3 *v3) { in initMatrixColumns()
81 void mat33Apply(struct Vec3 *out, const struct Mat33 *A, const struct Vec3 *v) { in mat33Apply()
304 void mat33GetEigenbasis(struct Mat33 *S, struct Vec3 *eigenvals, in mat33GetEigenbasis()
/device/google/contexthub/firmware/os/inc/algos/
Dfusion.h42 struct Vec3 x1;
48 struct Vec3 Ba, Bm;
51 struct Vec3 mData[3];
77 void fusionHandleGyro(struct Fusion *fusion, const struct Vec3 *w, float dT);
78 int fusionHandleAcc(struct Fusion *fusion, const struct Vec3 *a, float dT);
79 int fusionHandleMag(struct Fusion *fusion, const struct Vec3 *m, float dT);
85 void fusionGetBias(const struct Fusion *fusion, struct Vec3 *bias);
/device/google/contexthub/firmware/os/algos/
Dfusion.c137 static int fusion_init_complete(struct Fusion *fusion, int what, const struct Vec3 *d, float dT) { in fusion_init_complete()
148 struct Vec3 unityD = *d; in fusion_init_complete()
162 struct Vec3 unityD = *d; in fusion_init_complete()
176 struct Vec3 scaledD = *d; in fusion_init_complete()
200 struct Vec3 up = fusion->mData[0]; in fusion_init_complete()
202 struct Vec3 east; in fusion_init_complete()
210 struct Vec3 north; in fusion_init_complete()
233 static void matrixCross(struct Mat33 *out, struct Vec3 *p, float diag) { in matrixCross()
261 static void fusionPredict(struct Fusion *fusion, const struct Vec3 *w) { in fusionPredict()
265 struct Vec3 b = fusion->x1; in fusionPredict()
[all …]
/device/google/contexthub/firmware/os/algos/calibration/magnetometer/mag_cal/
Dmag_cal.c62 struct Vec3 eigenvals; in moc_eigen_test()
161 struct Vec3 bias; in magCalUpdate()
/device/google/contexthub/firmware/os/drivers/orientation/
Dorientation.c346 struct Vec3 g, a; in updateOutput()
449 struct Vec3 a, w, m; in drainSamples()
/device/google/contexthub/firmware/os/algos/calibration/accelerometer/
Daccel_cal.c390 struct Vec3 eigenvals; in accEigenTest()
497 struct Vec3 bias; in accelCalRun()