auto-sync

This commit is contained in:
rusEfi 2016-07-12 09:03:22 -04:00
parent c4b09858bf
commit 2bf830e86c
3 changed files with 12 additions and 10 deletions

View File

@ -177,7 +177,9 @@ void configureHondaCbr600custom(TriggerShape *s DECLARE_ENGINE_PARAMETER_S) {
s->useOnlyPrimaryForSync = true;
s->isSynchronizationNeeded = true;
s->setTriggerSynchronizationGap2(0.7, 1);
s->setTriggerSynchronizationGap2(0.7, 1.1);
s->gapBothDirections = false;
float a = 0;

View File

@ -317,11 +317,11 @@ custom trigger_type_e 4 bits, U32, @OFFSET@, [0:4], @@trigger_type_e_enum@@
bit customNeedSecondTriggerInput;
bit useOnlyFirstChannel;+This option could be used if your second trigger channel is broken
int customTotalToothCount;;"number", 1, 0.0, 0, 1000.0, 2
int customSkippedToothCount;;"number", 1, 0.0, 0, 1000.0, 2
int customTotalToothCount;;"number", 1, 0.0, 0, 500.0, 0
int customSkippedToothCount;;"number", 1, 0.0, 0, 500.0, 0
float customSyncRatioFrom;;"number", 1, 0.0, 0, 1000.0, 2
float customSyncRatioTo;;"number", 1, 0.0, 0, 1000.0, 2
float customSyncRatioFrom;;"number", 1, 0.0, 0, 1000.0, 4
float customSyncRatioTo;;"number", 1, 0.0, 0, 1000.0, 4
bool32_t customUseRiseEdge;
end_struct

View File

@ -42,7 +42,7 @@ enable2ndByteCanID = false
; see PAGE_0_SIZE in C source code
; CONFIG_DEFINITION_START
; this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Tue Jul 05 10:25:36 EDT 2016
; this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Tue Jul 12 08:35:53 EDT 2016
pageSize = 16376
page = 1
@ -159,10 +159,10 @@ page = 1
trigger_customIsSynchronizationNeeded= bits, U32, 540, [0:0], "false", "true"
trigger_customNeedSecondTriggerInput= bits, U32, 540, [1:1], "false", "true"
trigger_useOnlyFirstChannel= bits, U32, 540, [2:2], "false", "true"
trigger_customTotalToothCount = scalar, S32, 544, "number", 1, 0.0, 0, 1000.0, 2
trigger_customSkippedToothCount = scalar, S32, 548, "number", 1, 0.0, 0, 1000.0, 2
trigger_customSyncRatioFrom = scalar, F32, 552, "number", 1, 0.0, 0, 1000.0, 2
trigger_customSyncRatioTo = scalar, F32, 556, "number", 1, 0.0, 0, 1000.0, 2
trigger_customTotalToothCount = scalar, S32, 544, "number", 1, 0.0, 0, 500.0, 0
trigger_customSkippedToothCount = scalar, S32, 548, "number", 1, 0.0, 0, 500.0, 0
trigger_customSyncRatioFrom = scalar, F32, 552, "number", 1, 0.0, 0, 1000.0, 4
trigger_customSyncRatioTo = scalar, F32, 556, "number", 1, 0.0, 0, 1000.0, 4
trigger_customUseRiseEdge = bits, U32, 560, [0:0], "false", "true"
hip9011SpiDevice = bits,U32, 564, [0:1], "Off", "SPI1", "SPI2", "SPI3"
globalFuelCorrection = scalar, F32, 568, "coef", 1, 0.0, 0, 1000.0, 2