Реализовано асинхронное чтение IMU
This commit is contained in:
@@ -10,7 +10,7 @@ Vector2 normalizeV2(const Vector2* v, float gain)
|
||||
|
||||
Vector3 normalizeV3(const Vector3* v, float gain)
|
||||
{
|
||||
Vector3 res = {0};
|
||||
Vector3 res = {0.0f, 0.0f, 0.0f};
|
||||
float n = lengthV3(v);
|
||||
|
||||
if (n > 1e-12f)
|
||||
@@ -133,7 +133,7 @@ Vector2 constProdV2(const Vector2* v, float value)
|
||||
|
||||
Vector3 constProdV3(const Vector3* v, float value)
|
||||
{
|
||||
Vector3 res = {.x = v->x * value, .y = v->y * value, .z = v->z * value};
|
||||
Vector3 res = {v->x * value, v->y * value, v->z * value};
|
||||
return res;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user