Searched refs:Vec3 (Results 1 – 9 of 9) sorted by relevance
/device/google/contexthub/firmware/os/algos/common/math/ |
D | vec.h | 48 struct Vec3 { struct 65 static inline void initVec3(struct Vec3 *v, float x, float y, float z) { in initVec3() argument 73 static inline void vec3Add(struct Vec3 *v, const struct Vec3 *w) { in vec3Add() 82 static inline void vec3Sub(struct Vec3 *v, const struct Vec3 *w) { in vec3Sub() 91 static inline void vec3ScalarMul(struct Vec3 *v, float c) { in vec3ScalarMul() 99 static inline float vec3Dot(const struct Vec3 *v, const struct Vec3 *w) { in vec3Dot() 106 static inline float vec3NormSquared(const struct Vec3 *v) { in vec3NormSquared() 112 static inline float vec3Norm(const struct Vec3 *v) { in vec3Norm() 119 static inline void vec3Normalize(struct Vec3 *v) { in vec3Normalize() 133 static inline void vec3Cross(struct Vec3 *u, const struct Vec3 *v, in vec3Cross() [all …]
|
D | mat.h | 72 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,
|
D | mat.c | 62 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/ |
D | fusion.h | 42 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/ |
D | fusion.c | 137 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/ |
D | mag_cal.c | 57 struct Vec3 eigenvals; in moc_eigen_test() 76 int magKasaFit(struct KasaFit *kasa, struct Vec3 *bias, float *radius) { in magKasaFit() 111 struct Vec3 v; in magKasaFit() 267 struct Vec3 bias; in magCalUpdate()
|
D | mag_cal.h | 92 int magKasaFit(struct KasaFit *kasa, struct Vec3 *bias, float *radius);
|
/device/google/contexthub/firmware/os/drivers/orientation/ |
D | orientation.c | 346 struct Vec3 g, a; in updateOutput() 449 struct Vec3 a, w, m; in drainSamples()
|
/device/google/contexthub/firmware/os/algos/calibration/accelerometer/ |
D | accel_cal.c | 415 struct Vec3 eigenvals; in accEigenTest() 517 struct Vec3 bias; in accelCalRun()
|