Use radians macro, minor change

This commit is contained in:
Oleg Kalachev
2024-01-12 00:43:52 +03:00
parent 1ed05a94dd
commit f4aaf0f4f3
4 changed files with 9 additions and 7 deletions

View File

@@ -39,5 +39,5 @@ void applyAcc() {
void signalizeHorizontality() {
float angle = Vector::angleBetweenVectors(attitude.rotate(Vector(0, 0, -1)), Vector(0, 0, -1));
setLED(angle < 15 * DEG_TO_RAD);
setLED(angle < radians(15));
}