removing some unneeded flexibility

This commit is contained in:
rusefi 2020-05-10 01:34:43 -04:00
parent bfe3b2c5fb
commit db8d11739d
4 changed files with 3 additions and 8 deletions

View File

@ -350,9 +350,6 @@ void setMazdaMiata2003EngineConfiguration(DECLARE_CONFIG_PARAMETER_SIGNATURE) {
// engineConfiguration->vehicleSpeedSensorInputPin = GPIOA_8;
engineConfiguration->vvtDisplayInverted = true;
engineConfiguration->auxPidPins[0] = GPIOE_3; // VVT solenoid control
// /**
// * set_fsio_setting 1 0.55

View File

@ -179,7 +179,7 @@ void hwHandleVvtCamSignal(trigger_value_e front, efitick_t nowNt DECLARE_ENGINE_
vvtPosition -= tdcPosition();
fixAngle(vvtPosition, "vvtPosition", CUSTOM_ERR_6558);
tc->vvtPosition = (engineConfiguration->vvtDisplayInverted ? -vvtPosition : vvtPosition) + engineConfiguration->vvtOffset;
tc->vvtPosition = engineConfiguration->vvtOffset - vvtPosition;
switch (engineConfiguration->vvtMode) {
default:
@ -704,8 +704,7 @@ void onConfigurationChangeTriggerCallback(DECLARE_ENGINE_PARAMETER_SIGNATURE) {
isConfigurationChanged(triggerInputPins[2]) ||
isConfigurationChanged(vvtMode) ||
isConfigurationChanged(vvtCamSensorUseRise) ||
isConfigurationChanged(vvtOffset) ||
isConfigurationChanged(vvtDisplayInverted);
isConfigurationChanged(vvtOffset);
if (changed) {
assertEngineReference();

View File

@ -887,7 +887,7 @@ custom maf_sensor_type_e 4 bits, S32, @OFFSET@, [0:7], @@maf_sensor_type_e_enum@
int[68] unusedAtOldBoardConfigurationEnd;
bit vvtDisplayInverted
bit unusedHereWeHave
bit fuelClosedLoopCorrectionEnabled;+Enables lambda sensor closed loop feedback for fuelling.
bit isVerboseIAC;+Print details into rusEfi console
bit isVerboseETB;+Prints ETB details to rusEFI console

View File

@ -1657,7 +1657,6 @@ cmd_set_engine_type_default = "w\x00\x31\x00\x00"
field = "VVT mode", vvtMode, {trigger_type != 80}
field = "VVT use rise front", vvtCamSensorUseRise, {trigger_type != 80}
field = "VVT position display offset", vvtOffset
field = "VVT display inverted", vvtDisplayInverted
field = "print verbose sync details to console",verboseTriggerSynchDetails
field = "Do not print messages in case of sync error", silentTriggerError
field = "Enable noise filtering", useNoiselessTriggerDecoder, {trigger_type == @@TRIGGER_TYPE_60_2@@ || trigger_type == @@TRIGGER_TYPE_36_1@@}