rusefi/firmware/controllers/core/le_functions.h

30 lines
611 B
C
Raw Normal View History

2014-10-05 11:03:00 -07:00
/**
* @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"
2014-11-06 10:04:30 -08:00
/**
* In human language that's
* (time_since_boot < 4) OR (rpm > 0)
*/
2014-10-13 09:03:10 -07:00
// todo: the delay should probably be configurable?
2014-10-09 00:02:51 -07:00
#define FUEL_PUMP_LOGIC "time_since_boot 4 < rpm 0 > OR"
2014-11-06 10:04:30 -08:00
/**
* In human language that's
* (fan and (coolant > fan_off_setting)) OR (coolant > fan_on_setting)
*/
#define FAN_CONTROL_LOGIC "todo"
2014-10-05 11:03:00 -07:00
float getLEValue(Engine *engine, le_action_e action);
#endif /* LE_FUNCTIONS_H_ */