only: debug channel cleanups
This commit is contained in:
parent
fb4b70a86f
commit
6d12cdb7c9
|
@ -722,12 +722,6 @@ int TunerStudio::handleCrcCommand(TsChannelBase* tsChannel, char *data, int inco
|
||||||
uint16_t subsystem = SWAP_UINT16(data16[0]);
|
uint16_t subsystem = SWAP_UINT16(data16[0]);
|
||||||
uint16_t index = SWAP_UINT16(data16[1]);
|
uint16_t index = SWAP_UINT16(data16[1]);
|
||||||
|
|
||||||
if (engineConfiguration->debugMode == DBG_BENCH_TEST) {
|
|
||||||
engine->outputChannels.debugIntField1++;
|
|
||||||
engine->outputChannels.debugIntField2 = subsystem;
|
|
||||||
engine->outputChannels.debugIntField3 = index;
|
|
||||||
}
|
|
||||||
|
|
||||||
#if EFI_PROD_CODE && EFI_ENGINE_CONTROL
|
#if EFI_PROD_CODE && EFI_ENGINE_CONTROL
|
||||||
executeTSCommand(subsystem, index);
|
executeTSCommand(subsystem, index);
|
||||||
#endif /* EFI_PROD_CODE */
|
#endif /* EFI_PROD_CODE */
|
||||||
|
|
|
@ -54,13 +54,6 @@ float WallFuel::adjust(float desiredMassGrams) {
|
||||||
float fuelFilmMass = wallFuel;
|
float fuelFilmMass = wallFuel;
|
||||||
float M_cmd = (desiredMassGrams - (1 - alpha) * fuelFilmMass) / (1 - beta);
|
float M_cmd = (desiredMassGrams - (1 - alpha) * fuelFilmMass) / (1 - beta);
|
||||||
|
|
||||||
#if EFI_TUNER_STUDIO
|
|
||||||
if (engineConfiguration->debugMode == DBG_KNOCK) {
|
|
||||||
engine->outputChannels.debugFloatField3 = fuelFilmMass;
|
|
||||||
engine->outputChannels.debugFloatField4 = M_cmd;
|
|
||||||
}
|
|
||||||
#endif // EFI_TUNER_STUDIO
|
|
||||||
|
|
||||||
// We can't inject a negative amount of fuel
|
// We can't inject a negative amount of fuel
|
||||||
// If this goes below zero we will be over-fueling slightly,
|
// If this goes below zero we will be over-fueling slightly,
|
||||||
// but that's ok.
|
// but that's ok.
|
||||||
|
@ -71,12 +64,6 @@ float WallFuel::adjust(float desiredMassGrams) {
|
||||||
// remainder on walls from last time + new from this time
|
// remainder on walls from last time + new from this time
|
||||||
float fuelFilmMassNext = alpha * fuelFilmMass + beta * M_cmd;
|
float fuelFilmMassNext = alpha * fuelFilmMass + beta * M_cmd;
|
||||||
|
|
||||||
#if EFI_TUNER_STUDIO
|
|
||||||
if (engineConfiguration->debugMode == DBG_KNOCK) {
|
|
||||||
engine->outputChannels.debugFloatField5 = fuelFilmMassNext;
|
|
||||||
}
|
|
||||||
#endif // EFI_TUNER_STUDIO
|
|
||||||
|
|
||||||
wallFuel = fuelFilmMassNext;
|
wallFuel = fuelFilmMassNext;
|
||||||
wallFuelCorrection = M_cmd - desiredMassGrams;
|
wallFuelCorrection = M_cmd - desiredMassGrams;
|
||||||
return M_cmd;
|
return M_cmd;
|
||||||
|
@ -185,12 +172,4 @@ void WallFuelController::onFastCallback() {
|
||||||
m_alpha = alpha;
|
m_alpha = alpha;
|
||||||
m_beta = beta;
|
m_beta = beta;
|
||||||
m_enable = true;
|
m_enable = true;
|
||||||
|
|
||||||
#if EFI_TUNER_STUDIO
|
|
||||||
// TODO: why DBG_KNOCK? That seems wrong.
|
|
||||||
if (engineConfiguration->debugMode == DBG_KNOCK) {
|
|
||||||
engine->outputChannels.debugFloatField1 = alpha;
|
|
||||||
engine->outputChannels.debugFloatField2 = beta;
|
|
||||||
}
|
|
||||||
#endif // EFI_TUNER_STUDIO
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -546,12 +546,6 @@ void mlgLogger() {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (engineConfiguration->debugMode == DBG_SD_CARD) {
|
|
||||||
engine->outputChannels.debugIntField1 = totalLoggedBytes;
|
|
||||||
engine->outputChannels.debugIntField2 = totalWritesCounter;
|
|
||||||
engine->outputChannels.debugIntField3 = totalSyncCounter;
|
|
||||||
engine->outputChannels.debugIntField4 = fileCreatedCounter;
|
|
||||||
}
|
|
||||||
|
|
||||||
writeSdLogLine(logBuffer);
|
writeSdLogLine(logBuffer);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue