scaled thermistor values (#19)

* thermistor values are scaled

* hm, easier with int32 so that initializers work

* 0.01 because why not
This commit is contained in:
Matthew Kennedy 2023-02-22 21:53:01 -08:00 committed by GitHub
parent 1f5046bff0
commit e0ad65b234
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -390,14 +390,14 @@ air_pressure_sensor_config_s sensor
end_struct end_struct
struct_no_prefix thermistor_conf_s @brief Thermistor known values struct_no_prefix thermistor_conf_s @brief Thermistor known values
float tempC_1;these values are in Celcius;"*C", 1, 0, -40, 200, 1 int autoscale tempC_1;these values are in Celcius;"*C", 0.01, 0, -40, 200, 1
float tempC_2;;"*C", 1, 0, -40, 200, 1 int autoscale tempC_2;;"*C", 0.01, 0, -40, 200, 1
float tempC_3;;"*C", 1, 0, -40, 200, 1 int autoscale tempC_3;;"*C", 0.01, 0, -40, 200, 1
float resistance_1;;"Ohm", 1, 0, 0, 200000, 1 uint32_t autoscale resistance_1;;"Ohm", 0.01, 0, 0, 200000, 1
float resistance_2;;"Ohm", 1, 0, 0, 200000, 1 uint32_t autoscale resistance_2;;"Ohm", 0.01, 0, 0, 200000, 1
float resistance_3;;"Ohm", 1, 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 end_struct
struct linear_sensor_s @brief Linear sensor interpolation struct linear_sensor_s @brief Linear sensor interpolation