This commit is contained in:
rusefillc 2022-12-17 14:58:10 -05:00
parent 2b4d58005b
commit f0f8f022e2
4 changed files with 14 additions and 5 deletions

View File

@ -10,6 +10,8 @@
#include "buffered_writer.h"
#include "tunerstudio.h"
#if EFI_FILE_LOGGING
#define TIME_PRECISION 1000
// floating number of seconds with millisecond precision
@ -27,7 +29,6 @@ static constexpr uint16_t computeFieldsRecordLength() {
return recLength;
}
#if EFI_FILE_LOGGING
static uint64_t binaryLogCount = 0;
extern bool main_loop_started;

View File

@ -68,6 +68,7 @@ void LimpManager::updateState(int rpm, efitick_t nowNt) {
}
}
#if EFI_SHAFT_POSITION_INPUT
if (noFiringUntilVvtSync(engineConfiguration->vvtMode[0])
&& !engine->triggerCentral.triggerState.hasSynchronizedPhase()) {
// Any engine that requires cam-assistance for a full crank sync (symmetrical crank) can't schedule until we have cam sync
@ -77,6 +78,7 @@ void LimpManager::updateState(int rpm, efitick_t nowNt) {
allowFuel.clear(ClearReason::EnginePhase);
allowSpark.clear(ClearReason::EnginePhase);
}
#endif // EFI_SHAFT_POSITION_INPUT
// Force fuel limiting on the fault rev limit
if (rpm > m_faultRevLimit) {

View File

@ -659,10 +659,12 @@ static void setSpiMode(int index, bool mode) {
}
static void enableOrDisable(const char *param, bool isEnabled) {
if (strEqualCaseInsensitive(param, CMD_TRIGGER_HW_INPUT)) {
getTriggerCentral()->hwTriggerInputEnabled = isEnabled;
} else if (strEqualCaseInsensitive(param, "useTLE8888_cranking_hack")) {
if (strEqualCaseInsensitive(param, "useTLE8888_cranking_hack")) {
engineConfiguration->useTLE8888_cranking_hack = isEnabled;
#if EFI_SHAFT_POSITION_INPUT
} else if (strEqualCaseInsensitive(param, CMD_TRIGGER_HW_INPUT)) {
getTriggerCentral()->hwTriggerInputEnabled = isEnabled;
#endif // EFI_SHAFT_POSITION_INPUT
} else if (strEqualCaseInsensitive(param, "verboseTLE8888")) {
engineConfiguration->verboseTLE8888 = isEnabled;
} else if (strEqualCaseInsensitive(param, "verboseCan")) {
@ -811,8 +813,10 @@ static void getValue(const char *paramStr) {
efiPrintf("tps_max=%d", engineConfiguration->tpsMax);
} else if (strEqualCaseInsensitive(paramStr, "global_trigger_offset_angle")) {
efiPrintf("global_trigger_offset=%.2f", engineConfiguration->globalTriggerAngleOffset);
#if EFI_SHAFT_POSITION_INPUT
} else if (strEqualCaseInsensitive(paramStr, "trigger_hw_input")) {
efiPrintf("trigger_hw_input=%s", boolToString(getTriggerCentral()->hwTriggerInputEnabled));
#endif // EFI_SHAFT_POSITION_INPUT
} else if (strEqualCaseInsensitive(paramStr, "is_enabled_spi_1")) {
efiPrintf("is_enabled_spi_1=%s", boolToString(engineConfiguration->is_enabled_spi_1));
} else if (strEqualCaseInsensitive(paramStr, "is_enabled_spi_2")) {

View File

@ -139,15 +139,17 @@ void WaveChart::publishIfFull() {
}
void WaveChart::publish() {
#if EFI_ENGINE_SNIFFER
logging.appendPrintf( LOG_DELIMITER);
waveChartUsedSize = logging.loggingSize();
#if DEBUG_WAVE
Logging *l = &chart->logging;
efiPrintf("IT'S TIME", strlen(l->buffer));
#endif
#endif // DEBUG_WAVE
if (getTriggerCentral()->isEngineSnifferEnabled) {
scheduleLogging(&logging);
}
#endif /* EFI_ENGINE_SNIFFER */
}
/**