mirror of https://github.com/FOME-Tech/fome-fw.git
docs
This commit is contained in:
parent
87f47b4a0e
commit
01f36869de
|
@ -252,6 +252,7 @@ float interpolate2d(const char *msg, float value, float bin[], float values[], i
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets specified value for specified key in a correction curve
|
* Sets specified value for specified key in a correction curve
|
||||||
|
* see also setLinearCurve()
|
||||||
*/
|
*/
|
||||||
void setCurveValue(float bins[], float values[], int size, float key, float value) {
|
void setCurveValue(float bins[], float values[], int size, float key, float value) {
|
||||||
int index = findIndexMsg("tbVl", bins, size, key);
|
int index = findIndexMsg("tbVl", bins, size, key);
|
||||||
|
|
|
@ -10,6 +10,9 @@
|
||||||
#include "efilib.h"
|
#include "efilib.h"
|
||||||
#include "interpolation.h"
|
#include "interpolation.h"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param precision for example '0.1' for one digit fractional part
|
||||||
|
*/
|
||||||
void setLinearCurve(float array[], int size, float from, float to, float precision) {
|
void setLinearCurve(float array[], int size, float from, float to, float precision) {
|
||||||
for (int i = 0; i < size; i++) {
|
for (int i = 0; i < size; i++) {
|
||||||
float value = interpolateMsg("setTable", 0, from, size - 1, to, i);
|
float value = interpolateMsg("setTable", 0, from, size - 1, to, i);
|
||||||
|
|
Loading…
Reference in New Issue