Speeduino
Loading...
Searching...
No Matches
Typedefs | Functions | Variables
table3d_interpolate.cpp File Reference
#include "table3d_interpolate.h"
#include "maths.h"

Typedefs

typedef uint16_t QU1X8_t
 

Functions

static bool is_in_bin (const table3d_axis_t &testValue, const table3d_axis_t &min, const table3d_axis_t &max)
 
static table3d_dim_t find_bin_max (table3d_axis_t &value, const table3d_axis_t *pAxis, table3d_dim_t minElement, table3d_dim_t maxElement, table3d_dim_t lastBinMax)
 
table3d_dim_t find_xbin (table3d_axis_t &value, const table3d_axis_t *pAxis, table3d_dim_t size, table3d_dim_t lastBin)
 
table3d_dim_t find_ybin (table3d_axis_t &value, const table3d_axis_t *pAxis, table3d_dim_t size, table3d_dim_t lastBin)
 
static QU1X8_t mulQU1X8 (QU1X8_t a, QU1X8_t b)
 
static QU1X8_t compute_bin_position (table3d_axis_t value, const table3d_dim_t &bin, const table3d_axis_t *pAxis)
 
table3d_value_t get3DTableValue (struct table3DGetValueCache *pValueCache, table3d_dim_t axisSize, const table3d_value_t *pValues, const table3d_axis_t *pXAxis, const table3d_axis_t *pYAxis, table3d_axis_t Y_in, table3d_axis_t X_in)
 

Variables

static constexpr QU1X8_t QU1X8_INTEGER_SHIFT = 8
 
static constexpr QU1X8_t QU1X8_ONE = (QU1X8_t)1U << QU1X8_INTEGER_SHIFT
 
static constexpr QU1X8_t QU1X8_HALF = (QU1X8_t)1U << (QU1X8_INTEGER_SHIFT-1U)
 

Typedef Documentation

◆ QU1X8_t

Function Documentation

◆ compute_bin_position()

static QU1X8_t compute_bin_position ( table3d_axis_t  value,
const table3d_dim_t bin,
const table3d_axis_t pAxis 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ find_bin_max()

static table3d_dim_t find_bin_max ( table3d_axis_t value,
const table3d_axis_t pAxis,
table3d_dim_t  minElement,
table3d_dim_t  maxElement,
table3d_dim_t  lastBinMax 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ find_xbin()

table3d_dim_t find_xbin ( table3d_axis_t value,
const table3d_axis_t pAxis,
table3d_dim_t  size,
table3d_dim_t  lastBin 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ find_ybin()

table3d_dim_t find_ybin ( table3d_axis_t value,
const table3d_axis_t pAxis,
table3d_dim_t  size,
table3d_dim_t  lastBin 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get3DTableValue()

table3d_value_t get3DTableValue ( struct table3DGetValueCache pValueCache,
table3d_dim_t  axisSize,
const table3d_value_t pValues,
const table3d_axis_t pXAxis,
const table3d_axis_t pYAxis,
table3d_axis_t  Y_in,
table3d_axis_t  X_in 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ is_in_bin()

static bool is_in_bin ( const table3d_axis_t testValue,
const table3d_axis_t min,
const table3d_axis_t max 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

◆ mulQU1X8()

static QU1X8_t mulQU1X8 ( QU1X8_t  a,
QU1X8_t  b 
)
inlinestatic
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ QU1X8_HALF

constexpr QU1X8_t QU1X8_HALF = (QU1X8_t)1U << (QU1X8_INTEGER_SHIFT-1U)
staticconstexpr

◆ QU1X8_INTEGER_SHIFT

constexpr QU1X8_t QU1X8_INTEGER_SHIFT = 8
staticconstexpr

◆ QU1X8_ONE

constexpr QU1X8_t QU1X8_ONE = (QU1X8_t)1U << QU1X8_INTEGER_SHIFT
staticconstexpr