trigger sync debug, warning_period command
This commit is contained in:
parent
dfa5aaf21d
commit
17ddd3fff8
|
@ -979,6 +979,7 @@ plain_get_integer_s getI_plain[] = {
|
|||
// {"fixed_mode_timing", setFixedModeTiming},
|
||||
// {"timing_mode", setTimingMode},
|
||||
// {"engine_type", setEngineType},
|
||||
{"warning_period", (int*)&engineConfiguration->warningPeriod},
|
||||
{"hard_limit", &engineConfiguration->rpmHardLimit},
|
||||
// {"firing_order", setFiringOrder},
|
||||
// {"algorithm", setAlgorithmInt},
|
||||
|
@ -1055,8 +1056,6 @@ static void getValue(const char *paramStr) {
|
|||
scheduleMsg(&logger, "nb_vvt_index=%d", engineConfiguration->nbVvtIndex);
|
||||
} else if (strEqualCaseInsensitive(paramStr, "global_trigger_offset_angle")) {
|
||||
scheduleMsg(&logger, "global_trigger_offset=%f", engineConfiguration->globalTriggerAngleOffset);
|
||||
} else if (strEqualCaseInsensitive(paramStr, "warningPeriod")) {
|
||||
scheduleMsg(&logger, "warningPeriod=%d", engineConfiguration->warningPeriod);
|
||||
} else if (strEqualCaseInsensitive(paramStr, "isHip9011Enabled")) {
|
||||
scheduleMsg(&logger, "isHip9011Enabled=%d", boardConfiguration->isHip9011Enabled);
|
||||
}
|
||||
|
@ -1208,7 +1207,7 @@ static void setValue(const char *paramStr, const char *valueStr) {
|
|||
// } else if (strEqualCaseInsensitive(paramStr, "cranking_rpm")) {
|
||||
// } else if (strEqualCaseInsensitive(paramStr, "cranking_rpm")) {
|
||||
// } else if (strEqualCaseInsensitive(paramStr, "cranking_rpm")) {
|
||||
} else if (strEqualCaseInsensitive(paramStr, "warningPeriod")) {
|
||||
} else if (strEqualCaseInsensitive(paramStr, "warning_period")) {
|
||||
engineConfiguration->warningPeriod = valueI;
|
||||
} else if (strEqualCaseInsensitive(paramStr, "dwell")) {
|
||||
setConstantDwell(valueF PASS_ENGINE_PARAMETER);
|
||||
|
|
|
@ -224,9 +224,9 @@ void TriggerState::decodeTriggerEvent(trigger_event_e const signal, efitime_t no
|
|||
// this is getting a little out of hand, any ideas?
|
||||
|
||||
if (engineConfiguration->debugMode == DGB_TRIGGER_SYNC) {
|
||||
float currentGap = currentDuration / toothed_previous_duration;
|
||||
float currentGap = 1.0 * currentDuration / toothed_previous_duration;
|
||||
#if ! EFI_UNIT_TEST || defined(__DOXYGEN__)
|
||||
tsOutputChannels.debugIntField1 = currentGap;
|
||||
tsOutputChannels.debugFloatField1 = currentGap;
|
||||
#endif /* EFI_UNIT_TEST */
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue