Use FlixPeriph library for IMU, implement own IMU calibration

This commit is contained in:
Oleg Kalachev
2024-03-15 10:38:48 +03:00
parent d752cce0cc
commit 2cf1c7abb3
5 changed files with 100 additions and 61 deletions

View File

@@ -44,6 +44,16 @@ public:
return Vector(x - b.x, y - b.y, z - b.z);
}
// Element-wise multiplication
Vector operator * (const Vector& b) const {
return Vector(x * b.x, y * b.y, z * b.z);
}
// Element-wise division
Vector operator / (const Vector& b) const {
return Vector(x / b.x, y / b.y, z / b.z);
}
inline bool operator == (const Vector& b) const {
return x == b.x && y == b.y && z == b.z;
}