This commit is contained in:
rusefillc 2023-08-10 02:59:50 -04:00
parent 62ebb6a206
commit d71f9600ad
4 changed files with 7 additions and 1 deletions

View File

@ -89,6 +89,7 @@ void setSbc() {
// wow high side relay control
engineConfiguration->fuelPumpPin = PROTEUS_HS_1;
setGmCltSensor(&engineConfiguration->clt, PROTEUS_DEFAULT_AT_PULLUP);
#endif // HW_PROTEUS
engineConfiguration->mainRelayPin = Gpio::Unassigned; // vehicle controls main relay

View File

@ -42,6 +42,10 @@ void setCommonNTCSensor(ThermistorConf *thermistorConf, float pullup) {
/*resistance*/18000, /*resistance*/2100, /*resistance*/100, pullup};
}
void setGmCltSensor(ThermistorConf *thermistorConf, float pullup) {
thermistorConf->config = {-40, 40, 130, 100'000, 1459, 70, pullup};
}
void set10K_4050K(ThermistorConf *thermistorConf, float pullup) {
// see https://www.taydaelectronics.com/datasheets/A-409.pdf
thermistorConf->config = {-30, 25, 130, 108000, 10000, 225, pullup};

View File

@ -21,6 +21,7 @@ void setAtSensor(ThermistorConf *thermistorConf,
float tempHigh, float rHigh);
void setCommonNTCSensor(ThermistorConf *thermistorConf, float pullup);
void setGmCltSensor(ThermistorConf *thermistorConf, float pullup);
void setDodgeSensor(ThermistorConf *thermistorConf, float pullup);
void set10K_4050K(ThermistorConf *thermistorConf, float pullup);

View File

@ -3042,7 +3042,7 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_
field = "Bias resistor", clt_bias_resistor, {clt_adcChannel != @@ADC_CHANNEL_NONE@@}@@if_ts_show_clt_iat_pullup
settingSelector = "Common CLT Sensors"
settingOption = "GM CLT", clt_tempC_1=0,clt_resistance_1=9240,clt_tempC_2=40,clt_resistance_2=1459,clt_tempC_3=100,clt_resistance_3=177,useLinearCltSensor=0
settingOption = "GM CLT", clt_tempC_1=-40,clt_resistance_1=100000,clt_tempC_2=40,clt_resistance_2=1459,clt_tempC_3=130,clt_resistance_3=70,useLinearCltSensor=0
settingOption = "Miata NA", clt_tempC_1=-20,clt_resistance_1=16150,clt_tempC_2=40,clt_resistance_2=1150,clt_tempC_3=80,clt_resistance_3=330,useLinearCltSensor=0
settingOption = "Miata NB", clt_tempC_1=-10,clt_resistance_1=9000,clt_tempC_2=20,clt_resistance_2=2500,clt_tempC_3=80,clt_resistance_3=320,useLinearCltSensor=0
settingOption = "Bosch Various", clt_tempC_1=0,clt_resistance_1=5896,clt_tempC_2=50,clt_resistance_2=834,clt_tempC_3=100,clt_resistance_3=187,useLinearCltSensor=0