mirror of https://github.com/rusefi/rusefi.git
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:
parent
2519b3fa53
commit
fae665ec5c
|
@ -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
|
||||
|
|
|
@ -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++;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue