vvtBooleanForVerySpecialCases, tempBooleanForVerySpecialLogic

This commit is contained in:
rusefillc 2022-09-09 17:52:54 -04:00
parent 6b03f4ba68
commit 7b4a5c9be6
12 changed files with 17 additions and 16 deletions

View File

@ -2152,7 +2152,7 @@ struct engine_configuration_s {
bool stftIgnoreErrorMagnitude : 1 {};
/**
offset 960 bit 11 */
bool tempBooleanForVerySpecialCases : 1 {};
bool vvtBooleanForVerySpecialCases : 1 {};
/**
offset 960 bit 12 */
bool enableSoftwareKnock : 1 {};

View File

@ -2119,7 +2119,7 @@
#define tcuSolenoidTable_offset 17432
#define tcuUpshiftButtonPin_offset 1536
#define tcuUpshiftButtonPinMode_offset 2950
#define tempBooleanForVerySpecialCases_offset 960
#define vvtBooleanForVerySpecialCases_offset 960
#define test557pin_offset 846
#define thermistor_conf_s_size 28
#define ThermistorConf_size 32

View File

@ -2152,7 +2152,7 @@ struct engine_configuration_s {
bool stftIgnoreErrorMagnitude : 1 {};
/**
offset 960 bit 11 */
bool tempBooleanForVerySpecialCases : 1 {};
bool vvtBooleanForVerySpecialCases : 1 {};
/**
offset 960 bit 12 */
bool enableSoftwareKnock : 1 {};

View File

@ -2119,7 +2119,7 @@
#define tcuSolenoidTable_offset 17432
#define tcuUpshiftButtonPin_offset 1536
#define tcuUpshiftButtonPinMode_offset 2950
#define tempBooleanForVerySpecialCases_offset 960
#define vvtBooleanForVerySpecialCases_offset 960
#define test557pin_offset 846
#define thermistor_conf_s_size 28
#define ThermistorConf_size 32

View File

@ -2152,7 +2152,7 @@ struct engine_configuration_s {
bool stftIgnoreErrorMagnitude : 1 {};
/**
offset 960 bit 11 */
bool tempBooleanForVerySpecialCases : 1 {};
bool vvtBooleanForVerySpecialCases : 1 {};
/**
offset 960 bit 12 */
bool enableSoftwareKnock : 1 {};

View File

@ -2086,7 +2086,7 @@
#define tcuSolenoidTable_offset 17432
#define tcuUpshiftButtonPin_offset 1536
#define tcuUpshiftButtonPinMode_offset 2950
#define tempBooleanForVerySpecialCases_offset 960
#define vvtBooleanForVerySpecialCases_offset 960
#define test557pin_offset 846
#define thermistor_conf_s_size 28
#define ThermistorConf_size 32

View File

@ -2152,7 +2152,7 @@ struct engine_configuration_s {
bool stftIgnoreErrorMagnitude : 1 {};
/**
offset 960 bit 11 */
bool tempBooleanForVerySpecialCases : 1 {};
bool vvtBooleanForVerySpecialCases : 1 {};
/**
offset 960 bit 12 */
bool enableSoftwareKnock : 1 {};

View File

@ -2119,7 +2119,7 @@
#define tcuSolenoidTable_offset 17432
#define tcuUpshiftButtonPin_offset 1536
#define tcuUpshiftButtonPinMode_offset 2950
#define tempBooleanForVerySpecialCases_offset 960
#define vvtBooleanForVerySpecialCases_offset 960
#define test557pin_offset 846
#define thermistor_conf_s_size 28
#define ThermistorConf_size 32

View File

@ -442,8 +442,8 @@ float getConfigValueByName(const char *name) {
return engineConfiguration->showHumanReadableWarning;
if (strEqualCaseInsensitive(name, "stftIgnoreErrorMagnitude"))
return engineConfiguration->stftIgnoreErrorMagnitude;
if (strEqualCaseInsensitive(name, "tempBooleanForVerySpecialCases"))
return engineConfiguration->tempBooleanForVerySpecialCases;
if (strEqualCaseInsensitive(name, "vvtBooleanForVerySpecialCases"))
return engineConfiguration->vvtBooleanForVerySpecialCases;
if (strEqualCaseInsensitive(name, "enableSoftwareKnock"))
return engineConfiguration->enableSoftwareKnock;
if (strEqualCaseInsensitive(name, "verboseVVTDecoding"))
@ -1570,9 +1570,9 @@ void setConfigValueByName(const char *name, float value) {
engineConfiguration->stftIgnoreErrorMagnitude = (int)value;
return;
}
if (strEqualCaseInsensitive(name, "tempBooleanForVerySpecialCases"))
if (strEqualCaseInsensitive(name, "vvtBooleanForVerySpecialCases"))
{
engineConfiguration->tempBooleanForVerySpecialCases = (int)value;
engineConfiguration->vvtBooleanForVerySpecialCases = (int)value;
return;
}
if (strEqualCaseInsensitive(name, "enableSoftwareKnock"))

View File

@ -180,7 +180,7 @@ static angle_t adjustCrankPhase(int camIndex) {
case VVT_MAZDA_SKYACTIV:
case VVT_MITSUBISHI_3A92:
case VVT_MITSUBISHI_6G75:
return syncAndReport(tc, getCrankDivider(operationMode), engineConfiguration->tempBooleanForVerySpecialCases ? 1 : 0);
return syncAndReport(tc, getCrankDivider(operationMode), engineConfiguration->vvtBooleanForVerySpecialCases ? 1 : 0);
case VVT_HONDA_K:
firmwareError(OBD_PCM_Processor_Fault, "Undecided on VVT phase of %s", getVvt_mode_e(vvtMode));
return 0;

View File

@ -908,7 +908,7 @@ custom maf_sensor_type_e 1 bits, S08, @OFFSET@, [0:1], @@maf_sensor_type_e_enum@
bit enableInnovateLC2
bit showHumanReadableWarning
bit stftIgnoreErrorMagnitude;+If enabled, adjust at a constant rate instead of a rate proportional to the current lambda error. This mode may be easier to tune, and more tolerant of sensor noise. Use of this mode is required if you have a narrowband O2 sensor.
bit tempBooleanForVerySpecialCases
bit vvtBooleanForVerySpecialCases
bit enableSoftwareKnock
bit verboseVVTDecoding;Verbose info in console below engineSnifferRpmThreshold\nenable vvt_details
bit invertCamVVTSignal;get invertCamVVTSignal
@ -1074,7 +1074,7 @@ bit unused_1484_bit_27
bit unused_1484_bit_38
bit unused_1484_bit_29
bit unused_1484_bit_30
bit unused_1484_bit_31
bit tempBooleanForVerySpecialLogic
uint32_t engineChartSize;;"count", 1, 0, 0, 300, 0

View File

@ -3929,7 +3929,8 @@ dialog = tcuControls, "Transmission Settings"
field = useEeprom, useEeprom
field = "disablePrimaryUart", disablePrimaryUart
field = "#System hacks"
field = "tempBooleanForVerySpecialCases", tempBooleanForVerySpecialCases
field = "vvtBooleanForVerySpecialCases", vvtBooleanForVerySpecialCases
field = tempBooleanForVerySpecialLogic, tempBooleanForVerySpecialLogic
field = "Global fuel correction", globalFuelCorrection
field = "MAP Averaging Logic @", mapAveragingSchedulingAtIndex
field = "showHumanReadableWarning (affects Burn)", showHumanReadableWarning