24 lines
514 B
C++
24 lines
514 B
C++
|
/**
|
||
|
* @file test_logic_expression.cpp
|
||
|
*
|
||
|
* https://sourceforge.net/p/rusefi/tickets/102/
|
||
|
*
|
||
|
* @date Oct 3, 2014
|
||
|
* @author Andrey Belomutskiy, (c) 2012-2014
|
||
|
*/
|
||
|
|
||
|
#include "main.h"
|
||
|
#include "test_logic_expression.h"
|
||
|
|
||
|
void testLogicExpressions(void) {
|
||
|
/**
|
||
|
* fuel_pump = (time_since_boot < 4 seconds) OR (rpm > 0)
|
||
|
* fuel_pump = time_since_boot 4 less rpm 0 more OR
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* fan = (not fan && coolant > 90) OR (fan && coolant > 85)
|
||
|
* fan = fan NOT coolant 90 AND more fan coolant 85 more AND OR
|
||
|
*/
|
||
|
}
|