hellen on a bike: both TS and SD card logs report -32v on secondary TPS and secondary PPS #6376

only:sad but configurable
This commit is contained in:
rusefi 2024-04-22 19:52:30 -04:00
parent 2519b3fa53
commit fae665ec5c
4 changed files with 7 additions and 0 deletions

View File

@ -387,6 +387,7 @@ float mapFast
uint8_t adc13bitCounter
uint8_t fastAdcErrorsCount
uint8_t unexpectedAdcSample
uint8_t[76 iterate] unusedAtTheEnd;;"",1, 0, 0, 0, 0
end_struct

View File

@ -91,6 +91,10 @@ static adcsample_t getAvgAdcValue(int index, adcsample_t *samples, int bufDepth,
// criticalError("fast ADC unexpected sample %d", sample);
// } else
if (sample > 0xFFF) {
if (!engineConfiguration->skipADC12bitAssert) {
criticalError("fast ADC unexpected sample %d. Please report and use skipADC12bitAssert to disable", sample);
}
engine->outputChannels.unexpectedAdcSample = sample;
sample = sample & 0xFFF; // sad hack which works around https://github.com/rusefi/rusefi/issues/6376 which we do not understand
engine->outputChannels.adc13bitCounter++;
}

View File

@ -1185,6 +1185,7 @@ int16_t tps2Max;Full throttle#2. tpsMax value as 10 bit ADC value. Not Voltage!\
bit devBit5
bit devBit6
bit devBit7
bit skipADC12bitAssert
int16_t afterCrankingIACtaperDuration;This is the duration in cycles that the IAC will take to reach its normal idle position, it can be used to hold the idle higher for a few seconds after cranking to improve startup.\Should be 100 once tune is better;"cycles", 1, 0, 0, 5000, 0
int16_t iacByTpsTaper;IAC Value added when coasting and transitioning into idle.;"percent", 1, 0, 0, 500, 0

View File

@ -3087,6 +3087,7 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_
field = "Turbo Speed Multiplier", turboSpeedSensorMultiplier
field = "Throttle inlet pressure sensor", throttleInletPressureChannel
field = "Compressor discharge pressure sensor", compressorDischargePressureChannel
field = skipADC12bitAssert, skipADC12bitAssert
dialog = fuelLevelDialog, "Fuel Level Sensor"
field = "Input channel", fuelLevelSensor