better status messages
This commit is contained in:
parent
87b0049355
commit
87f8cb0b37
|
@ -8,6 +8,18 @@
|
|||
|
||||
#include "main.h"
|
||||
#include "rusefi_enums.h"
|
||||
|
||||
const char *getVvt_mode_e(vvt_mode_e value) {
|
||||
switch(value) {
|
||||
case MIATA_NB2:
|
||||
return "MIATA_NB2";
|
||||
|
||||
default: return "no_test";
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
const char *getTiming_mode_e(timing_mode_e value) {
|
||||
switch(value) {
|
||||
case Internal_ForceMyEnumIntSize_timing_mode:
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
|
||||
#include "rusefi_enums.h"
|
||||
const char *getVvt_mode_e(vvt_mode_e value);
|
||||
const char *getTiming_mode_e(timing_mode_e value);
|
||||
const char *getEngine_type_e(engine_type_e value);
|
||||
const char *getTrigger_type_e(trigger_type_e value);
|
||||
|
|
|
@ -445,7 +445,7 @@ void triggerInfo(void) {
|
|||
|
||||
TriggerShape *ts = &engine->triggerCentral.triggerShape;
|
||||
|
||||
scheduleMsg(logger, "Template %s (%d) trigger %s (%d) useRiseEdge=%s onlyFront=%s useOnlyFirstChannel=%s tdcOffset=%d",
|
||||
scheduleMsg(logger, "Template %s (%d) trigger %s (%d) useRiseEdge=%s onlyFront=%s useOnlyFirstChannel=%s tdcOffset=%f",
|
||||
getConfigurationName(engineConfiguration->engineType), engineConfiguration->engineType,
|
||||
getTrigger_type_e(engineConfiguration->trigger.type), engineConfiguration->trigger.type,
|
||||
boolToString(TRIGGER_SHAPE(useRiseEdge)), boolToString(engineConfiguration->useOnlyRisingEdgeForTrigger),
|
||||
|
@ -484,8 +484,8 @@ void triggerInfo(void) {
|
|||
|
||||
#if EFI_PROD_CODE || defined(__DOXYGEN__)
|
||||
if (engineConfiguration->camInput != GPIO_UNASSIGNED) {
|
||||
scheduleMsg(logger, "VVT input: %s mode %d", hwPortname(engineConfiguration->camInput),
|
||||
engineConfiguration->vvtMode);
|
||||
scheduleMsg(logger, "VVT input: %s mode %s", hwPortname(engineConfiguration->camInput),
|
||||
getVvt_mode_e(engineConfiguration->vvtMode));
|
||||
scheduleMsg(logger, "VVT event counters: %d/%d", vvtEventRiseCounter, vvtEventFallCounter);
|
||||
|
||||
}
|
||||
|
|
|
@ -249,12 +249,14 @@ void TriggerState::decodeTriggerEvent(trigger_event_e const signal, efitime_t no
|
|||
float prevGap = 1.0 * toothed_previous_duration / durationBeforePrevious;
|
||||
float gap3 = 1.0 * durationBeforePrevious / thirdPreviousDuration;
|
||||
#if EFI_PROD_CODE || defined(__DOXYGEN__)
|
||||
scheduleMsg(logger, "%d: gap=%f/%f/%f @ %d while expected %f/%f and %f/%f error=%d",
|
||||
scheduleMsg(logger, "%d: cur=%f/prev=%f/3rd=%f @ %d while expected from %f to %f and 2nd from %f to %f and 3rd from %f to %f error=%d",
|
||||
getTimeNowSeconds(),
|
||||
gap, prevGap, gap3,
|
||||
currentCycle.current_index,
|
||||
TRIGGER_SHAPE(syncRatioFrom), TRIGGER_SHAPE(syncRatioTo),
|
||||
TRIGGER_SHAPE(secondSyncRatioFrom), TRIGGER_SHAPE(secondSyncRatioTo), someSortOfTriggerError);
|
||||
TRIGGER_SHAPE(secondSyncRatioFrom), TRIGGER_SHAPE(secondSyncRatioTo),
|
||||
TRIGGER_SHAPE(thirdSyncRatioFrom), TRIGGER_SHAPE(thirdSyncRatioTo),
|
||||
someSortOfTriggerError);
|
||||
#else
|
||||
actualSynchGap = gap;
|
||||
print("current gap %f/%f/%f c=%d prev=%d\r\n", gap, prevGap, gap3, currentDuration, toothed_previous_duration);
|
||||
|
|
Loading…
Reference in New Issue