VAG coolang fan logic

This commit is contained in:
rusefi 2019-05-02 21:54:50 -04:00
parent 6737feeb12
commit cc8ff767f3
1 changed files with 6 additions and 6 deletions

View File

@ -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"
java -jar ../java_console_binary/rusefi_console.jar compile "0.15 + (max(90, min(coolant, 110)) - 90) / 20 * 0.8"