rusefi-1/firmware/gen_fsio_example.bat

7 lines
445 B
Batchfile
Raw Normal View History

2019-05-02 18:54:50 -07:00
# min(coolant, 110) would clamp value from top
# max(90, min(coolant, 110)) would clamp result from bottom
# max(90, min(coolant, 110)) - 90 would be in the 0 to 20 range
# (max(90, min(coolant, 110)) - 90) / 20 would be in 0 to 1 range
# (max(90, min(coolant, 110)) - 90) / 20 * 0.8 would be in 0 to 0.8 range
2019-05-02 18:53:27 -07:00
2020-12-12 07:40:55 -08:00
java -jar ../java_console_binary/rusefi_console.jar compile_fsio_line "0.15 + (max(90, min(coolant, 110)) - 90) / 20 * 0.8"