auto-sync
This commit is contained in:
parent
c533d12bd6
commit
01b4e604a1
|
@ -93,26 +93,25 @@ void setBmwE34(DECLARE_ENGINE_PARAMETER_F) {
|
|||
|
||||
setWholeTimingTable(25 PASS_ENGINE_PARAMETER);
|
||||
|
||||
board_configuration_s *bc = &engineConfiguration->bc;
|
||||
bc->malfunctionIndicatorPin = GPIO_UNASSIGNED;
|
||||
boardConfiguration->malfunctionIndicatorPin = GPIO_UNASSIGNED;
|
||||
|
||||
// bc->isFastAdcEnabled = true;
|
||||
|
||||
bc->injectionPinMode = OM_INVERTED;
|
||||
bc->injectionPins[0] = GPIOB_8; // #1
|
||||
bc->injectionPins[1] = GPIOE_2; // #2
|
||||
bc->injectionPins[2] = GPIOE_3; // #3
|
||||
bc->injectionPins[3] = GPIOE_4; // #4
|
||||
bc->injectionPins[4] = GPIOE_5; // #5
|
||||
bc->injectionPins[5] = GPIOE_6; // #6
|
||||
boardConfiguration->injectionPinMode = OM_INVERTED;
|
||||
boardConfiguration->injectionPins[0] = GPIOB_8; // #1
|
||||
boardConfiguration->injectionPins[1] = GPIOE_2; // #2
|
||||
boardConfiguration->injectionPins[2] = GPIOE_3; // #3
|
||||
boardConfiguration->injectionPins[3] = GPIOE_4; // #4
|
||||
boardConfiguration->injectionPins[4] = GPIOE_5; // #5
|
||||
boardConfiguration->injectionPins[5] = GPIOE_6; // #6
|
||||
|
||||
bc->ignitionPinMode = OM_INVERTED;
|
||||
boardConfiguration->ignitionPinMode = OM_INVERTED;
|
||||
|
||||
bc->ignitionPins[0] = GPIOB_5; // #1
|
||||
bc->ignitionPins[2] = GPIOB_6; // #3
|
||||
bc->ignitionPins[4] = GPIOB_7; // #5
|
||||
boardConfiguration->ignitionPins[0] = GPIOB_5; // #1
|
||||
boardConfiguration->ignitionPins[2] = GPIOB_6; // #3
|
||||
boardConfiguration->ignitionPins[4] = GPIOB_7; // #5
|
||||
|
||||
bc->triggerErrorPin = GPIO_UNASSIGNED;
|
||||
boardConfiguration->triggerErrorPin = GPIO_UNASSIGNED;
|
||||
|
||||
// clutch up
|
||||
boardConfiguration->clutchUpPin = GPIOD_3;
|
||||
|
@ -141,7 +140,7 @@ void setBmwE34(DECLARE_ENGINE_PARAMETER_F) {
|
|||
* emulating the 60-0 trigger takes some resources, let's keep it slow by default
|
||||
* rpm 200
|
||||
*/
|
||||
bc->triggerSimulatorFrequency = 200;
|
||||
boardConfiguration->triggerSimulatorFrequency = 200;
|
||||
|
||||
// Configurating sensors:
|
||||
|
||||
|
@ -165,5 +164,5 @@ void setBmwE34(DECLARE_ENGINE_PARAMETER_F) {
|
|||
|
||||
boardConfiguration->triggerSimulatorPins[0] = GPIOD_1;
|
||||
boardConfiguration->triggerSimulatorPins[1] = GPIOD_2;
|
||||
bc->triggerSimulatorPins[2] = GPIO_UNASSIGNED;
|
||||
boardConfiguration->triggerSimulatorPins[2] = GPIO_UNASSIGNED;
|
||||
}
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
*
|
||||
* http://rusefi.com/forum/viewtopic.php?f=15&t=644
|
||||
*
|
||||
* set_engine_type 42
|
||||
*
|
||||
* @date May 4, 2016
|
||||
* @author Andrey Belomutskiy, (c) 2012-2016
|
||||
*/
|
||||
|
@ -14,4 +16,50 @@ EXTERN_ENGINE;
|
|||
|
||||
void setZil130(DECLARE_ENGINE_PARAMETER_F) {
|
||||
setCustomEngineConfiguration(PASS_ENGINE_PARAMETER_F);
|
||||
|
||||
engineConfiguration->specs.cylindersCount = 8;
|
||||
|
||||
engineConfiguration->specs.displacement = 6.66;
|
||||
engineConfiguration->specs.firingOrder = FO_1_5_4_2_6_3_7_8;
|
||||
engineConfiguration->injectionMode = IM_BATCH;
|
||||
engineConfiguration->twoWireBatchInjection = true;
|
||||
engineConfiguration->ignitionMode = IM_WASTED_SPARK;
|
||||
engineConfiguration->useOnlyRisingEdgeForTrigger = true;
|
||||
|
||||
engineConfiguration->trigger.type = TT_TOOTHED_WHEEL;
|
||||
engineConfiguration->trigger.customTotalToothCount = 30;
|
||||
engineConfiguration->trigger.customSkippedToothCount = 1;
|
||||
|
||||
|
||||
|
||||
boardConfiguration->malfunctionIndicatorPin = GPIO_UNASSIGNED;
|
||||
boardConfiguration->injectionPinMode = OM_INVERTED;
|
||||
boardConfiguration->injectionPins[0] = GPIOB_8; // #1
|
||||
boardConfiguration->injectionPins[1] = GPIOE_2; // #2
|
||||
boardConfiguration->injectionPins[2] = GPIOE_3; // #3
|
||||
boardConfiguration->injectionPins[3] = GPIOE_4; // #4
|
||||
boardConfiguration->injectionPins[4] = GPIOE_5; // #5
|
||||
boardConfiguration->injectionPins[5] = GPIOE_6; // #6
|
||||
|
||||
boardConfiguration->ignitionPins[0] = GPIOB_5; // #1
|
||||
boardConfiguration->ignitionPins[2] = GPIOB_6; // #3
|
||||
boardConfiguration->ignitionPins[4] = GPIOB_7; // #5
|
||||
|
||||
// fuel pump
|
||||
boardConfiguration->fuelPumpPin = GPIOD_4;
|
||||
|
||||
// idle
|
||||
boardConfiguration->idle.solenoidPin = GPIOC_14;
|
||||
boardConfiguration->idle.solenoidPinMode = OM_INVERTED;
|
||||
boardConfiguration->idle.solenoidFrequency = 300;
|
||||
boardConfiguration->manIdlePosition = 50; // set_idle_pwm 50
|
||||
|
||||
// disable sd_card
|
||||
boardConfiguration->sdCardCsPin = GPIO_UNASSIGNED;
|
||||
boardConfiguration->is_enabled_spi_2 = false;
|
||||
boardConfiguration->is_enabled_spi_3 = false;
|
||||
boardConfiguration->max31855spiDevice = SPI_NONE;
|
||||
|
||||
boardConfiguration->fanPin = GPIO_UNASSIGNED;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue