From ed88e47944d17197c9d234e126ac756b36ddab32 Mon Sep 17 00:00:00 2001 From: Rune Harlyk Date: Thu, 25 Dec 2025 13:36:24 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Map=20rotation=20bound=20correct?= =?UTF-8?q?=20in=20rad?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- esp32/include/kinematics.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esp32/include/kinematics.h b/esp32/include/kinematics.h index 06cd13a..c3f032d 100644 --- a/esp32/include/kinematics.h +++ b/esp32/include/kinematics.h @@ -39,8 +39,8 @@ class KinConfig { }; // Max constants - static constexpr float max_roll = 15 * (float)M_PI_2; - static constexpr float max_pitch = 15 * (float)M_PI_2; + static constexpr float max_roll = 15 * DEG2RAD_F; + static constexpr float max_pitch = 15 * DEG2RAD_F; static constexpr float max_body_shift_x = W / 3; static constexpr float max_body_shift_z = W / 3;