mirror of https://github.com/rusefi/wideband.git
interpolation helpers are no longer used (#145)
Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
This commit is contained in:
parent
bfe0b3a2c9
commit
a652715873
|
@ -152,7 +152,6 @@ CPPSRC = $(ALLCPPSRC) \
|
|||
pump_control.cpp \
|
||||
max31855.cpp \
|
||||
uart.cpp \
|
||||
interpolation.cpp \
|
||||
auxout.cpp \
|
||||
livedata.cpp \
|
||||
console/binary/tunerstudio.cpp \
|
||||
|
|
|
@ -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);
|
||||
}
|
|
@ -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);
|
Loading…
Reference in New Issue