ETB duty cycle jitter #4833

still totally dead on real hardware and I've already fixed two defects! time for an indicator
This commit is contained in:
rusefi 2022-11-29 22:00:28 -05:00
parent 31a8a91f3b
commit b3a3c97b87
3 changed files with 18 additions and 1 deletions

View File

@ -26,6 +26,18 @@ enum class ClearReason : uint8_t {
// todo: add a code generator between ClearReason and fuelIgnCutCodeList in rusefi.input
};
enum class TpsState : uint8_t {
None, // 0
Setting,
TpsError,
PpsError, // 3
InputJitter,
PidJitter,
// keep this list in sync with etbCutCodeList
};
// Only allows clearing the value, but never resetting it.
class Clearable {
public:

View File

@ -1348,7 +1348,7 @@ custom stepper_num_micro_steps_e 1 bits, U08, @OFFSET@, [0:3], @@stepper_num_mic
brain_input_pin_e[SENT_INPUT_COUNT iterate] sentInputPins;
int8_t launchFuelAdderPercent
int8_t[1 iterate] sorryUnused
int8_t tpsErrorCode
int16_t etbExpAverageLength
float etbDutyThreshold

View File

@ -235,8 +235,12 @@ enable2ndByteCanID = false
wboFaultCodeList = bits, U08, [0:3], "OK", "Unk", "Unk", "failed to heat", "overheat", "underheat", "no supply"
; ClearReason
fuelIgnCutCodeList = bits, U08, [0:7], "None", "fatal error", "setting disabled", "RPM limit", "fault RPM limit", "boost cut", "oil pressure", "stop requested", "ETB problem", "launch control", "max injector duty", "flood clear", "engine sync", "kickstart", "ign off"
; TpsState
etbCutCodeList = bits, U08, [0:7], "None", "engine off setting", "TPS error", "PPS error", "Input noise", "PID noise"
[ConstantsExtensions]
; defaultValue is used to provide TunerStudio with a value to use in the case of
; the constant not yet being initialized. This is primarily important if the
@ -1464,6 +1468,7 @@ gaugeCategory = GPPWM Outputs
indicator = { isTriggerError}, "Trigger OK", "Trigger ERR", white, black, red, black
indicator = { fuelCutReason != 0 }, "Injection OK", { Fuel cut: bitStringValue(fuelIgnCutCodeList, fuelCutReason)}, white, black, yellow, black
indicator = { sparkCutReason != 0 }, "Ignition OK", { Ign cut: bitStringValue(fuelIgnCutCodeList, sparkCutReason)}, white, black, yellow, black
indicator = { tpsErrorCode != 0 }, "ETB OK", { ETB: bitStringValue(etbCutCodeList, tpsErrorCode)}, white, black, yellow, black
; this is required so that the "config error" feature works in TS
; DO NOT CHANGE THIS LINE - TS is looking for an indicator with particular text/styling