docs
This commit is contained in:
parent
ed435fcd09
commit
6ceae089c1
|
@ -129,6 +129,7 @@ typedef Map3D<FUEL_RPM_COUNT, FUEL_LOAD_COUNT, uint16_t, uint16_t, uint16_t> map
|
|||
|
||||
/**
|
||||
* @param precision for example '0.1' for one digit fractional part. Default to 0.01, two digits.
|
||||
* see also: ensureArrayIsAscending
|
||||
*/
|
||||
template<typename TValue, int TSize>
|
||||
void setLinearCurve(TValue (&array)[TSize], float from, float to, float precision = 0.01f) {
|
||||
|
|
|
@ -30,6 +30,7 @@ float interpolateMsg(const char *msg, float x1, float y1, float x2, float y2, fl
|
|||
|
||||
// _technically_ and _theoretically_ we can support flat line for both bins and values but I am not sure if
|
||||
// such a rare case is something we want to support
|
||||
// see also: setLinearCurve
|
||||
template<typename TValue, int TSize>
|
||||
void ensureArrayIsAscending(const char* msg, const TValue (&values)[TSize]) {
|
||||
for (size_t i = 0; i < TSize - 1; i++) {
|
||||
|
|
Loading…
Reference in New Issue