2015-07-10 06:01:56 -07:00
|
|
|
/**
|
2022-10-28 16:31:17 -07:00
|
|
|
* @file script_impl.h
|
2015-07-10 06:01:56 -07:00
|
|
|
*
|
|
|
|
* @date Oct 5, 2014
|
2020-01-07 21:02:40 -08:00
|
|
|
* @author Andrey Belomutskiy, (c) 2012-2020
|
2015-07-10 06:01:56 -07:00
|
|
|
*/
|
|
|
|
|
2019-12-15 20:33:15 -08:00
|
|
|
#pragma once
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2023-03-07 05:45:17 -08:00
|
|
|
#include <rusefi/expected.h>
|
2019-09-12 04:31:13 -07:00
|
|
|
|
2022-07-01 03:51:47 -07:00
|
|
|
typedef Map3D<SCRIPT_TABLE_8, SCRIPT_TABLE_8, float, int16_t, int16_t> fsio8_Map3D_f32t;
|
|
|
|
typedef Map3D<SCRIPT_TABLE_8, SCRIPT_TABLE_8, uint8_t, int16_t, int16_t> fsio8_Map3D_u8t;
|
2023-10-25 19:44:48 -07:00
|
|
|
typedef Map3D<TABLE_4_RPM, SCRIPT_TABLE_8, uint8_t, int16_t, int16_t> script4_Map3D_u8t;
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2022-07-14 04:52:58 -07:00
|
|
|
void initScriptImpl();
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2021-11-16 01:15:29 -08:00
|
|
|
float getCurveValue(int index, float key);
|
2022-08-28 06:43:21 -07:00
|
|
|
expected<int> getCurveIndexByName(const char *name);
|
|
|
|
expected<int> getTableIndexByName(const char *name);
|
|
|
|
expected<int> getSettingIndexByName(const char *name);
|
2021-11-14 07:39:47 -08:00
|
|
|
ValueProvider3D *getscriptTable(int index);
|