➕ Moves common math functions to own file
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user