interpolation helpers are no longer used (#145)

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
This commit is contained in:
rusefillc 2022-09-06 01:51:49 -04:00 committed by GitHub
parent bfe0b3a2c9
commit a652715873
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 24 deletions

View File

@ -152,7 +152,6 @@ CPPSRC = $(ALLCPPSRC) \
pump_control.cpp \
max31855.cpp \
uart.cpp \
interpolation.cpp \
auxout.cpp \
livedata.cpp \
console/binary/tunerstudio.cpp \

View File

@ -1,19 +0,0 @@
#include "interpolation.h"
float interpolateFloat(float x1, float y1, float x2, float y2, float x)
{
if (x1 == x2)
return y1;
return (y1 + (y2 - y1) * (x - x1) / (x2 - x1));
}
float interpolateFloatClamped(float x1, float y1, float x2, float y2, float x)
{
if (x <= x1)
return y1;
if (x >= x2)
return y2;
return interpolateFloat(x1, y1, x2, y2, x);
}

View File

@ -1,4 +0,0 @@
#pragma once
float interpolateFloat(float x1, float y1, float x2, float y2, float x);
float interpolateFloatClamped(float x1, float y1, float x2, float y2, float x);