auto-sync
This commit is contained in:
parent
4c61a7d0c8
commit
f464c614e5
|
@ -284,10 +284,14 @@ void setDodgeNeonNGCEngineConfiguration(DECLARE_ENGINE_PARAMETER_F) {
|
|||
engineConfiguration->injector.flow = 199;
|
||||
|
||||
// I want to start with a simple Alpha-N
|
||||
engineConfiguration->algorithm = LM_ALPHA_N;
|
||||
// engineConfiguration->algorithm = LM_SPEED_DENSITY;
|
||||
//engineConfiguration->algorithm = LM_ALPHA_N;
|
||||
|
||||
setFuelLoadBin(0, 100 PASS_ENGINE_PARAMETER);
|
||||
setTimingLoadBin(0, 100 PASS_ENGINE_PARAMETER);
|
||||
setTimingLoadBin(20, 120 PASS_ENGINE_PARAMETER);
|
||||
|
||||
setAlgorithm(LM_SPEED_DENSITY PASS_ENGINE_PARAMETER);
|
||||
|
||||
setFuelTablesLoadBin(20, 120 PASS_ENGINE_PARAMETER);
|
||||
|
||||
boardConfiguration->malfunctionIndicatorPin = GPIO_UNASSIGNED;
|
||||
|
||||
|
@ -464,6 +468,7 @@ void setDodgeNeonNGCEngineConfiguration(DECLARE_ENGINE_PARAMETER_F) {
|
|||
boardConfiguration->isSdCardEnabled = false;
|
||||
boardConfiguration->manIdlePosition = 40; // set_idle_pwm 40
|
||||
|
||||
// end of setDodgeNeonNGCEngineConfiguration
|
||||
}
|
||||
|
||||
#endif /* EFI_SUPPORT_DODGE_NEON */
|
||||
|
|
|
@ -445,9 +445,9 @@ int isInjectionEnabled(engine_configuration_s *engineConfiguration) {
|
|||
void setAlgorithm(engine_load_mode_e algo DECLARE_ENGINE_PARAMETER_S) {
|
||||
engineConfiguration->algorithm = algo;
|
||||
if (algo == LM_ALPHA_N) {
|
||||
setTimingLoadBin(0, 100 PASS_ENGINE_PARAMETER);
|
||||
setTimingLoadBin(20, 120 PASS_ENGINE_PARAMETER);
|
||||
} else if (algo == LM_SPEED_DENSITY) {
|
||||
setTimingLoadBin(20, 120 PASS_ENGINE_PARAMETER);
|
||||
buildTimingMap(35 PASS_ENGINE_PARAMETER);
|
||||
setTimingLoadBin(0, 160 PASS_ENGINE_PARAMETER);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -83,9 +83,8 @@ static adcsample_t getAvgAdcValue(int index, adcsample_t *samples, int bufDepth,
|
|||
|
||||
static void adc_callback_slow(ADCDriver *adcp, adcsample_t *buffer, size_t n);
|
||||
|
||||
#define MY_SAMPLING_SLOW ADC_SAMPLE_480
|
||||
#define MY_SAMPLING_FAST ADC_SAMPLE_28
|
||||
|
||||
#define ADC_SAMPLING_SLOW ADC_SAMPLE_480
|
||||
#define ADC_SAMPLING_FAST ADC_SAMPLE_28
|
||||
/*
|
||||
* ADC conversion group.
|
||||
*/
|
||||
|
@ -94,22 +93,22 @@ static ADCConversionGroup adcgrpcfgSlow = { FALSE, 0, adc_callback_slow, NULL,
|
|||
ADC_TwoSamplingDelay_20Cycles, // cr1
|
||||
ADC_CR2_SWSTART, // cr2
|
||||
|
||||
ADC_SMPR1_SMP_AN10(MY_SAMPLING_SLOW) |
|
||||
ADC_SMPR1_SMP_AN11(MY_SAMPLING_SLOW) |
|
||||
ADC_SMPR1_SMP_AN12(MY_SAMPLING_SLOW) |
|
||||
ADC_SMPR1_SMP_AN13(MY_SAMPLING_SLOW) |
|
||||
ADC_SMPR1_SMP_AN14(MY_SAMPLING_SLOW) |
|
||||
ADC_SMPR1_SMP_AN15(MY_SAMPLING_SLOW)
|
||||
ADC_SMPR1_SMP_AN10(ADC_SAMPLING_SLOW) |
|
||||
ADC_SMPR1_SMP_AN11(ADC_SAMPLING_SLOW) |
|
||||
ADC_SMPR1_SMP_AN12(ADC_SAMPLING_SLOW) |
|
||||
ADC_SMPR1_SMP_AN13(ADC_SAMPLING_SLOW) |
|
||||
ADC_SMPR1_SMP_AN14(ADC_SAMPLING_SLOW) |
|
||||
ADC_SMPR1_SMP_AN15(ADC_SAMPLING_SLOW)
|
||||
, // sample times for channels 10...18
|
||||
ADC_SMPR2_SMP_AN0(MY_SAMPLING_SLOW) |
|
||||
ADC_SMPR2_SMP_AN1(MY_SAMPLING_SLOW) |
|
||||
ADC_SMPR2_SMP_AN3(MY_SAMPLING_SLOW) |
|
||||
ADC_SMPR2_SMP_AN4(MY_SAMPLING_SLOW) |
|
||||
ADC_SMPR2_SMP_AN5(MY_SAMPLING_SLOW) |
|
||||
ADC_SMPR2_SMP_AN6(MY_SAMPLING_SLOW) |
|
||||
ADC_SMPR2_SMP_AN7(MY_SAMPLING_SLOW) |
|
||||
ADC_SMPR2_SMP_AN8(MY_SAMPLING_SLOW) |
|
||||
ADC_SMPR2_SMP_AN9(MY_SAMPLING_SLOW)
|
||||
ADC_SMPR2_SMP_AN0(ADC_SAMPLING_SLOW) |
|
||||
ADC_SMPR2_SMP_AN1(ADC_SAMPLING_SLOW) |
|
||||
ADC_SMPR2_SMP_AN3(ADC_SAMPLING_SLOW) |
|
||||
ADC_SMPR2_SMP_AN4(ADC_SAMPLING_SLOW) |
|
||||
ADC_SMPR2_SMP_AN5(ADC_SAMPLING_SLOW) |
|
||||
ADC_SMPR2_SMP_AN6(ADC_SAMPLING_SLOW) |
|
||||
ADC_SMPR2_SMP_AN7(ADC_SAMPLING_SLOW) |
|
||||
ADC_SMPR2_SMP_AN8(ADC_SAMPLING_SLOW) |
|
||||
ADC_SMPR2_SMP_AN9(ADC_SAMPLING_SLOW)
|
||||
|
||||
, // In this field must be specified the sample times for channels 0...9
|
||||
|
||||
|
@ -127,7 +126,7 @@ ADC_TwoSamplingDelay_5Cycles, // cr1
|
|||
|
||||
0, // sample times for channels 10...18
|
||||
// todo: IS SOMETHING MISSING HERE?
|
||||
ADC_SMPR2_SMP_AN0(MY_SAMPLING_FAST), // In this field must be specified the sample times for channels 0...9
|
||||
ADC_SMPR2_SMP_AN0(ADC_SAMPLING_FAST), // In this field must be specified the sample times for channels 0...9
|
||||
|
||||
0, // Conversion group sequence 13...16 + sequence length
|
||||
|
||||
|
|
Loading…
Reference in New Issue