From b1f5569b03bea46cfd8c67bb49ddb90f055b04be Mon Sep 17 00:00:00 2001 From: rusefi Date: Thu, 2 May 2019 21:54:50 -0400 Subject: [PATCH] VAG coolang fan logic --- firmware/gen_fsio_example.bat | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/firmware/gen_fsio_example.bat b/firmware/gen_fsio_example.bat index 56447a95bd..61e63462a1 100644 --- a/firmware/gen_fsio_example.bat +++ b/firmware/gen_fsio_example.bat @@ -1,7 +1,7 @@ -# min(coolant, 120) would clamp value from top -# max(90, min(coolant, 120)) would clamp result from bottom -# max(90, min(coolant, 120)) - 90 would be in the 0 too 30 range -# (max(90, min(coolant, 120)) - 90) / 30 would be in 0 to 1 range -# (max(90, min(coolant, 120)) - 90) / 30 * 0.8 would be in 0 to 0.8 range +# 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 -java -jar ../java_console_binary/rusefi_console.jar compile "0.15 + (max(90, min(coolant, 120)) - 90) / 30 * 0.8" \ No newline at end of file +java -jar ../java_console_binary/rusefi_console.jar compile "0.15 + (max(90, min(coolant, 110)) - 90) / 20 * 0.8" \ No newline at end of file