auto-sync
This commit is contained in:
parent
4f10decc81
commit
21db265cf6
|
@ -190,6 +190,8 @@ void prepareVoidConfiguration(engine_configuration_s *activeConfiguration) {
|
||||||
boardConfiguration->triggerInputPins[1] = GPIO_UNASSIGNED;
|
boardConfiguration->triggerInputPins[1] = GPIO_UNASSIGNED;
|
||||||
boardConfiguration->triggerInputPins[2] = GPIO_UNASSIGNED;
|
boardConfiguration->triggerInputPins[2] = GPIO_UNASSIGNED;
|
||||||
|
|
||||||
|
activeConfiguration->dizzySparkOutputPin = GPIO_UNASSIGNED;
|
||||||
|
|
||||||
for (int i = 0; i < JOYSTICK_PIN_COUNT; i++) {
|
for (int i = 0; i < JOYSTICK_PIN_COUNT; i++) {
|
||||||
boardConfiguration->joystickPins[i] = GPIO_UNASSIGNED;
|
boardConfiguration->joystickPins[i] = GPIO_UNASSIGNED;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sun Mar 20 15:05:16 EDT 2016
|
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Mon Apr 25 22:10:39 EDT 2016
|
||||||
// begin
|
// begin
|
||||||
#ifndef ENGINE_CONFIGURATION_GENERATED_H_
|
#ifndef ENGINE_CONFIGURATION_GENERATED_H_
|
||||||
#define ENGINE_CONFIGURATION_GENERATED_H_
|
#define ENGINE_CONFIGURATION_GENERATED_H_
|
||||||
|
@ -1510,7 +1510,15 @@ typedef struct {
|
||||||
/**
|
/**
|
||||||
* offset 2368
|
* offset 2368
|
||||||
*/
|
*/
|
||||||
int unused[170];
|
brain_pin_e dizzySparkOutputPin;
|
||||||
|
/**
|
||||||
|
* offset 2372
|
||||||
|
*/
|
||||||
|
pin_output_mode_e dizzySparkOutputPinMode;
|
||||||
|
/**
|
||||||
|
* offset 2376
|
||||||
|
*/
|
||||||
|
int unused[168];
|
||||||
/** total size 3048*/
|
/** total size 3048*/
|
||||||
} engine_configuration_s;
|
} engine_configuration_s;
|
||||||
|
|
||||||
|
@ -1699,4 +1707,4 @@ typedef struct {
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
// end
|
// end
|
||||||
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Sun Mar 20 15:05:16 EDT 2016
|
// this section was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Mon Apr 25 22:10:39 EDT 2016
|
||||||
|
|
|
@ -751,8 +751,12 @@
|
||||||
#define mapAccelTaperBins_offset_hex 900
|
#define mapAccelTaperBins_offset_hex 900
|
||||||
#define mapAccelTaperMult_offset 2336
|
#define mapAccelTaperMult_offset 2336
|
||||||
#define mapAccelTaperMult_offset_hex 920
|
#define mapAccelTaperMult_offset_hex 920
|
||||||
#define unused_offset 2368
|
#define dizzySparkOutputPin_offset 2368
|
||||||
#define unused_offset_hex 940
|
#define dizzySparkOutputPin_offset_hex 940
|
||||||
|
#define dizzySparkOutputPinMode_offset 2372
|
||||||
|
#define dizzySparkOutputPinMode_offset_hex 944
|
||||||
|
#define unused_offset 2376
|
||||||
|
#define unused_offset_hex 948
|
||||||
#define le_formulas1_offset 3048
|
#define le_formulas1_offset 3048
|
||||||
#define le_formulas2_offset 3248
|
#define le_formulas2_offset 3248
|
||||||
#define le_formulas3_offset 3448
|
#define le_formulas3_offset 3448
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
#include "engine.h"
|
#include "engine.h"
|
||||||
|
|
||||||
#define FLASH_DATA_VERSION 9200
|
#define FLASH_DATA_VERSION 9300
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
OK = 0,
|
OK = 0,
|
||||||
|
|
|
@ -187,6 +187,14 @@ static ALWAYS_INLINE void handleFuel(bool limitedFuel, uint32_t eventIndex, int
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void turnSparkPinLow(NamedOutputPin *output) {
|
||||||
|
turnPinLow(output);
|
||||||
|
}
|
||||||
|
|
||||||
|
void turnSparkPinHigh(NamedOutputPin *output) {
|
||||||
|
turnPinHigh(output);
|
||||||
|
}
|
||||||
|
|
||||||
static ALWAYS_INLINE void handleSparkEvent(bool limitedSpark, uint32_t eventIndex, IgnitionEvent *iEvent,
|
static ALWAYS_INLINE void handleSparkEvent(bool limitedSpark, uint32_t eventIndex, IgnitionEvent *iEvent,
|
||||||
int rpm DECLARE_ENGINE_PARAMETER_S) {
|
int rpm DECLARE_ENGINE_PARAMETER_S) {
|
||||||
|
|
||||||
|
@ -231,7 +239,7 @@ static ALWAYS_INLINE void handleSparkEvent(bool limitedSpark, uint32_t eventInde
|
||||||
* This way we make sure that coil dwell started while spark was enabled would fire and not burn
|
* This way we make sure that coil dwell started while spark was enabled would fire and not burn
|
||||||
* the coil.
|
* the coil.
|
||||||
*/
|
*/
|
||||||
scheduleTask("spark up", sUp, chargeDelayUs, (schfunc_t) &turnPinHigh, iEvent->output);
|
scheduleTask("spark up", sUp, chargeDelayUs, (schfunc_t) &turnSparkPinHigh, iEvent->output);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Spark event is often happening during a later trigger event timeframe
|
* Spark event is often happening during a later trigger event timeframe
|
||||||
|
@ -250,7 +258,7 @@ static ALWAYS_INLINE void handleSparkEvent(bool limitedSpark, uint32_t eventInde
|
||||||
printf("spark delay=%f angle=%f\r\n", timeTillIgnitionUs, iEvent->sparkPosition.angleOffset);
|
printf("spark delay=%f angle=%f\r\n", timeTillIgnitionUs, iEvent->sparkPosition.angleOffset);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
scheduleTask("spark1 down", sDown, (int) timeTillIgnitionUs, (schfunc_t) &turnPinLow, iEvent->output);
|
scheduleTask("spark1 down", sDown, (int) timeTillIgnitionUs, (schfunc_t) &turnSparkPinLow, iEvent->output);
|
||||||
} else {
|
} else {
|
||||||
/**
|
/**
|
||||||
* Spark should be scheduled in relation to some future trigger event, this way we get better firing precision
|
* Spark should be scheduled in relation to some future trigger event, this way we get better firing precision
|
||||||
|
@ -284,7 +292,7 @@ static ALWAYS_INLINE void handleSpark(bool limitedSpark, uint32_t eventIndex, in
|
||||||
scheduling_s * sDown = ¤t->signalTimerDown;
|
scheduling_s * sDown = ¤t->signalTimerDown;
|
||||||
|
|
||||||
float timeTillIgnitionUs = ENGINE(rpmCalculator.oneDegreeUs) * current->sparkPosition.angleOffset;
|
float timeTillIgnitionUs = ENGINE(rpmCalculator.oneDegreeUs) * current->sparkPosition.angleOffset;
|
||||||
scheduleTask("spark 2down", sDown, (int) timeTillIgnitionUs, (schfunc_t) &turnPinLow, current->output);
|
scheduleTask("spark 2down", sDown, (int) timeTillIgnitionUs, (schfunc_t) &turnSparkPinLow, current->output);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -415,8 +423,9 @@ void mainTriggerCallback(trigger_event_e ckpSignalType, uint32_t eventIndex DECL
|
||||||
int revolutionIndex = ENGINE(rpmCalculator).getRevolutionCounter() % 2;
|
int revolutionIndex = ENGINE(rpmCalculator).getRevolutionCounter() % 2;
|
||||||
|
|
||||||
if (eventIndex == 0) {
|
if (eventIndex == 0) {
|
||||||
if (triggerVersion.isOld())
|
if (triggerVersion.isOld()) {
|
||||||
prepareOutputSignals(PASS_ENGINE_PARAMETER_F);
|
prepareOutputSignals(PASS_ENGINE_PARAMETER_F);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
efiAssertVoid(!CONFIG(useOnlyRisingEdgeForTrigger) || CONFIG(ignMathCalculateAtIndex) % 2 == 0, "invalid ignMathCalculateAtIndex");
|
efiAssertVoid(!CONFIG(useOnlyRisingEdgeForTrigger) || CONFIG(ignMathCalculateAtIndex) % 2 == 0, "invalid ignMathCalculateAtIndex");
|
||||||
|
|
|
@ -660,7 +660,9 @@ baro_corr_table_t baroCorrTable;
|
||||||
float[MAP_ACCEL_TAPER] mapAccelTaperBins;;"counter", 1, 0, 0.0, 300, 0
|
float[MAP_ACCEL_TAPER] mapAccelTaperBins;;"counter", 1, 0, 0.0, 300, 0
|
||||||
float[MAP_ACCEL_TAPER] mapAccelTaperMult;;"mult", 1, 0, 0.0, 300, 2
|
float[MAP_ACCEL_TAPER] mapAccelTaperMult;;"mult", 1, 0, 0.0, 300, 2
|
||||||
|
|
||||||
int[170] unused;
|
brain_pin_e dizzySparkOutputPin;
|
||||||
|
pin_output_mode_e dizzySparkOutputPinMode;
|
||||||
|
int[168] unused;
|
||||||
|
|
||||||
|
|
||||||
end_struct
|
end_struct
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package com.rusefi.config;
|
package com.rusefi.config;
|
||||||
|
|
||||||
// this file was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Tue Mar 22 11:46:30 EDT 2016
|
// this file was generated automatically by ConfigDefinition.jar based on rusefi_config.txt Mon Apr 25 22:10:39 EDT 2016
|
||||||
public class Fields {
|
public class Fields {
|
||||||
public static final int LE_COMMAND_LENGTH = 200;
|
public static final int LE_COMMAND_LENGTH = 200;
|
||||||
public static final int TS_FILE_VERSION = 20160312;
|
public static final int TS_FILE_VERSION = 20160312;
|
||||||
|
@ -755,8 +755,12 @@ public class Fields {
|
||||||
public static final int mapAccelTaperBins_offset_hex = 900;
|
public static final int mapAccelTaperBins_offset_hex = 900;
|
||||||
public static final int mapAccelTaperMult_offset = 2336;
|
public static final int mapAccelTaperMult_offset = 2336;
|
||||||
public static final int mapAccelTaperMult_offset_hex = 920;
|
public static final int mapAccelTaperMult_offset_hex = 920;
|
||||||
public static final int unused_offset = 2368;
|
public static final int dizzySparkOutputPin_offset = 2368;
|
||||||
public static final int unused_offset_hex = 940;
|
public static final int dizzySparkOutputPin_offset_hex = 940;
|
||||||
|
public static final int dizzySparkOutputPinMode_offset = 2372;
|
||||||
|
public static final int dizzySparkOutputPinMode_offset_hex = 944;
|
||||||
|
public static final int unused_offset = 2376;
|
||||||
|
public static final int unused_offset_hex = 948;
|
||||||
public static final int le_formulas1_offset = 3048;
|
public static final int le_formulas1_offset = 3048;
|
||||||
public static final int le_formulas2_offset = 3248;
|
public static final int le_formulas2_offset = 3248;
|
||||||
public static final int le_formulas3_offset = 3448;
|
public static final int le_formulas3_offset = 3448;
|
||||||
|
@ -1308,6 +1312,8 @@ public class Fields {
|
||||||
public static final Field WARMUPAFRPID_OFFSET = Field.create("WARMUPAFRPID_OFFSET", 2260, FieldType.FLOAT);
|
public static final Field WARMUPAFRPID_OFFSET = Field.create("WARMUPAFRPID_OFFSET", 2260, FieldType.FLOAT);
|
||||||
public static final Field WARMUPAFRTHRESHOLD = Field.create("WARMUPAFRTHRESHOLD", 2296, FieldType.FLOAT);
|
public static final Field WARMUPAFRTHRESHOLD = Field.create("WARMUPAFRTHRESHOLD", 2296, FieldType.FLOAT);
|
||||||
public static final Field BOOSTCUTPRESSURE = Field.create("BOOSTCUTPRESSURE", 2300, FieldType.FLOAT);
|
public static final Field BOOSTCUTPRESSURE = Field.create("BOOSTCUTPRESSURE", 2300, FieldType.FLOAT);
|
||||||
|
public static final Field DIZZYSPARKOUTPUTPIN = Field.create("DIZZYSPARKOUTPUTPIN", 2368, FieldType.INT, brain_pin_e);
|
||||||
|
public static final Field DIZZYSPARKOUTPUTPINMODE = Field.create("DIZZYSPARKOUTPUTPINMODE", 2372, FieldType.INT, pin_output_mode_e);
|
||||||
public static final Field LE_FORMULAS1 = Field.create("LE_FORMULAS1", 3048, FieldType.INT);
|
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_FORMULAS2 = Field.create("LE_FORMULAS2", 3248, FieldType.INT);
|
||||||
public static final Field LE_FORMULAS3 = Field.create("LE_FORMULAS3", 3448, FieldType.INT);
|
public static final Field LE_FORMULAS3 = Field.create("LE_FORMULAS3", 3448, FieldType.INT);
|
||||||
|
|
Loading…
Reference in New Issue