From a81ee3e065fa5ff33168cce58897fdb65f61d4ca Mon Sep 17 00:00:00 2001 From: acki Date: Wed, 4 Mar 2026 17:44:37 +0100 Subject: [PATCH] author + value + cmake --- CMakeLists.txt | 4 ++++ Core/Inc/commSTM.h | 2 +- Core/Inc/modelec.h | 2 +- Core/Src/CommCallbacks.cpp | 2 +- Core/Src/commSTM.cpp | 2 +- 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6afdf5d..55cd5bc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -82,3 +82,7 @@ target_link_libraries(${CMAKE_PROJECT_NAME} # Add user defined libraries ) + +target_link_options(${CMAKE_PROJECT_NAME} PRIVATE + -Wl,-u,_printf_float +) \ No newline at end of file diff --git a/Core/Inc/commSTM.h b/Core/Inc/commSTM.h index 2942cd4..6dfb90e 100644 --- a/Core/Inc/commSTM.h +++ b/Core/Inc/commSTM.h @@ -2,7 +2,7 @@ * commSTM.h * * Created on: May 13, 2025 - * Author: maxch + * Author: Modelec */ #ifndef INC_COMMSTM_H_ diff --git a/Core/Inc/modelec.h b/Core/Inc/modelec.h index 6a8ef4b..aa55b78 100644 --- a/Core/Inc/modelec.h +++ b/Core/Inc/modelec.h @@ -20,7 +20,7 @@ #define ENCODER_RES 2400.0f #define WHEEL_DIAMETER 0.081f #define WHEEL_RADIUS (WHEEL_DIAMETER/2.0f) -#define WHEEL_BASE 0.29c f +#define WHEEL_BASE 0.29f #define WHEEL_BASE_2 (WHEEL_BASE/2.0f) #define V_MAX 0.643f // m/s diff --git a/Core/Src/CommCallbacks.cpp b/Core/Src/CommCallbacks.cpp index 30d768e..38223e1 100644 --- a/Core/Src/CommCallbacks.cpp +++ b/Core/Src/CommCallbacks.cpp @@ -2,7 +2,7 @@ * CommCallbacks.cpp * * Created on: May 25, 2025 - * Author: maxch + * Author: Modelec */ diff --git a/Core/Src/commSTM.cpp b/Core/Src/commSTM.cpp index 6deec56..f54c1e0 100644 --- a/Core/Src/commSTM.cpp +++ b/Core/Src/commSTM.cpp @@ -2,7 +2,7 @@ * commSTM.c * * Created on: May 13, 2025 - * Author: maxch + * Author: Modelec */ #include "CommCallbacks.h"