automation around outputs section #197
This commit is contained in:
parent
026b0a344d
commit
31898a2d79
|
@ -34,7 +34,7 @@ static constexpr LogField fields[] = {
|
|||
{tsOutputChannels.AFRValue, GAUGE_NAME_AFR, "afr", 2},
|
||||
{tsOutputChannels.AFRValue2, GAUGE_NAME_AFR2, "afr", 2},
|
||||
{tsOutputChannels.lambdaValue, GAUGE_NAME_LAMBDA, "", 3},
|
||||
{tsOutputChannels.lambda2, GAUGE_NAME_LAMBDA2, "", 3},
|
||||
{tsOutputChannels.lambdaValue2, GAUGE_NAME_LAMBDA2, "", 3},
|
||||
{tsOutputChannels.warningCounter, GAUGE_NAME_WARNING_COUNTER, "", 0},
|
||||
{tsOutputChannels.lastErrorCode, GAUGE_NAME_WARNING_LAST, "", 0},
|
||||
{tsOutputChannels.tuneCrc16, GAUGE_NAME_TUNE_CRC16, "", 0},
|
||||
|
|
|
@ -494,7 +494,7 @@ static void updateLambda() {
|
|||
tsOutputChannels.AFRValue = lambdaValue * engine->engineState.stoichiometricRatio;
|
||||
|
||||
float lambda2Value = Sensor::getOrZero(SensorType::Lambda2);
|
||||
tsOutputChannels.lambda2 = lambda2Value;
|
||||
tsOutputChannels.lambdaValue2 = lambda2Value;
|
||||
tsOutputChannels.AFRValue2 = lambda2Value * engine->engineState.stoichiometricRatio;
|
||||
}
|
||||
|
||||
|
@ -767,7 +767,7 @@ void updateTunerStudioState(TunerStudioOutputChannels *tsOutputChannels) {
|
|||
tsOutputChannels->warningCounter = engine->engineState.warnings.warningCounter;
|
||||
tsOutputChannels->lastErrorCode = engine->engineState.warnings.lastErrorCode;
|
||||
for (int i = 0; i < 8;i++) {
|
||||
tsOutputChannels->recentErrorCodes[i] = engine->engineState.warnings.recentWarnings.get(i);
|
||||
tsOutputChannels->recentErrorCode[i] = engine->engineState.warnings.recentWarnings.get(i);
|
||||
}
|
||||
|
||||
switch (engineConfiguration->debugMode) {
|
||||
|
|
Loading…
Reference in New Issue