rusefi-1/firmware/controllers/system_fsio.txt

56 lines
1.9 KiB
Plaintext
Raw Normal View History

2017-01-19 13:03:23 -08:00
#
2017-01-19 14:04:15 -08:00
# in this file we define system FSIO expressions
2017-01-19 13:03:23 -08:00
#
2017-06-13 16:39:49 -07:00
# system_fsio.txt is input for compile_fsio_file tool, see gen_system_fsio.bat
#
2017-01-19 13:03:23 -08:00
# see http://rusefi.com/wiki/index.php?title=Manual:Flexible_Logic
#
# Jan 19, 2017
# Andrey Belomutskiy, (c) 2012-2017
#
FUEL_PUMP_LOGIC=((time_since_boot >= 0) & (time_since_boot < startup_fuel_pump_duration)) | (time_since_trigger < 1)
2017-01-19 13:03:23 -08:00
2019-05-31 13:20:33 -07:00
TOO_HOT_LOGIC=coolant > 120
2017-04-27 10:06:54 -07:00
# Combined RPM, CLT and VBATT warning light
2017-04-27 10:05:48 -07:00
COMBINED_WARNING_LIGHT=(rpm > fsio_setting(2)) | ((coolant > fsio_setting(3)) | (vbatt < fsio_setting(4)))
2017-06-12 15:14:39 -07:00
2021-01-11 16:48:38 -08:00
#needed by EFI_MAIN_RELAY_CONTROL which is currently FALSE for most of the boards
# todo: make '5' a setting?
# todo: always have 'EFI_MAIN_RELAY_CONTROL'?
# at the moment microRusEFI would not be happy with vbatt > 5 since microRusEFI senses main relay output
2021-01-31 10:30:14 -08:00
# todo https://github.com/rusefi/rusefi/issues/2258
2020-09-10 18:09:56 -07:00
#MAIN_RELAY_LOGIC=(time_since_boot >= 0 & time_since_boot < 2) | (vbatt > 5) | in_shutdown
#MAIN_RELAY_LOGIC=(!in_mr_bench) & ((vbatt > 5) | in_shutdown)
MAIN_RELAY_LOGIC=(!in_mr_bench) & (vbatt > 5)
2017-06-13 16:39:49 -07:00
# could be used for simple variable intake geometry setups or warning light or starter block
RPM_ABOVE_USER_SETTING_1=rpm > fsio_setting(1)
2020-09-10 18:38:41 -07:00
RPM_BELOW_USER_SETTING_3=rpm < fsio_setting(3)
2017-06-13 16:39:49 -07:00
# could be used for simple variable intake geometry setups or warning light or starter block
2017-07-14 19:11:04 -07:00
RPM_ABOVE_USER_SETTING_1=rpm > fsio_setting(1)
2017-06-13 16:39:49 -07:00
RPM_ABOVE_USER_SETTING_2=rpm > fsio_setting(2)
2017-07-14 19:11:04 -07:00
RPM_ABOVE_5500_ON_OFF=rpm > 5500
RPM_ABOVE_6000_ON_OFF=rpm > 6000
RPM_ABOVE_1000_SOLENOID_70_DUTY=(rpm > 1000) * 0.7
RPM_ABOVE_2000_SOLENOID_50_DUTY=(rpm > 2000) * 0.5
RPM_ABOVE_6000_SOLENOID_80_DUTY=(rpm > 6000) * 0.8
2017-06-13 16:39:49 -07:00
RPM_BELOW_USER_SETTING_1=rpm < fsio_setting(1)
2017-06-14 02:39:00 -07:00
# starter block using configurable parameter
STARTER_RELAY_LOGIC=rpm < cranking_rpm
2017-08-03 05:06:13 -07:00
BOOST_CONTROLLER=fsio_table (3, rpm, map) / 100
2017-08-06 18:12:05 -07:00
ANALOG_CONDITION=if(fsio_analog_input (0) > 20, 0, 10)