auto-sync

This commit is contained in:
rusEfi 2017-01-28 20:03:19 -05:00
parent 657bd37759
commit 43e05c128a
7 changed files with 39 additions and 18 deletions

View File

@ -111,7 +111,7 @@ void setMazdaMiata2003EngineConfiguration(DECLARE_ENGINE_PARAMETER_F) {
engineConfiguration->alternatorControl.dFactor = 0;
engineConfiguration->alternatorDT = 10;
// set_idle_position 35
// set idle_position 35
boardConfiguration->manIdlePosition = 35;

View File

@ -254,6 +254,15 @@ void prepareVoidConfiguration(engine_configuration_s *activeConfiguration) {
boardConfiguration->joystickCPin = GPIO_UNASSIGNED;
boardConfiguration->joystickDPin = GPIO_UNASSIGNED;
boardConfiguration->idle.stepperDirectionPin = GPIO_UNASSIGNED;
boardConfiguration->idle.stepperStepPin = GPIO_UNASSIGNED;
engineConfiguration->stepperEnablePin = GPIO_UNASSIGNED;
boardConfiguration->idle.stepperDirectionPin = GPIO_UNASSIGNED;
boardConfiguration->idle.stepperStepPin = GPIO_UNASSIGNED;
engineConfiguration->stepperEnablePin = GPIO_UNASSIGNED;
engineConfiguration->stepperEnablePinMode = OM_DEFAULT;
activeConfiguration->dizzySparkOutputPin = GPIO_UNASSIGNED;
boardConfiguration->acRelayPin = GPIO_UNASSIGNED;
@ -665,7 +674,7 @@ void setDefaultConfiguration(DECLARE_ENGINE_PARAMETER_F) {
engineConfiguration->useOnlyRisingEdgeForTrigger = false;
boardConfiguration->idle.solenoidFrequency = 200;
// set_idle_position 50
// set idle_position 50
boardConfiguration->manIdlePosition = 50;
engineConfiguration->targetIdleRpm = 1200;
// engineConfiguration->idleMode = IM_AUTO;

View File

@ -1,4 +1,4 @@
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Thu Jan 26 12:50:23 EST 2017
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sat Jan 28 19:06:26 EST 2017
// begin
#ifndef ENGINE_CONFIGURATION_GENERATED_H_
#define ENGINE_CONFIGURATION_GENERATED_H_
@ -1819,7 +1819,11 @@ typedef struct {
/**
* offset 2764
*/
int unused[71];
pin_mode_e stepperEnablePinMode;
/**
* offset 2768
*/
int unused[70];
/** total size 3048*/
} engine_configuration_s;
@ -2034,4 +2038,4 @@ typedef struct {
#endif
// end
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Thu Jan 26 12:50:23 EST 2017
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sat Jan 28 19:06:26 EST 2017

View File

@ -928,7 +928,8 @@
#define fuelClosedLoopPid_offset_offset 2752
#define fuelClosedLoopAfrLowThreshold_offset 2756
#define fuelClosedLoopAfrHighThreshold_offset 2760
#define unused_offset 2764
#define stepperEnablePinMode_offset 2764
#define unused_offset 2768
#define le_formulas1_offset 3048
#define le_formulas2_offset 3248
#define le_formulas3_offset 3448

View File

@ -773,7 +773,8 @@ float[MAP_ACCEL_TAPER] mapAccelTaperMult;;"mult", 1, 0, 0.0, 300,
pid_s fuelClosedLoopPid;
float fuelClosedLoopAfrLowThreshold;;"ratio", 1, 0, 0, 100, 1
float fuelClosedLoopAfrHighThreshold;;"ratio", 1, 0, 0, 100, 1
int[71] unused;
pin_mode_e stepperEnablePinMode;
int[70] unused;
end_struct

View File

@ -1714,6 +1714,7 @@ cmd_test_idle_valve = "w\x00\x17\x00\x01"
field = "Idle Stepper Step", idle_stepperStepPin, useStepperIdle
field = "Idle Stepper Dir", idle_stepperDirectionPin, useStepperIdle
field = "Idle Stepper Enable", stepperEnablePin, useStepperIdle
field = "Idle Stepper Enable mode", stepperEnablePinMode, useStepperIdle
field = "Stepper reaction time", idleStepperReactionTime, useStepperIdle
field = "Stepper total steps", idleStepperTotalSteps, useStepperIdle
@ -1786,15 +1787,18 @@ cmd_test_idle_valve = "w\x00\x17\x00\x01"
dialog = spiFunction, "SPI settings"
field = "!ECU reboot needed to apply these settings"
field = "SPI1 MOSI", spi1mosiPin
field = "SPI1 MISO", spi1misoPin
field = "SPI1 SCK", spi1sckPin
field = "SPI2 MOSI", spi2mosiPin
field = "SPI2 MISO", spi2misoPin
field = "SPI2 SCK", spi2sckPin
field = "SPI3 MOSI", spi3mosiPin
field = "SPI3 MISO", spi3misoPin
field = "SPI3 SCK", spi3sckPin
field = "SPI1 enable", is_enabled_spi_1
field = "SPI1 MOSI", spi1mosiPin, {is_enabled_spi_1 == 1}
field = "SPI1 MISO", spi1misoPin, {is_enabled_spi_1 == 1}
field = "SPI1 SCK", spi1sckPin, {is_enabled_spi_1 == 1}
field = "SPI2 enable", is_enabled_spi_2
field = "SPI2 MOSI", spi2mosiPin, {is_enabled_spi_2 == 1}
field = "SPI2 MISO", spi2misoPin, {is_enabled_spi_2 == 1}
field = "SPI2 SCK", spi2sckPin, {is_enabled_spi_2 == 1}
field = "SPI3 enable", is_enabled_spi_3
field = "SPI3 MOSI", spi3mosiPin, {is_enabled_spi_3 == 1}
field = "SPI3 MISO", spi3misoPin, {is_enabled_spi_3 == 1}
field = "SPI3 SCK", spi3sckPin, {is_enabled_spi_3 == 1}
dialog = fuelClosedLoopDialog, "Fuel closed-loop correction"
field = "Enabled", fuelClosedLoopCorrectionEnabled

View File

@ -1,6 +1,6 @@
package com.rusefi.config;
// this file was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Thu Jan 26 22:30:47 EST 2017
// this file was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sat Jan 28 19:06:26 EST 2017
public class Fields {
public static final int LE_COMMAND_LENGTH = 200;
public static final int FSIO_ADC_COUNT = 4;
@ -932,7 +932,8 @@ public class Fields {
public static final int fuelClosedLoopPid_offset_offset = 2752;
public static final int fuelClosedLoopAfrLowThreshold_offset = 2756;
public static final int fuelClosedLoopAfrHighThreshold_offset = 2760;
public static final int unused_offset = 2764;
public static final int stepperEnablePinMode_offset = 2764;
public static final int unused_offset = 2768;
public static final int le_formulas1_offset = 3048;
public static final int le_formulas2_offset = 3248;
public static final int le_formulas3_offset = 3448;
@ -1603,6 +1604,7 @@ public class Fields {
public static final Field FUELCLOSEDLOOPPID_OFFSET = Field.create("FUELCLOSEDLOOPPID_OFFSET", 2752, FieldType.FLOAT);
public static final Field FUELCLOSEDLOOPAFRLOWTHRESHOLD = Field.create("FUELCLOSEDLOOPAFRLOWTHRESHOLD", 2756, FieldType.FLOAT);
public static final Field FUELCLOSEDLOOPAFRHIGHTHRESHOLD = Field.create("FUELCLOSEDLOOPAFRHIGHTHRESHOLD", 2760, FieldType.FLOAT);
public static final Field STEPPERENABLEPINMODE = Field.create("STEPPERENABLEPINMODE", 2764, FieldType.INT, pin_mode_e);
public static final Field LE_FORMULAS1 = Field.create("LE_FORMULAS1", 3048, FieldType.INT);
public static final Field LE_FORMULAS2 = Field.create("LE_FORMULAS2", 3248, FieldType.INT);
public static final Field LE_FORMULAS3 = Field.create("LE_FORMULAS3", 3448, FieldType.INT);