From cfe21103ea197f98555d5002d389d0c24e7b5544 Mon Sep 17 00:00:00 2001 From: Finlay Davidson Date: Sun, 25 Jun 2023 15:59:34 +0200 Subject: motioncontroller: Add functions for analysis These are functions for converting acceleration due to gravity to angles in degrees, and some statistical analysis including the mean and variance. --- src/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1c6e8e63..8e8e9686 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -493,6 +493,8 @@ list(APPEND SOURCE_FILES buttonhandler/ButtonHandler.cpp touchhandler/TouchHandler.cpp + + utility/Math.cpp ) list(APPEND RECOVERY_SOURCE_FILES @@ -558,6 +560,8 @@ list(APPEND RECOVERY_SOURCE_FILES components/fs/FS.cpp buttonhandler/ButtonHandler.cpp touchhandler/TouchHandler.cpp + + utility/Math.cpp ) list(APPEND RECOVERYLOADER_SOURCE_FILES @@ -677,6 +681,7 @@ set(INCLUDE_FILES components/motor/MotorController.h buttonhandler/ButtonHandler.h touchhandler/TouchHandler.h + utility/Math.h ) include_directories( -- cgit v1.2.3-70-g09d2