From e1e11346b4160e5381ba50055596a7e413263596 Mon Sep 17 00:00:00 2001 From: Rune Harlyk Date: Sun, 14 Sep 2025 21:09:32 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20Removes=20unused=20functions=20a?= =?UTF-8?q?nd=20constants?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- esp32/include/peripherals/barometer.h | 7 ------- esp32/include/utils/math_utils.h | 11 ----------- 2 files changed, 18 deletions(-) diff --git a/esp32/include/peripherals/barometer.h b/esp32/include/peripherals/barometer.h index 1950c65..796bd86 100644 --- a/esp32/include/peripherals/barometer.h +++ b/esp32/include/peripherals/barometer.h @@ -59,13 +59,6 @@ class Barometer { float getTemperature() { return temperature; } - void readBarometer(JsonObject& root) { - if (!bmp_success) return; - root["pressure"] = round2(getPressure()); - root["altitude"] = round2(getAltitude()); - root["bmp_temp"] = round2(getTemperature()); - } - bool active() { return bmp_success; } private: diff --git a/esp32/include/utils/math_utils.h b/esp32/include/utils/math_utils.h index 182a378..260ea93 100644 --- a/esp32/include/utils/math_utils.h +++ b/esp32/include/utils/math_utils.h @@ -29,13 +29,6 @@ #define MAT_MULT(A, B, result, rows, cols, result_cols) \ dspm_mult_f32_ae32((float *)(A), (float *)(B), (float *)(result), (rows), (cols), (result_cols)) -#define INT_TO_STRING(state, output) \ - do { \ - itoa((int)(state), (output), 10); \ - } while (0) - -#define PI_F 3.1415927f - #define DEG2RAD_F 0.0174532f #define RAD2DEG_F 57.2957795f @@ -44,10 +37,6 @@ #define DEG_TO_RAD_F(deg) ((deg) * DEG2RAD_F) -#define COS_DEG_F(deg) (cosf(DEG_TO_RAD_F(deg))) - -#define SIN_DEG_F(deg) (sinf(DEG_TO_RAD_F(deg))) - #define IS_EQUAL(a, b, epsilon) (std::fabs((a) - (b)) < (epsilon)) #define IS_ALMOST_EQUAL(a, b) IS_EQUAL((a), (b), 0.001f)