From e0ad65b2346cd4ee9e4f678b93bd2e0c641f2e34 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Wed, 22 Feb 2023 21:53:01 -0800 Subject: [PATCH] scaled thermistor values (#19) * thermistor values are scaled * hm, easier with int32 so that initializers work * 0.01 because why not --- firmware/integration/rusefi_config.txt | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/firmware/integration/rusefi_config.txt b/firmware/integration/rusefi_config.txt index d2f8081b08..b27fb35b48 100644 --- a/firmware/integration/rusefi_config.txt +++ b/firmware/integration/rusefi_config.txt @@ -390,14 +390,14 @@ air_pressure_sensor_config_s sensor end_struct struct_no_prefix thermistor_conf_s @brief Thermistor known values -float tempC_1;these values are in Celcius;"*C", 1, 0, -40, 200, 1 -float tempC_2;;"*C", 1, 0, -40, 200, 1 -float tempC_3;;"*C", 1, 0, -40, 200, 1 -float resistance_1;;"Ohm", 1, 0, 0, 200000, 1 -float resistance_2;;"Ohm", 1, 0, 0, 200000, 1 -float resistance_3;;"Ohm", 1, 0, 0, 200000, 1 + int autoscale tempC_1;these values are in Celcius;"*C", 0.01, 0, -40, 200, 1 + int autoscale tempC_2;;"*C", 0.01, 0, -40, 200, 1 + int autoscale tempC_3;;"*C", 0.01, 0, -40, 200, 1 + uint32_t autoscale resistance_1;;"Ohm", 0.01, 0, 0, 200000, 1 + uint32_t autoscale resistance_2;;"Ohm", 0.01, 0, 0, 200000, 1 + uint32_t autoscale resistance_3;;"Ohm", 0.01, 0, 0, 200000, 1 - float bias_resistor;Pull-up resistor value on your board;"Ohm", 1, 0, 0, 200000, 1 + uint32_t autoscale bias_resistor;Pull-up resistor value on your board;"Ohm", 0.1, 0, 0, 200000, 1 end_struct struct linear_sensor_s @brief Linear sensor interpolation