Moves common math functions to own file

This commit is contained in:
Rune Harlyk
2024-07-12 13:34:31 +02:00
committed by Rune Harlyk
parent c432792300
commit cfa3e58d09
3 changed files with 14 additions and 4 deletions
+1 -2
View File
@@ -4,6 +4,7 @@
#include <EventSocket.h>
#include <TaskManager.h>
#include <Kinematics.h>
#include <MathUtils.h>
#define DEFAULT_STATE false
#define LIGHT_SETTINGS_ENDPOINT_PATH "/api/input"
@@ -91,8 +92,6 @@ class MotionService {
_socket->emit(ANGLES_EVENT, output, originId.c_str());
}
float lerp(float start, float end, float t) { return (1 - t) * start + t * end; }
bool updateMotion() {
switch (motionState) {
case MOTION_STATE::IDLE: return false; break;