Files
wideband/firmware/interpolation.h
Andrey G d3e460a9a6 Uart debug (#64)
* heater: export state and description

* pump_dac: save and export Ipump

* float interpolation helpers

* Show heater state, heater duty, temperature and fault over uart

* uart: more stack for thread
2022-05-11 01:41:07 -07:00

11 lines
290 B
C

#pragma once
struct inter_point {
float x;
float y;
};
float interpolateFloat(float x1, float y1, float x2, float y2, float x);
float interpolateFloatClamped(float x1, float y1, float x2, float y2, float x);
float interpolate_1d_float(const struct inter_point *p, int size, float x);