evil manual merge of https://github.com/DonaldBecker/rusefi
This commit is contained in:
parent
7015a5c250
commit
d4574a3cab
|
@ -290,7 +290,7 @@ static void resetAccel(void) {
|
||||||
engine->engineLoadAccelEnrichment.resetAE();
|
engine->engineLoadAccelEnrichment.resetAE();
|
||||||
engine->tpsAccelEnrichment.resetAE();
|
engine->tpsAccelEnrichment.resetAE();
|
||||||
|
|
||||||
for (int i = 0; i < sizeof(engine->wallFuel) / sizeof(engine->wallFuel[0]); i++)
|
for (unsigned int i = 0; i < sizeof(engine->wallFuel) / sizeof(engine->wallFuel[0]); i++)
|
||||||
{
|
{
|
||||||
engine->wallFuel[i].resetWF();
|
engine->wallFuel[i].resetWF();
|
||||||
}
|
}
|
||||||
|
|
|
@ -173,8 +173,6 @@ void configureHondaCbr600(TriggerShape *s) {
|
||||||
|
|
||||||
s->setTriggerSynchronizationGap(6);
|
s->setTriggerSynchronizationGap(6);
|
||||||
|
|
||||||
// w = 15
|
|
||||||
float w = 720 / 2 / 24;
|
|
||||||
|
|
||||||
int totalTeethCount = 24;
|
int totalTeethCount = 24;
|
||||||
int skippedCount = 0;
|
int skippedCount = 0;
|
||||||
|
@ -182,6 +180,8 @@ void configureHondaCbr600(TriggerShape *s) {
|
||||||
addSkippedToothTriggerEvents(T_SECONDARY, s, totalTeethCount, skippedCount, 0.5, 0, 720,
|
addSkippedToothTriggerEvents(T_SECONDARY, s, totalTeethCount, skippedCount, 0.5, 0, 720,
|
||||||
0, 349);
|
0, 349);
|
||||||
|
|
||||||
|
// w = 15
|
||||||
|
// float w = 720 / 2 / 24;
|
||||||
|
|
||||||
//s->addEvent720(360 -w, T_SECONDARY, TV_RISE);
|
//s->addEvent720(360 -w, T_SECONDARY, TV_RISE);
|
||||||
|
|
||||||
|
|
|
@ -241,7 +241,7 @@ void TriggerShape::addEvent(angle_t angle, trigger_wheel_e const channelIndex, t
|
||||||
}
|
}
|
||||||
|
|
||||||
int exactMatch = wave.findAngleMatch(angle, privateTriggerDefinitionSize);
|
int exactMatch = wave.findAngleMatch(angle, privateTriggerDefinitionSize);
|
||||||
if (exactMatch != EFI_ERROR_CODE) {
|
if (exactMatch != (int)EFI_ERROR_CODE) {
|
||||||
warning(CUSTOM_ERR_SAME_ANGLE, "same angle: not supported");
|
warning(CUSTOM_ERR_SAME_ANGLE, "same angle: not supported");
|
||||||
setShapeDefinitionError(true);
|
setShapeDefinitionError(true);
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -505,7 +505,7 @@ void mainTriggerCallback(trigger_event_e ckpSignalType, uint32_t trgEventIndex D
|
||||||
|
|
||||||
efiAssertVoid(CUSTOM_IGN_MATH_STATE, !CONFIG(useOnlyRisingEdgeForTrigger) || CONFIG(ignMathCalculateAtIndex) % 2 == 0, "invalid ignMathCalculateAtIndex");
|
efiAssertVoid(CUSTOM_IGN_MATH_STATE, !CONFIG(useOnlyRisingEdgeForTrigger) || CONFIG(ignMathCalculateAtIndex) % 2 == 0, "invalid ignMathCalculateAtIndex");
|
||||||
|
|
||||||
if (trgEventIndex == CONFIG(ignMathCalculateAtIndex)) {
|
if (trgEventIndex == (uint32_t)CONFIG(ignMathCalculateAtIndex)) {
|
||||||
if (CONFIG(externalKnockSenseAdc) != EFI_ADC_NONE) {
|
if (CONFIG(externalKnockSenseAdc) != EFI_ADC_NONE) {
|
||||||
float externalKnockValue = getVoltageDivided("knock", engineConfiguration->externalKnockSenseAdc PASS_ENGINE_PARAMETER_SUFFIX);
|
float externalKnockValue = getVoltageDivided("knock", engineConfiguration->externalKnockSenseAdc PASS_ENGINE_PARAMETER_SUFFIX);
|
||||||
engine->knockLogic(externalKnockValue PASS_ENGINE_PARAMETER_SUFFIX);
|
engine->knockLogic(externalKnockValue PASS_ENGINE_PARAMETER_SUFFIX);
|
||||||
|
|
Loading…
Reference in New Issue