auto-sync
This commit is contained in:
parent
8135739c73
commit
277be2f43a
|
@ -16,7 +16,7 @@ void setGy6139qmbDefaultEngineConfiguration(engine_configuration_s *engineConfig
|
|||
engineConfiguration->analogInputDividerCoefficient = 1.52;
|
||||
engineConfiguration->algorithm = LM_MAP;
|
||||
engineConfiguration->globalTriggerAngleOffset = 15;
|
||||
engineConfiguration->analogChartMode = AC_MAP;
|
||||
engineConfiguration->bc.analogChartMode = AC_MAP;
|
||||
engineConfiguration->cylindersCount = 1;
|
||||
setOperationMode(engineConfiguration, FOUR_STROKE_CRANK_SENSOR);
|
||||
|
||||
|
|
|
@ -341,7 +341,7 @@ void setDodgeNeonNGCEngineConfiguration(engine_configuration_s *engineConfigurat
|
|||
engineConfiguration->cltAdcChannel = EFI_ADC_12;
|
||||
|
||||
|
||||
engineConfiguration->analogChartMode = AC_MAP;
|
||||
boardConfiguration->analogChartMode = AC_MAP;
|
||||
boardConfiguration->isFastAdcEnabled = true;
|
||||
engineConfiguration->map.sensor.sensorType = MT_DODGE_NEON_2003;
|
||||
|
||||
|
|
|
@ -243,7 +243,7 @@ void setDefaultConfiguration(engine_configuration_s *engineConfiguration, board_
|
|||
engineConfiguration->fixedModeTiming = 50;
|
||||
|
||||
// performance optimization
|
||||
engineConfiguration->analogChartMode = AC_OFF;
|
||||
boardConfiguration->analogChartMode = AC_OFF;
|
||||
|
||||
engineConfiguration->map.sensor.hwChannel = EFI_ADC_4;
|
||||
engineConfiguration->baroSensor.hwChannel = EFI_ADC_4;
|
||||
|
|
|
@ -272,7 +272,9 @@ typedef struct {
|
|||
brain_pin_e joystickCPin;
|
||||
// offset 6248
|
||||
brain_pin_e joystickDPin;
|
||||
int unusedbs[7];
|
||||
// offset 6252
|
||||
uint32_t analogChartMode;
|
||||
int unusedbs[6];
|
||||
|
||||
le_formula_t le_formulas[LE_COMMAND_COUNT];
|
||||
|
||||
|
@ -349,7 +351,7 @@ typedef struct {
|
|||
/**
|
||||
* offset 334
|
||||
*/
|
||||
uint16_t analogChartMode;
|
||||
uint16_t unused334;
|
||||
|
||||
/**
|
||||
* todo: finish implementation. These values are used for TPS disconnect detection
|
||||
|
|
|
@ -96,7 +96,7 @@ void mapAveragingCallback(adcsample_t value) {
|
|||
float currentPressure = getMapByVoltage(voltage);
|
||||
|
||||
#if EFI_ANALOG_CHART
|
||||
if (engineConfiguration->analogChartMode == AC_MAP)
|
||||
if (boardConfiguration->analogChartMode == AC_MAP)
|
||||
if (perRevolutionCounter % FAST_MAP_CHART_SKIP_FACTOR == 0)
|
||||
acAddData(getCrankshaftAngleNt(getTimeNowNt() PASS_ENGINE_PARAMETER), currentPressure);
|
||||
#endif /* EFI_ANALOG_CHART */
|
||||
|
|
|
@ -325,7 +325,7 @@ static void setMalfunctionIndicatorPinMode(int value) {
|
|||
}
|
||||
|
||||
static void setAnalogChartMode(int value) {
|
||||
engineConfiguration->analogChartMode = (analog_chart_e)value;
|
||||
boardConfiguration->analogChartMode = (analog_chart_e)value;
|
||||
doPrintConfiguration(engine);
|
||||
}
|
||||
|
||||
|
|
|
@ -143,7 +143,7 @@ void rpmShaftPositionCallback(trigger_event_e ckpSignalType, uint32_t index DECL
|
|||
|
||||
if (index != 0) {
|
||||
#if EFI_ANALOG_CHART || defined(__DOXYGEN__)
|
||||
if (engineConfiguration->analogChartMode == AC_TRIGGER)
|
||||
if (boardConfiguration->analogChartMode == AC_TRIGGER)
|
||||
acAddData(getCrankshaftAngleNt(nowNt PASS_ENGINE_PARAMETER), 1000 * ckpSignalType + index);
|
||||
#endif
|
||||
return;
|
||||
|
@ -171,7 +171,7 @@ void rpmShaftPositionCallback(trigger_event_e ckpSignalType, uint32_t index DECL
|
|||
rpmState->onNewEngineCycle();
|
||||
rpmState->lastRpmEventTimeNt = nowNt;
|
||||
#if EFI_ANALOG_CHART || defined(__DOXYGEN__)
|
||||
if (engineConfiguration->analogChartMode == AC_TRIGGER)
|
||||
if (boardConfiguration->analogChartMode == AC_TRIGGER)
|
||||
acAddData(getCrankshaftAngleNt(nowNt PASS_ENGINE_PARAMETER), index);
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -52,7 +52,6 @@ enable2ndByteCanID = false
|
|||
|
||||
tpsMin = scalar, S16, 330, "ADC", 1, 0, 0, 1023, 0 ; * ( 2 bytes)
|
||||
tpsMax = scalar, S16, 332, "ADC", 1, 0, 0, 1023, 0 ; * ( 2 bytes)
|
||||
analogChartMode = bits, S16, 334, [0:1], "none", "trigger", "MAP", "INVALID"
|
||||
|
||||
tpsErrorLowValue = scalar, U16, 336, "°C", 1, 0, -40, 200, 1; size 4
|
||||
tpsErrorHighValue = scalar, U16, 338, "°C", 1, 0, -40, 200, 1; size 4
|
||||
|
@ -352,6 +351,11 @@ enable2ndByteCanID = false
|
|||
fsio_setting14 = scalar, F32, 6184, "Val", 1, 0, 0, 18000, 0 ; size 4
|
||||
fsio_setting15 = scalar, F32, 6188, "Val", 1, 0, 0, 18000, 0 ; size 4
|
||||
|
||||
; hip9011Gain 6228
|
||||
; joystickDPin 6248
|
||||
|
||||
analogChartMode = bits, S32, 6252, [0:1], "none", "trigger", "MAP", "INVALID"
|
||||
|
||||
useConstantDwellDuringCranking= bits, U32, 6280, [3:3], "false", "true"
|
||||
isCanEnabled = bits, U32, 6280, [5:5], "false", "true"
|
||||
hasCltSensor = bits, U32, 6280, [6:6], "false", "true"
|
||||
|
|
Loading…
Reference in New Issue