microRusEFI used as Body Control Module BCM BCU
This commit is contained in:
parent
689adf19d5
commit
67f305f48a
|
@ -520,6 +520,15 @@ void mreBCM(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
|
|||
engineConfiguration->consumeObdSensors = true;
|
||||
|
||||
|
||||
engineConfiguration->fsio_setting[0] = 1500;
|
||||
// simple warning light as default configuration
|
||||
// set_fsio_expression 1 "rpm > fsio_setting(1)"
|
||||
setFsio(0, GPIO_UNASSIGNED, RPM_ABOVE_USER_SETTING_1 PASS_CONFIG_PARAMETER_SUFFIX);
|
||||
|
||||
engineConfiguration->fsio_setting[2] = 1500;
|
||||
setFsio(2, GPIO_UNASSIGNED, RPM_BELOW_USER_SETTING_3 PASS_CONFIG_PARAMETER_SUFFIX);
|
||||
|
||||
|
||||
#if (BOARD_TLE8888_COUNT > 0)
|
||||
engineConfiguration->fsioOutputPins[0] = GPIOE_14;// "37 - Injector 1"
|
||||
engineConfiguration->fsioOutputPins[1] = GPIOE_13;// "38 - Injector 2"
|
||||
|
|
|
@ -139,8 +139,8 @@ static void doBenchTestFsio(int humanIndex, const char *delayStr, const char * o
|
|||
}
|
||||
|
||||
/**
|
||||
* delay 100, cylinder #2, 5ms ON, 1000ms OFF, repeat 2 times
|
||||
* fuelbench2 100 2 5 1000 2
|
||||
* delay 100, cylinder #2, 5ms ON, 1000ms OFF, repeat 3 times
|
||||
* fuelbench2 100 2 5 1000 3
|
||||
*/
|
||||
static void fuelbench2(const char *delayStr, const char *indexStr, const char * onTimeStr, const char *offTimeStr,
|
||||
const char *countStr) {
|
||||
|
@ -148,6 +148,10 @@ static void fuelbench2(const char *delayStr, const char *indexStr, const char *
|
|||
doRunFuel(index, delayStr, onTimeStr, offTimeStr, countStr);
|
||||
}
|
||||
|
||||
/**
|
||||
* delay 100, channel #1, 5ms ON, 1000ms OFF, repeat 3 times
|
||||
* fsiobench2 100 1 5 1000 3
|
||||
*/
|
||||
static void fsioBench2(const char *delayStr, const char *indexStr, const char * onTimeStr, const char *offTimeStr,
|
||||
const char *countStr) {
|
||||
int index = atoi(indexStr);
|
||||
|
|
|
@ -45,6 +45,10 @@
|
|||
// Human-readable: rpm > fsio_setting(1)
|
||||
#define RPM_ABOVE_USER_SETTING_1 "rpm 1 fsio_setting >"
|
||||
|
||||
// Human-readable: rpm < fsio_setting(3)
|
||||
#define RPM_BELOW_USER_SETTING_3 "rpm 3 fsio_setting <"
|
||||
|
||||
|
||||
// Human-readable: rpm > fsio_setting(2)
|
||||
#define RPM_ABOVE_USER_SETTING_2 "rpm 2 fsio_setting >"
|
||||
|
||||
|
|
Loading…
Reference in New Issue