removing some unneeded flexibility

This commit is contained in:
rusefi 2020-05-10 01:34:43 -04:00
parent 32ba492b48
commit 919afd35e8
8 changed files with 13 additions and 18 deletions

View File

@ -1,4 +1,4 @@
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on kineris_gen_config.bat integration/rusefi_config.txt Sat May 09 18:58:46 EDT 2020
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on kineris_gen_config.bat integration/rusefi_config.txt Sun May 10 01:32:43 EDT 2020
// by class com.rusefi.output.CHeaderConsumer
// begin
#ifndef CONFIG_BOARDS_KINETIS_CONFIG_CONTROLLERS_ALGO_ENGINE_CONFIGURATION_GENERATED_STRUCTURES_H
@ -1918,7 +1918,7 @@ struct engine_configuration_s {
int unusedAtOldBoardConfigurationEnd[68];
/**
offset 1464 bit 0 */
bool vvtDisplayInverted : 1;
bool unusedHereWeHave : 1;
/**
* Enables lambda sensor closed loop feedback for fuelling.
offset 1464 bit 1 */
@ -3455,4 +3455,4 @@ typedef struct persistent_config_s persistent_config_s;
#endif
// end
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on kineris_gen_config.bat integration/rusefi_config.txt Sat May 09 18:58:46 EDT 2020
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on kineris_gen_config.bat integration/rusefi_config.txt Sun May 10 01:32:43 EDT 2020

View File

@ -2361,6 +2361,8 @@
#define unusedFlexFuelSensor_offset_hex c1c
#define unusedHere_offset 761
#define unusedHere_offset_hex 2f9
#define unusedHereWeHave_offset 1464
#define unusedHereWeHave_offset_hex 5b8
#define unusedOldBiquad_offset 2332
#define unusedOldBiquad_offset_hex 91c
#define unusedSomethingWasHere_offset 2417
@ -2479,8 +2481,6 @@
#define vvt_mode_e_enum "First half", "Second half", "2GZ", "Miata NB2", "mode4", "mode5", "mode6", "mode7"
#define vvtCamSensorUseRise_offset 744
#define vvtCamSensorUseRise_offset_hex 2e8
#define vvtDisplayInverted_offset 1464
#define vvtDisplayInverted_offset_hex 5b8
#define vvtMode_offset 2328
#define vvtMode_offset_hex 918
#define vvtOffset_offset 2052

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

@ -1,4 +1,4 @@
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.bat integration\rusefi_config.txt Sat May 09 18:58:34 EDT 2020
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.bat integration\rusefi_config.txt Sun May 10 01:32:34 EDT 2020
// by class com.rusefi.output.CHeaderConsumer
// begin
#ifndef CONTROLLERS_GENERATED_ENGINE_CONFIGURATION_GENERATED_STRUCTURES_H
@ -1918,7 +1918,7 @@ struct engine_configuration_s {
int unusedAtOldBoardConfigurationEnd[68];
/**
offset 1464 bit 0 */
bool vvtDisplayInverted : 1;
bool unusedHereWeHave : 1;
/**
* Enables lambda sensor closed loop feedback for fuelling.
offset 1464 bit 1 */
@ -3455,4 +3455,4 @@ typedef struct persistent_config_s persistent_config_s;
#endif
// end
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.bat integration\rusefi_config.txt Sat May 09 18:58:34 EDT 2020
// this section was generated automatically by rusEfi tool ConfigDefinition.jar based on gen_config.bat integration\rusefi_config.txt Sun May 10 01:32:34 EDT 2020

View File

@ -2361,6 +2361,8 @@
#define unusedFlexFuelSensor_offset_hex c1c
#define unusedHere_offset 761
#define unusedHere_offset_hex 2f9
#define unusedHereWeHave_offset 1464
#define unusedHereWeHave_offset_hex 5b8
#define unusedOldBiquad_offset 2332
#define unusedOldBiquad_offset_hex 91c
#define unusedSomethingWasHere_offset 2417
@ -2479,8 +2481,6 @@
#define vvt_mode_e_enum "First half", "Second half", "2GZ", "Miata NB2", "mode4", "mode5", "mode6", "mode7"
#define vvtCamSensorUseRise_offset 744
#define vvtCamSensorUseRise_offset_hex 2e8
#define vvtDisplayInverted_offset 1464
#define vvtDisplayInverted_offset_hex 5b8
#define vvtMode_offset 2328
#define vvtMode_offset_hex 918
#define vvtOffset_offset 2052

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@@}