auto-sync

This commit is contained in:
rusEfi 2014-10-05 13:03:00 -05:00
parent b2532d64ae
commit e8bcf314d3
5 changed files with 41 additions and 9 deletions

View File

@ -5,4 +5,4 @@ CONTROLLERS_CORE_SRC_CPP = $(PROJECT_DIR)/controllers/core/EfiWave.cpp \
$(PROJECT_DIR)/controllers/core/table_helper.cpp \
$(PROJECT_DIR)/controllers/core/logic_expression.cpp \
$(PROJECT_DIR)/controllers/core/interpolation.cpp \
$(PROJECT_DIR)/controllers/core/le_functions.cpp

View File

@ -0,0 +1,23 @@
/**
* @file le_functions.cpp
*
* @date Oct 5, 2014
* @author Andrey Belomutskiy, (c) 2012-2014
*/
#include "main.h"
#include "le_functions.h"
#include "allsensors.h"
#if EFI_PROD_CODE || EFI_SIMULATOR
float getLEValue(Engine *engine, le_action_e action) {
switch(action) {
// case LE_METHOD_FAN:
// return ;
case LE_METHOD_COOLANT:
return getCoolantTemperature(engine->engineConfiguration2);
default:
firmwareError("No value for %d", action);
}
}
#endif

View File

@ -0,0 +1,16 @@
/**
* @file le_functions.h
*
* @date Oct 5, 2014
* @author Andrey Belomutskiy, (c) 2012-2014
*/
#ifndef LE_FUNCTIONS_H_
#define LE_FUNCTIONS_H_
#include "engine.h"
#include "logic_expression.h"
float getLEValue(Engine *engine, le_action_e action);
#endif /* LE_FUNCTIONS_H_ */

View File

@ -7,6 +7,7 @@
#include "main.h"
#include "logic_expression.h"
#include "le_functions.h"
LENameOrdinalPair * LE_FIRST = NULL;
@ -244,9 +245,3 @@ LEElement * parseExpression(LEElementPool *pool, const char * line) {
}
return first;
}
#if EFI_PROD_CODE || EFI_SIMULATOR
float getLEValue(Engine *engine, le_action_e action) {
return NAN;
}
#endif

View File

@ -91,6 +91,4 @@ bool isNumeric(const char* line);
le_action_e parseAction(const char * line);
LEElement * parseExpression(LEElementPool *pool, const char * line);
float getLEValue(Engine *engine, le_action_e action);
#endif /* LOGIC_EXPRESSION_H_ */